:root {
  --bg: #e6e6e8;
  --shell: #fdfdfe;
  --sidebar: #fcfcfd;
  --text: #151822;
  --muted: #7a7f8f;
  --line: #e5e7ee;
  --orange: #ff6a00;
  --panel: #ffffff;
  --radius: 12px;
}

.marketing-settings-dialog {
  width: min(1320px, calc(100vw - 32px));
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.96) 48%, rgba(242, 244, 248, 0.98)),
    linear-gradient(180deg, #ffffff, #f8f9fb);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.marketing-settings-head {
  align-items: flex-start;
  padding: 28px 30px 22px;
  border-bottom: 1px solid #eaeaea;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.95));
}

.marketing-settings-head-copy {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.marketing-settings-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  color: #c85f00;
  font: 600 11px/1 "Poppins", "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-settings-head .cashback-form-meta {
  max-width: 760px;
  margin: 0;
  color: #667085;
  font: 500 14px/1.7 "Poppins", "Inter", sans-serif;
}

.marketing-settings-form {
  padding: 0;
  max-height: min(88vh, 980px);
  overflow: auto;
  background: #f8f9fb;
  font-family: "Poppins", "Inter", sans-serif;
}

.marketing-settings-shell {
  display: grid;
  gap: 22px;
  padding: 26px 30px 30px;
}

.marketing-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 18px;
}

.marketing-settings-hero-copy,
.marketing-settings-hero-card,
.marketing-settings-panel,
.marketing-settings-card {
  border: 1px solid #eaeaea;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.marketing-settings-hero-copy {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.14), transparent 42%),
    linear-gradient(180deg, #ffffff, #fcfcfd);
}

.marketing-settings-premium-badge,
.marketing-settings-lock-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.2);
  background: rgba(255, 122, 0, 0.08);
  color: #d16400;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-settings-hero-copy h4 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.marketing-settings-hero-copy p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.8;
}

.marketing-settings-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-settings-hero-card {
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 10px;
}

.marketing-settings-hero-card small,
.marketing-settings-metric-card small {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-settings-hero-card strong,
.marketing-settings-metric-card strong {
  color: #1d2939;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.marketing-settings-hero-card span,
.marketing-settings-metric-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.marketing-settings-inline-preview {
  display: block;
  color: #475467;
}

.marketing-settings-workspace {
  display: grid;
  gap: 18px;
}

.marketing-settings-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid #eaeaea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 4;
}

.marketing-settings-tab {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #667085;
  font: 500 13px/1.4 "Poppins", "Inter", sans-serif;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.marketing-settings-tab.active,
.marketing-settings-tab:hover {
  color: #ff7a00;
  border-color: rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.marketing-settings-panels {
  display: grid;
  gap: 18px;
}

.marketing-settings-panel {
  display: none;
  border-radius: 28px;
  padding: 24px;
  gap: 18px;
}

.marketing-settings-panel.active {
  display: grid;
}

.marketing-settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.marketing-settings-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-settings-section-head h4,
.marketing-settings-card-head h5 {
  margin: 0;
  color: #101828;
  letter-spacing: -0.03em;
}

.marketing-settings-section-head h4 {
  font-size: 24px;
}

.marketing-settings-section-head p,
.marketing-settings-card-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.marketing-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-settings-card {
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.marketing-settings-card-span-2 {
  grid-column: span 2;
}

.marketing-settings-card-head {
  display: grid;
  gap: 4px;
}

.marketing-settings-form .cashback-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.marketing-settings-form .date-field {
  margin: 0;
}

.marketing-settings-form .date-field span {
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.marketing-settings-form .date-field input,
.marketing-settings-form .date-field select,
.marketing-settings-form .date-field textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #e4e7ec;
  background: #fdfdfd;
  color: #101828;
  font: 500 14px/1.5 "Poppins", "Inter", sans-serif;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.02);
}

.marketing-settings-form .date-field textarea {
  min-height: 120px;
}

.marketing-settings-form .date-field input:focus,
.marketing-settings-form .date-field select:focus,
.marketing-settings-form .date-field textarea:focus {
  border-color: rgba(255, 122, 0, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.marketing-settings-choice-list,
.marketing-settings-switch-stack,
.marketing-settings-tag-grid,
.marketing-settings-metric-grid,
.marketing-settings-chip-row {
  display: grid;
  gap: 12px;
}

.marketing-settings-choice {
  position: relative;
  display: block;
}

.marketing-settings-choice input,
.marketing-switch input,
.marketing-settings-tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.marketing-settings-choice span {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.marketing-settings-choice.active span,
.marketing-settings-choice input:checked + span,
.marketing-settings-choice:hover span {
  border-color: rgba(255, 122, 0, 0.24);
  background: rgba(255, 122, 0, 0.06);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.08);
  transform: translateY(-1px);
}

.marketing-settings-choice strong,
.marketing-switch-copy strong {
  color: #1d2939;
  font-size: 14px;
}

.marketing-settings-choice small,
.marketing-switch-copy small {
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.marketing-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "switch copy"
    "switch copy";
  align-items: center;
  gap: 12px 14px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
}

.marketing-switch-ui {
  grid-area: switch;
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background-color .2s ease;
}

.marketing-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(16, 24, 40, 0.16);
  transition: transform .2s ease;
}

.marketing-switch-copy {
  grid-area: copy;
  display: grid;
  gap: 4px;
}

.marketing-switch input:checked + .marketing-switch-ui {
  background: #ff7a00;
}

.marketing-switch input:checked + .marketing-switch-ui::after {
  transform: translateX(20px);
}

.marketing-settings-tag-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-settings-tag {
  position: relative;
  display: block;
}

.marketing-settings-tag span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #eaeaea;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 500;
}

.marketing-settings-tag.active span,
.marketing-settings-tag input:checked + span {
  border-color: rgba(255, 122, 0, 0.2);
  background: rgba(255, 122, 0, 0.08);
  color: #c85f00;
}

.marketing-settings-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-settings-metric-card {
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #fcfcfd);
  display: grid;
  gap: 10px;
}

.marketing-settings-chip-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketing-settings-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #eaeaea;
  background: #f9fafb;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
}

.marketing-settings-card .cashback-target-box,
.marketing-settings-card.cashback-target-box {
  padding: 20px;
  border-radius: 24px;
  border-color: #eaeaea;
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.marketing-settings-card .cashback-target-options,
.marketing-settings-card.cashback-target-box .cashback-target-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 280px;
}

.marketing-settings-card .cashback-target-options .setting-check,
.marketing-settings-card.cashback-target-box .cashback-target-options .setting-check {
  min-height: 74px;
  padding: 14px;
  border-radius: 18px;
  border-color: #eaeaea;
  background: #fff;
}

.marketing-settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 30px 24px;
  border-top: 1px solid #eaeaea;
  background: rgba(248, 249, 251, 0.94);
  backdrop-filter: blur(18px);
}

.marketing-settings-submit-btn {
  min-width: 220px;
  min-height: 52px;
  border: 1px solid #ff7a00;
  background: linear-gradient(180deg, #ff8f26, #ff7a00);
  box-shadow: 0 16px 32px rgba(255, 122, 0, 0.24);
}

.marketing-settings-submit-btn:hover {
  box-shadow: 0 20px 36px rgba(255, 122, 0, 0.28);
}

.marketing-settings-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.marketing-settings-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: marketingSettingsSpin .7s linear infinite;
}

.marketing-settings-submit-btn.is-loading .marketing-settings-submit-spinner {
  display: inline-block;
}

@keyframes marketingSettingsSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .marketing-settings-hero,
  .marketing-settings-grid,
  .marketing-settings-metric-grid,
  .marketing-settings-card .cashback-target-options,
  .marketing-settings-card.cashback-target-box .cashback-target-options,
  .marketing-settings-chip-row,
  .marketing-settings-hero-grid,
  .marketing-settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .marketing-settings-dialog {
    width: calc(100vw - 18px);
    border-radius: 24px;
  }

  .marketing-settings-head,
  .marketing-settings-shell,
  .marketing-settings-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .marketing-settings-panel {
    padding: 18px;
  }

  .marketing-settings-hero,
  .marketing-settings-grid,
  .marketing-settings-metric-grid,
  .marketing-settings-tag-grid,
  .marketing-settings-chip-row,
  .marketing-settings-card .cashback-target-options,
  .marketing-settings-card.cashback-target-box .cashback-target-options,
  .marketing-settings-tabs,
  .marketing-settings-hero-grid,
  .marketing-settings-form .cashback-form-grid {
    grid-template-columns: 1fr;
  }

  .marketing-settings-card-span-2,
  .cashback-form-span-2 {
    grid-column: auto;
  }

  .marketing-settings-actions {
    flex-direction: column-reverse;
  }

  .marketing-settings-submit-btn,
  .marketing-settings-actions .ghost-btn {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 0%, #f0f0f1 0%, #dddddf 55%, #d3d3d8 100%);
}

.login-page {
  background: #f7f9fc;
  color: #111827;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  z-index: 2;
}

.auth-layout {
  width: min(1180px, calc(100vw - 48px));
  border-radius: 24px;
  border: 1px solid #d9e1ec;
  background: #fff;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.auth-brand-pane {
  padding: 44px;
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 107, 0, 0.16), transparent 54%),
    linear-gradient(180deg, #fff7f1 0%, #fff 50%);
  border-right: 1px solid #eef2f7;
}

.auth-brand-pane .brand-logo {
  width: auto;
  height: 72px;
  display: block;
}

.brand-kicker {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a94a6;
  text-transform: uppercase;
}

.auth-brand-pane h1 {
  margin: 0;
  font-size: 39px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #111827;
}

.brand-copy {
  margin: 0;
  max-width: 620px;
  color: #667085;
  font-size: 15px;
  line-height: 1.8;
}

.brand-preview {
  margin-top: 6px;
  border-radius: 20px;
  border: 1px solid #e9eef5;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 107, 0, 0.08), transparent 54%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 28px rgba(17, 24, 39, 0.08);
}

.preview-head {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e6edf7;
}

.preview-head span:first-child {
  background: #ffd9bf;
}

.preview-head span:nth-child(2) {
  background: #ffc89e;
}

.preview-head span:last-child {
  background: #ffab74;
}

.preview-chart {
  height: 84px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 70% -20%, rgba(255, 255, 255, 0.3), transparent 56%),
    linear-gradient(180deg, rgba(255, 122, 26, 0.2), rgba(255, 122, 26, 0)),
    linear-gradient(130deg, #ff7a1a, #ff5a00);
  opacity: 0.95;
}

.preview-chart-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

.preview-chart-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  height: 34px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 0 0 16px 16px;
  clip-path: polygon(0% 100%, 14% 62%, 27% 72%, 42% 38%, 58% 48%, 73% 20%, 88% 32%, 100% 0%, 100% 100%);
}

.preview-chart-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.preview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-stat-card {
  min-height: 74px;
  border-radius: 12px;
  border: 1px solid #edf2f8;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.preview-stat-card small {
  color: #8a94a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-stat-card strong {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.2;
}

.preview-stat-card span {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.34), rgba(255, 122, 26, 0.1));
  position: relative;
}

.preview-stat-card span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 66%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a1a, #ff5a00);
}

.preview-stat-card:nth-child(2) span::after {
  width: 82%;
}

.preview-stat-card:nth-child(3) span::after {
  width: 58%;
}

.brand-trust {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.brand-trust li {
  position: relative;
  padding-left: 20px;
  color: #4b5565;
  font-size: 14px;
}

.brand-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b00;
  position: absolute;
  left: 0;
  top: 8px;
}

.auth-form-pane {
  padding: 36px;
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
}

.login-card {
  border-radius: 20px;
  border: 1px solid #d9e1ec;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
  padding: 24px;
}

.auth-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.head-logo {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #ffd8be;
  background: #fff1e7;
}

.auth-card-head h2 {
  margin: 0;
  color: #111827;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.auth-card-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 6px;
  background: #f7f9fc;
}

.auth-tab {
  height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085;
  font: 700 14px/1 inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.auth-tab.active {
  border-color: #ffb98a;
  background: #fff1e7;
  color: #d85a00;
  box-shadow: 0 10px 18px rgba(255, 107, 0, 0.12);
}

.auth-panel.hidden {
  display: none;
}

.login-form {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.login-form label {
  margin-top: 4px;
  font-size: 12px;
  color: #475467;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #d9e1ec;
  padding: 0 14px;
  font: 500 14px/1 inherit;
  color: #111827;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus {
  outline: 0;
  border-color: #ff8f45;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d9e1ec;
  padding: 0 12px;
  background: #f7f9fc;
  color: #667085;
  font: 700 12px/1 inherit;
  cursor: pointer;
}

.password-toggle:hover {
  border-color: #ffb98a;
  color: #d85a00;
}

.auth-google-btn {
  margin-bottom: 2px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #d9e1ec;
  background: #fff;
  color: #344054;
  font: 700 14px/1 inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-google-btn:hover {
  border-color: #ffb98a;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.google-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d9e1ec;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.auth-divider {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e8edf5;
}

.form-row-inline {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkbox-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-line input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: #ff6b00;
  border-radius: 4px;
}

.text-link {
  color: #ff6b00;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.google-hint {
  margin: 0 0 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.login-error {
  min-height: 18px;
  margin: 2px 0 0;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

.login-error.success {
  color: #15803d;
}

.login-btn {
  margin-top: 4px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a1a, #ff5a00);
  color: #fff;
  font: 700 15px/1 inherit;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(255, 107, 0, 0.32);
}

.trust-note {
  margin: 4px 0 0;
  color: #8a94a6;
  font-size: 12px;
}

.auth-footer-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #8a94a6;
  font-size: 12px;
}

.auth-footer-links a {
  color: #667085;
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: #ff6b00;
}

.login-hint {
  margin-top: 10px;
  display: block;
  color: #8a94a6;
  font-size: 12px;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 300px at 6% -4%, rgba(255, 107, 0, 0.12), transparent 72%),
    radial-gradient(560px 240px at 92% 104%, rgba(138, 148, 166, 0.14), transparent 74%);
}

@media (max-width: 1024px) {
  .auth-layout {
    width: min(860px, calc(100vw - 32px));
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 16px;
  }

  .auth-layout {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .auth-brand-pane,
  .auth-form-pane {
    padding: 18px;
  }

  .auth-brand-pane h1 {
    font-size: 28px;
  }

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

  .login-card {
    padding: 16px;
    border-radius: 16px;
  }
}

.app {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 40px));
  margin: 46px auto;
  height: min(900px, calc(100vh - 28px));
  min-height: 760px;
  border-radius: 18px;
  border: 1px solid #d9dbe3;
  box-shadow: 0 20px 44px rgba(22, 24, 33, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  background: var(--shell);
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
}

.brand {
  height: 116px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: #ff7a16;
}

.brand-logo {
  width: auto;
  height: 96px;
  display: block;
}

.brand span {
  font-size: 37px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav.primary {
  margin-top: 16px;
}

.nav.secondary {
  margin-top: auto;
}

.nav-item {
  height: 42px;
  border-radius: 12px;
  color: #292c37;
  text-decoration: none;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: background-color .28s ease, color .28s ease, transform .25s ease, border-color .28s ease, box-shadow .28s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ff8b3d, #ff6a00);
  opacity: 0;
  transform: scaleY(.2);
  transform-origin: top;
  transition: opacity .22s ease, transform .22s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 0, .28), transparent 68%);
  transform: translateY(-50%) scale(.2);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
}

.nav-item:hover {
  background: linear-gradient(180deg, #f7f9fd, #f2f4f9);
  border-color: #e4e8f2;
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.nav-item:hover svg {
  transform: translateY(-1px);
}

.nav-item i {
  margin-left: auto;
  font-style: normal;
  color: #9da0ad;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-item .caret {
  transition: transform .2s ease;
}

.nav-group.open .nav-item .caret {
  transform: rotate(180deg);
}

.submenu {
  margin-left: 28px;
  padding-left: 13px;
  border-left: 1px solid #e4e8f2;
  display: grid;
  gap: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height .32s cubic-bezier(.22,.7,.2,1), opacity .24s ease, transform .24s ease;
}

.submenu a {
  text-decoration: none;
  color: #676d7f;
  font-size: 13px;
  font-weight: 500;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}

.submenu a:hover {
  background: #f5f8fd;
  border-color: #e3e8f3;
  color: #2a2f3f;
  transform: translateX(2px);
}

.submenu a.active {
  background: #fff1e5;
  color: #ff6a00;
  font-weight: 700;
  border-color: #ffd6b7;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, .08);
}

.nav-item.active-parent {
  background: linear-gradient(180deg, #f7f9fd, #f2f5fb);
  color: #1f2433;
  border-color: #e4e8f2;
  box-shadow: 0 8px 16px rgba(33, 44, 66, 0.08);
}

.nav-item.active-parent::before,
.nav-item.active-parent::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-item.active-parent i {
  color: #666f86;
}

.nav-group.open .submenu {
  max-height: var(--submenu-h, 180px);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item.active {
  background: var(--orange);
  color: #fff;
  border-color: #ff7c24;
  box-shadow: 0 10px 18px rgba(255, 106, 0, .27);
}

.nav-item.active::before,
.nav-item.active::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-item.active i {
  color: #fff;
}

.nav-item.logout {
  color: #ff3d3d;
}

.workspace {
  background: #fcfcfe;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  position: relative;
  z-index: 120;
}

.search {
  height: 44px;
  border: 1px solid #d6d9e3;
  border-radius: 999px;
  background: #fcfcfd;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.search svg {
  width: 17px;
  height: 17px;
  fill: #737888;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  font: 500 15px/1.2 inherit;
  color: #475063;
  background: transparent;
}

.search-lg {
  width: min(600px, 56vw);
}

.search-sm {
  width: 300px;
  height: 39px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  position: relative;
  z-index: 130;
}

.topbar-clock {
  min-width: 238px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #d8deec;
  background:
    radial-gradient(140% 120% at 18% 10%, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.96) 58%, rgba(240, 245, 253, 0.98)),
    linear-gradient(135deg, #fbfcff, #f1f5fc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(84, 102, 136, 0.10);
  padding: 6px 14px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.topbar-clock strong {
  font: 700 16px/1.05 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .025em;
  color: #2d3a57;
}

.topbar-clock small {
  font: 600 10px/1.15 "Plus Jakarta Sans", sans-serif;
  color: #6b7691;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d7dae4;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #1f2330;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(36, 40, 54, 0.12);
}

.profile {
  min-height: 50px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 312px;
}

.account-menu {
  position: relative;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  margin-bottom: 1px;
  letter-spacing: -0.01em;
}

.profile small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.profile span {
  color: #8f93a2;
  font-size: 15px;
  line-height: 1;
}

.profile {
  border: 1px solid #d7dae4;
  background: #fff;
  cursor: pointer;
  border-radius: 18px;
  transition: opacity .2s ease, transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.profile:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 20px rgba(27, 35, 52, 0.08);
}

.profile:focus-visible {
  outline: 2px solid #ffc89e;
  outline-offset: 2px;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 308px;
  border: 1px solid rgba(219, 227, 241, 0.85);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 255, 0.88));
  box-shadow:
    0 24px 44px rgba(22, 32, 52, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
  padding: 10px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.97);
  transform-origin: top right;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22,.78,.26,1), visibility .22s ease;
  z-index: 1200;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 0%;
}

.account-dropdown::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 154, 85, 0.2), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(91, 133, 255, 0.12), transparent 40%);
}

@supports (backdrop-filter: blur(10px)) {
  .account-dropdown {
    backdrop-filter: blur(12px) saturate(1.1);
  }
}

.account-menu.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #edf0f6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 255, 0.56));
  border-radius: 12px;
}

.account-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.account-head strong {
  display: block;
  font-size: 14px;
  color: #21283a;
}

.account-head small {
  color: #697289;
  font-size: 12px;
}

.account-section {
  padding: 7px 0;
  display: grid;
  gap: 3px;
}

.account-section + .account-section {
  border-top: 1px solid #edf0f6;
}

.account-section button {
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  color: #35405a;
  text-align: left;
  padding: 0 10px;
  font: 600 13px/1 inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-section button:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e3e9f5;
  transform: translateX(2px);
  box-shadow: 0 8px 16px rgba(36, 44, 64, 0.08);
}

.account-section button:focus-visible {
  outline: 2px solid #ffd2ad;
  outline-offset: 2px;
}

.account-section button.danger {
  color: #e24b4b;
  background: rgba(255, 243, 243, 0.56);
}

.account-action-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid #dbe2ef;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  display: inline-grid;
  place-items: center;
  color: inherit;
  flex: 0 0 auto;
}

.account-action-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.account-section button.danger .account-action-icon {
  border-color: #f0c7c7;
  background: linear-gradient(180deg, #fffafa, #fff1f1);
}

.main-content {
  flex: 1;
  min-height: 0;
  padding: 20px 18px 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-view.hidden {
  display: none;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 30;
}

.header-row h1 {
  margin: 0;
  font-size: 33px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.header-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.date-range {
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d6d9e3;
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 14px/1 inherit;
  color: #242838;
}

.date-range-wrap {
  position: relative;
  z-index: 40;
}

.date-range svg {
  width: 17px;
  height: 17px;
  fill: #202534;
}

.date-range i {
  font-style: normal;
  color: #878c9c;
}

.date-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 999;
  width: 320px;
  background: #fff;
  border: 1px solid #d8dce8;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(20, 25, 36, 0.16);
  padding: 12px;
  display: none;
  gap: 10px;
}

.date-range-wrap.open .date-popover {
  display: grid;
}

.cashier-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cashier-toolbar .solid-btn,
.cashier-toolbar .ghost-btn {
  height: 36px;
}

.pos-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.pos-products,
.pos-cart {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 120px);
}

.pos-cart {
  overflow-y: auto;
}

.pos-tools {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.search-product {
  width: 100%;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  height: 32px;
  border-radius: 999px;
  border: 1px solid #dde1eb;
  background: #f9fafc;
  color: #4e576c;
  padding: 0 12px;
  font: 600 13px/1 inherit;
  cursor: pointer;
}

.chip.active {
  border-color: #ffcfad;
  background: #fff2e7;
  color: #ff6a00;
}

.product-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  align-content: start;
}

.product-grid::-webkit-scrollbar {
  width: 8px;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #d3d8e5;
  border-radius: 999px;
}

.product-grid::-webkit-scrollbar-track {
  background: transparent;
}

.product-card {
  border: 1px solid #e3e7f0;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.product-card.hidden {
  display: none;
}

.product-card img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.product-card h4 {
  margin: 0;
  font-size: 14px;
  color: #1f2537;
}

.product-card p {
  margin: 3px 0 6px;
  font-size: 12px;
  color: #7b8295;
}

.product-card strong {
  font-size: 15px;
  color: #111726;
}

.mini-btn {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #ffcda9;
  background: #fff2e7;
  color: #ff6a00;
  font: 700 12px/1 inherit;
  cursor: pointer;
}

.mini-btn:active {
  transform: translateY(1px);
}

.cart-meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  column-gap: 10px;
  font-size: 13px;
}

.cart-meta span {
  color: #6f778b;
}

.cart-meta strong {
  color: #22283a;
}

.cart-settings {
  margin-top: 10px;
  border: 1px solid #e6eaf2;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fcfcfe;
}

.setting-field {
  display: grid;
  gap: 5px;
}

.setting-field label {
  font-size: 12px;
  color: #66708a;
  font-weight: 600;
}

.setting-field input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dbe0eb;
  padding: 0 10px;
  font: 500 13px/1 inherit;
  color: #253049;
  background: #fff;
}

.setting-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4f5870;
}

.setting-check input {
  accent-color: #ff6a00;
}

.cart-list {
  margin-top: 12px;
  border: 1px solid #e9ecf3;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.cart-item {
  border-radius: 8px;
  background: #fafbfd;
  border: 1px solid #edf0f6;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item h4 {
  margin: 0;
  font-size: 13px;
  color: #21273a;
}

.cart-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7c8397;
}

.cart-item-sku {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #8d95a9;
}

.cart-item strong {
  font-size: 14px;
  color: #111827;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-actions {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #dce2ed;
  background: #fff;
  color: #3a4257;
  font: 700 13px/1 inherit;
  cursor: pointer;
}

.qty-value {
  min-width: 18px;
  text-align: center;
  color: #343c51;
  font-size: 12px;
  font-weight: 700;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #f04646;
  font: 600 11px/1 inherit;
  cursor: pointer;
  padding: 0;
}

.cart-empty {
  border: 1px dashed #dde3ef;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #7a8296;
  font-size: 13px;
}

.cart-summary {
  margin-top: 12px;
  border-top: 1px solid #eceff5;
  padding-top: 10px;
}

.cart-summary p {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5f667b;
}

.cart-summary strong {
  color: #1a2032;
}

.cart-summary .grand {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #121828;
}

.payment-methods {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-chip {
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dee2ec;
  background: #f9fafc;
  color: #4f566b;
  font: 600 12px/1 inherit;
  cursor: pointer;
}

.pay-chip.active {
  border-color: #ffcfad;
  background: #fff2e7;
  color: #ff6a00;
}

.cash-calculator {
  margin-top: 10px;
  border: 1px solid #e6eaf2;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fcfcfe;
}

.cash-calculator label {
  font-size: 12px;
  color: #66708a;
  font-weight: 600;
}

.cash-calculator input {
  height: 36px;
  border-radius: 8px;
  border: 1px solid #dbe0eb;
  padding: 0 10px;
  font: 600 14px/1 inherit;
  color: #253049;
}

.quick-cash {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.quick-cash button {
  height: 30px;
  border-radius: 8px;
  border: 1px solid #dde2ee;
  background: #fff;
  color: #4f5a72;
  font: 600 12px/1 inherit;
  cursor: pointer;
}

.quick-cash button:hover {
  border-color: #ffcfad;
  color: #ff6a00;
}

.cash-calculator p {
  margin: 0;
  font-size: 12px;
  color: #606a82;
}

.cash-calculator p.ok {
  color: #1f8f4a;
  font-weight: 700;
}

.cash-calculator p.warn {
  color: #db4a3a;
  font-weight: 700;
}

.change-simulation {
  border-top: 1px dashed #dfe4ef;
  padding-top: 8px;
  font-size: 12px;
  color: #5e677f;
  display: grid;
  gap: 4px;
}

.change-simulation strong {
  color: #2a3248;
}

.change-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-btn {
  margin-top: 12px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #ff7f2a;
  background: linear-gradient(180deg, #ff7b1a, #ff6200);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(255, 106, 0, 0.3);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.checkout-btn::before,
.print-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.3) 46%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}

.checkout-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(255, 106, 0, 0.34);
}

.checkout-btn:hover::before,
.print-btn:hover::before {
  transform: translateX(120%);
}

.checkout-btn:active,
.print-btn:active {
  transform: translateY(0);
}

.checkout-btn:disabled {
  background: #d8dde9;
  color: #6f778a;
  border-color: #d8dde9;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.print-btn {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  border: 1px solid #ced6e8;
  color: #44506a;
  box-shadow: 0 8px 16px rgba(35, 44, 61, 0.1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, color .22s ease, background-color .22s ease;
}

.print-btn:hover {
  border-color: #b9c5df;
  color: #2f3c59;
  box-shadow: 0 12px 20px rgba(35, 44, 61, 0.14);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #1f8f4a;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(18, 28, 46, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.receipt-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 23, 35, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 70;
}

.receipt-modal.show {
  display: flex;
}

.profile-settings-modal {
  z-index: 80;
}

.profile-settings-modal .profile-settings-dialog {
  width: min(1380px, calc(100vw - 24px)) !important;
}

.profile-settings-modal .profile-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d7deeb;
  border-radius: 8px;
  background: #f7f9fd;
  color: #52607d;
  font: 700 13px/1 inherit;
  cursor: pointer;
}

.profile-settings-modal .profile-settings-form {
  padding: 0;
  display: flex;
  gap: 0;
}

#productForm {
  padding-bottom: 0;
  overflow: auto;
}

#productForm .profile-settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 6px -14px 0;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
}

.profile-settings-form .date-field span {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}

.profile-settings-modal .profile-settings-dialog {
  width: min(1380px, calc(100vw - 24px));
  max-height: calc(100vh - 16px);
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.16),
    0 6px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.profile-settings-modal .profile-settings-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #eef0f3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.profile-settings-title-wrap {
  display: grid;
  gap: 8px;
}

.profile-settings-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7a00;
}

.profile-settings-title-wrap h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111827;
}

.profile-settings-title-wrap > span {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.profile-settings-modal .profile-settings-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-settings-modal .profile-settings-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 20px;
  min-height: 0;
  padding: 16px 24px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  overflow: visible;
  align-items: start;
}

.profile-settings-modal .profile-settings-sidebar,
.profile-settings-modal .profile-settings-preview {
  min-width: 0;
}

.profile-settings-tablist {
  display: grid;
  gap: 10px;
}

.profile-settings-tab {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  color: #4b5563;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-settings-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.profile-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.26);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
  box-shadow: 0 18px 36px rgba(255, 122, 0, 0.08);
}

.profile-settings-tab-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff2e4 0%, #ffe7d1 100%);
  color: #ff7a00;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-settings-tab strong,
.profile-settings-tab small {
  display: block;
}

.profile-settings-tab strong {
  font-size: 18px;
  line-height: 1.2;
  color: #111827;
}

.profile-settings-tab small {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.profile-settings-modal .profile-settings-main {
  min-width: 0;
  width: 100%;
}

.profile-settings-panel {
  display: none;
}

.profile-settings-modal .profile-settings-panel.is-active {
  display: grid;
  gap: 12px;
  width: 100%;
}

.profile-panel-head h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  color: #111827;
}

.profile-panel-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.profile-settings-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
  width: 100%;
}

.profile-settings-card-muted {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.profile-section-label {
  display: grid;
  gap: 4px;
}

.profile-section-label strong {
  font-size: 16px;
  line-height: 1.2;
  color: #111827;
}

.profile-section-label span {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.profile-avatar-upload.premium {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-avatar-preview-wrap {
  position: relative;
  width: 160px;
}

#profileAvatarPreview {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  border: 6px solid #ffffff;
  object-fit: cover;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #edf2f8, #ffffff);
  box-shadow:
    0 24px 36px rgba(15, 23, 42, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.profile-avatar-badge {
  position: absolute;
  right: 8px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ff7a00;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.28);
}

.profile-avatar-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.profile-avatar-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-upload-btn {
  min-width: 148px;
  justify-content: center;
  cursor: pointer;
}

#profileAvatarInput {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.profile-avatar-actions small {
  color: #667085;
  font-size: 12px;
}

#profileAvatarClearBtn {
  min-width: 110px;
}

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

.profile-form-grid-full {
  grid-column: 1 / -1;
}

.profile-settings-form .date-field {
  display: grid;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.profile-settings-form .date-field input {
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.profile-settings-form .date-field input:focus {
  border-color: #ffb26f;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.profile-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-readonly-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f0ede8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.profile-readonly-grid span,
.profile-preview-meta span,
.profile-preview-footer span {
  font-size: 12px;
  color: #667085;
}

.profile-readonly-grid strong,
.profile-preview-meta strong,
.profile-preview-footer strong {
  font-size: 14px;
  color: #1f2a44;
}

.profile-validation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #667085;
  font-size: 13px;
}

.profile-toggle-list,
.profile-check-list {
  display: grid;
  gap: 10px;
}

.profile-toggle-row,
.profile-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
}

.profile-toggle-row strong,
.profile-check-row span {
  color: #1f2a44;
}

.profile-toggle-row small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.profile-switch {
  position: relative;
  display: inline-flex;
}

.profile-switch input {
  position: absolute;
  opacity: 0;
}

.profile-switch-slider {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background 0.18s ease;
}

.profile-switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.profile-switch input:checked + .profile-switch-slider {
  background: #ff7a00;
}

.profile-switch input:checked + .profile-switch-slider::after {
  transform: translateX(22px);
}

.profile-check-row {
  justify-content: flex-start;
}

.profile-check-row input {
  width: 18px;
  height: 18px;
  accent-color: #ff7a00;
}

.profile-notification-workspace {
  gap: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #fcfcfd 0%, #f8f9fb 100%);
}

.profile-notification-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #eaeaea;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.profile-notification-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-notification-hero h5 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #1f2937;
}

.profile-notification-hero p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.profile-notification-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.profile-notification-hero-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
  min-width: 120px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
}

.profile-notification-hero-stats strong {
  font-size: 28px;
  line-height: 1;
  color: #ff7a00;
}

.profile-notification-hero-stats span {
  font-size: 12px;
  color: #667085;
}

.profile-notification-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.profile-notification-sidebar,
.profile-notification-content {
  min-width: 0;
}

.profile-notification-tablist {
  display: grid;
  gap: 10px;
}

.profile-notification-tab {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: #ffffff;
  color: #4b5563;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-notification-tab:hover {
  transform: translateY(-1px);
  border-color: #ffd4b0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.profile-notification-tab.is-active {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
  box-shadow: 0 18px 32px rgba(255, 122, 0, 0.10);
}

.profile-notification-tab-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff2e4 0%, #ffe6cf 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.profile-notification-tab strong,
.profile-notification-tab small {
  display: block;
}

.profile-notification-tab strong {
  font-size: 15px;
  color: #111827;
}

.profile-notification-tab small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.profile-notification-content {
  display: grid;
}

.profile-notification-panel {
  display: none;
  gap: 16px;
  animation: profileNotificationPanelIn .22s ease;
}

.profile-notification-panel.is-active {
  display: grid;
}

@keyframes profileNotificationPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-notification-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-notification-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #eaeaea;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.profile-notification-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-notification-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff1e2 0%, #ffe4c9 100%);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.profile-notification-card-head h6 {
  margin: 0;
  font-size: 17px;
  color: #111827;
}

.profile-notification-card-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.profile-toggle-row-rich {
  align-items: center;
  min-height: 84px;
}

.profile-notification-toggle-list,
.profile-notification-check-stack {
  display: grid;
  gap: 12px;
}

.profile-notification-checkbox-grid,
.profile-notification-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-notification-check-card,
.profile-notification-radio-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.profile-notification-check-card:hover,
.profile-notification-radio-card:hover,
.profile-notification-pill:hover {
  transform: translateY(-1px);
}

.profile-notification-check-card input,
.profile-notification-radio-card input,
.profile-notification-pill input {
  margin-top: 2px;
  accent-color: #ff7a00;
}

.profile-notification-check-card:has(input:checked),
.profile-notification-radio-card:has(input:checked),
.profile-notification-pill:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.3);
  background: #fff5eb;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.1);
}

.profile-notification-check-card strong,
.profile-notification-radio-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.profile-notification-check-card small,
.profile-notification-radio-card small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.profile-notification-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-notification-inline-grid .date-field {
  background: #ffffff;
}

.profile-notification-inline-grid .date-field select,
.profile-notification-inline-grid .date-field input {
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  padding: 0 14px;
  font: inherit;
}

.profile-notification-subcard,
.profile-notification-inline-toggle {
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: #ffffff;
}

.profile-notification-subcard {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.profile-notification-subtitle {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.profile-notification-channel-matrix {
  display: grid;
  gap: 12px;
}

.profile-notification-matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #edf0f3;
  border-radius: 18px;
  background: #fbfcfd;
}

.profile-notification-matrix-row strong {
  color: #111827;
  font-size: 14px;
}

.profile-notification-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-notification-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.profile-notification-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-notification-pill span {
  font-size: 13px;
  font-weight: 600;
}

.priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-choice-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  cursor: pointer;
}

.profile-choice-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ff7a00;
}

.profile-choice-card strong,
.profile-choice-card small {
  display: block;
}

.profile-choice-card strong {
  color: #1f2a44;
}

.profile-choice-card small {
  margin-top: 4px;
  font-size: 12px;
  color: #667085;
}

.profile-session-list {
  display: grid;
  gap: 10px;
}

.profile-session-item,
.profile-session-empty {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
}

.profile-session-item.is-current {
  border-color: rgba(255, 122, 0, 0.26);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.profile-session-item-top,
.profile-session-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-session-item-top strong {
  color: #1f2a44;
  font-size: 14px;
}

.profile-session-item-top span,
.profile-session-item-meta span,
.profile-session-empty {
  color: #667085;
  font-size: 12px;
}

.profile-logout-all-btn {
  width: fit-content;
}

.profile-settings-modal .profile-preview-card {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: none;
}

.profile-settings-preview {
  width: 100%;
  min-width: 0;
}

.profile-preview-card.theme-dark {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.34), transparent 32%),
    linear-gradient(180deg, #1e293b, #0f172a);
}

.profile-preview-card.theme-dark,
.profile-preview-card.theme-dark strong,
.profile-preview-card.theme-dark span {
  color: #f8fafc;
}

.profile-preview-card.theme-dark .profile-preview-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.profile-preview-card.theme-dark .profile-preview-meta div,
.profile-preview-card.theme-dark .profile-preview-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-preview-head,
.profile-preview-identity,
.profile-preview-meta,
.profile-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-preview-caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}

.profile-preview-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c35a00;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-preview-identity {
  align-items: center;
}

#profileCardAvatarPreview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.profile-preview-identity strong,
.profile-preview-identity span {
  display: block;
}

.profile-preview-identity strong {
  margin-bottom: 6px;
  font-size: 18px;
  color: #1f2a44;
  line-height: 1.2;
  word-break: break-word;
}

.profile-preview-identity span {
  color: #667085;
  font-size: 13px;
  word-break: break-word;
}

.profile-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-preview-meta div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-preview-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.profile-preview-footer span {
  font-size: 11px;
}

.profile-preview-footer strong {
  font-size: 12px;
  word-break: break-word;
}

.profile-settings-modal .profile-settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 14px 24px 16px;
  border-top: 1px solid #eef0f3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.profile-settings-modal .profile-settings-actions .ghost-btn,
.profile-settings-modal .profile-settings-actions .solid-btn {
  height: 46px;
  min-width: 140px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.profile-settings-modal .profile-settings-actions .ghost-btn {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.profile-settings-modal .profile-settings-actions .solid-btn {
  background: linear-gradient(135deg, #ff932a, #ff7a00);
  border-color: #ff7a00;
  box-shadow:
    0 12px 24px rgba(255, 122, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.profile-settings-modal .profile-settings-actions .solid-btn[disabled] {
  opacity: 0.75;
  cursor: wait;
}

body.profile-ui-dark .profile-settings-dialog {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 34%),
    linear-gradient(180deg, #101827, #0f172a);
}

.upgrade-plan-modal .upgrade-plan-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.18),
    0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.upgrade-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #eef0f3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
}

.upgrade-plan-head h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #111827;
}

.upgrade-plan-head p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 58ch;
}

.upgrade-plan-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  scroll-behavior: smooth;
}

.upgrade-plan-hero {
  padding: 18px 20px;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), transparent 40%),
    #ffffff;
}

.upgrade-plan-hero strong {
  display: block;
  font-size: 17px;
  color: #111827;
}

.upgrade-plan-hero p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.upgrade-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.upgrade-plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.upgrade-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.upgrade-plan-card.is-selected,
.upgrade-plan-card.is-recommended {
  border-color: rgba(255, 122, 0, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08) 0%, rgba(255, 255, 255, 1) 26%),
    #ffffff;
}

.upgrade-plan-card.is-selected {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 48px rgba(255, 122, 0, 0.12);
}

.upgrade-plan-card.is-current {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.upgrade-plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-plan-tier {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upgrade-plan-card h4 {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.15;
  color: #111827;
  word-break: break-word;
}

.upgrade-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ff7a00;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.upgrade-plan-badge-muted {
  background: #f1f5f9;
  color: #64748b;
}

.upgrade-plan-badge-soft {
  background: #fff7ed;
  color: #c2410c;
}

.upgrade-plan-price {
  display: grid;
  gap: 4px;
}

.upgrade-plan-price strong {
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #111827;
  word-break: break-word;
}

.upgrade-plan-price span {
  font-size: 13px;
  color: #6b7280;
}

.upgrade-plan-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.upgrade-plan-feature-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.upgrade-plan-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 700;
}

.upgrade-plan-card-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  margin-top: 4px;
}

.upgrade-plan-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.upgrade-plan-highlight article {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.upgrade-plan-highlight article > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff7ed;
  font-size: 18px;
}

.upgrade-plan-highlight strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.upgrade-plan-highlight p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.upgrade-plan-actions {
  padding: 16px 28px 22px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #eef0f3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  bottom: 0;
}

.upgrade-plan-actions .solid-btn,
.upgrade-plan-actions .ghost-btn {
  min-height: 46px;
  border-radius: 12px;
}

.upgrade-plan-actions .solid-btn {
  min-width: 168px;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.22);
}

.upgrade-plan-actions .ghost-btn:first-child {
  margin-right: auto;
}

.upgrade-plan-head .modal-close-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.receipt-dialog {
  width: min(560px, calc(100vw - 30px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d9deea;
  box-shadow: 0 20px 40px rgba(17, 22, 32, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.receipt-head {
  padding: 12px 14px;
  border-bottom: 1px solid #e8ecf4;
}

.receipt-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1a2235;
}

.receipt-body {
  padding: 10px;
  overflow: auto;
}

.receipt-paper {
  border: 1px dashed #d7dbe6;
  border-radius: 10px;
  padding: 10px;
  color: #1a202f;
  max-width: 320px;
  margin: 0 auto;
}

.receipt-paper h4 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.receipt-paper p {
  margin: 2px 0;
  font-size: 12px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.receipt-table td {
  padding: 4px 0;
  border-bottom: 1px dashed #d8dde8;
  font-size: 12px;
}

.receipt-table td:last-child {
  text-align: right;
}

.receipt-sum {
  margin-top: 8px;
}

.receipt-sum p {
  margin: 3px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.receipt-sum .total {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.receipt-actions {
  padding: 12px 14px;
  border-top: 1px solid #e8ecf4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.date-field {
  display: grid;
  gap: 6px;
}

.date-field label {
  font-size: 12px;
  color: #6c7285;
  font-weight: 600;
}

.required-mark {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.date-field input {
  height: 38px;
  border: 1px solid #d6d9e3;
  border-radius: 9px;
  padding: 0 10px;
  font: 500 14px/1 inherit;
  color: #2b3040;
  background: #fff;
}

.date-field select {
  height: 38px;
  border: 1px solid #d6d9e3;
  border-radius: 9px;
  padding: 0 10px;
  font: 500 14px/1 inherit;
  color: #2b3040;
  background: #fff;
}

.date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.ghost-btn,
.solid-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 13px/1 inherit;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.ghost-btn {
  background: #f5f7fb;
  color: #4c556b;
  border-color: #e2e6f0;
}

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

.solid-btn:hover {
  filter: brightness(0.95);
}

.btn-icon-svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: 0 0 auto;
  display: block;
  opacity: 0.95;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  background: var(--panel);
  border: 1px solid #d9dce5;
  border-radius: var(--radius);
  padding: 13px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(24, 28, 40, 0.12);
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.kpi-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.kpi-icon.peach { background: #ffecde; color: #ff7c28; }
.kpi-icon.blue { background: #e7ecff; color: #4766e2; }
.kpi-icon.sky { background: #deedff; color: #4b95e9; }
.kpi-icon.green { background: #e1f3dc; color: #65ab54; }

.kpi-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #32374a;
  letter-spacing: -0.02em;
}

.kpi-head button,
.panel-head button:not(.export-btn):not(.ghost-btn):not(.solid-btn):not(.product-action-btn) {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #83879a;
  font-size: 20px;
  line-height: 1;
}

.metric {
  margin: 14px 0 6px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.delta {
  margin: 0;
  font-size: 13px;
  color: #7d8394;
}

.up { color: #1daa3d; }
.down { color: #f44747; }

.charts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid #d9dce5;
  border-radius: var(--radius);
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
}

.panel-head h3 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dashboard-panel {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(140% 120% at 0% 0%, #ffffff 0%, #f7faff 52%, #f2f6fe 100%);
  min-height: calc(100vh - 168px);
  align-content: start;
}

#viewDashboard:not(.hidden) {
  display: flex;
}

#viewDashboard.hidden {
  display: none;
}

#viewDashboard .dashboard-panel {
  flex: 1;
}

.dashboard-hero {
  border: 1px solid #dbe4f3;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f3f7ff 65%, #eef4ff 100%);
  box-shadow: 0 16px 28px rgba(34, 50, 79, 0.08);
  display: grid;
  gap: 10px;
}

.dashboard-brand-pill {
  width: fit-content;
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid #d5deef;
  background: #fff;
  color: #3a4b6e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff944d, #ff6a00);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.dashboard-hero h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #1a2540;
}

.dashboard-hero p {
  margin: 0;
  max-width: 940px;
  color: #566584;
  font-size: 16px;
  line-height: 1.5;
}

.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.dashboard-quick-actions .solid-btn,
.dashboard-quick-actions .ghost-btn {
  height: 44px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-cta {
  --accent: #ff7a1a;
  --accent-soft: #fff3ea;
  --accent-border: #ffc79f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-width: 1px;
  transition: transform .2s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
}

.dashboard-cta .cta-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  background: color-mix(in srgb, var(--accent-soft) 85%, white);
  color: var(--accent);
  flex: 0 0 auto;
}

.dashboard-cta .cta-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.dashboard-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.dashboard-cta.cta-sales {
  --accent: #ff6f0f;
  --accent-soft: #fff4ea;
  --accent-border: #ffcaa5;
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #fffaf5, #fff1e5);
  color: #b3571d;
}

.dashboard-cta.cta-sales:hover {
  background: linear-gradient(180deg, #ffefe1, #ffe3d0);
  border-color: #ffb988;
  color: #a24c17;
}

.dashboard-cta.cta-sales:hover .cta-icon {
  border-color: #ffbb8c;
  background: #fff7f0;
  color: #c65c18;
}

.dashboard-cta.cta-products {
  --accent: #0d81a8;
  --accent-soft: #eaf8ff;
  --accent-border: #b9e7f7;
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #f7fdff, #ecf9ff);
  color: #0f5f7a;
}

.dashboard-cta.cta-products:hover {
  background: linear-gradient(180deg, #e4f7ff, #d4efff);
  border-color: #95d6f3;
  color: #0a5a75;
}

.dashboard-cta.cta-report {
  --accent: #3f68d6;
  --accent-soft: #eef2ff;
  --accent-border: #cad5fb;
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #f8f9ff, #eff3ff);
  color: #41548d;
}

.dashboard-cta.cta-report:hover {
  background: linear-gradient(180deg, #ecf0ff, #e2e9ff);
  border-color: #aebff7;
  color: #354a83;
}

.dashboard-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-value-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e2f2;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 10px 18px rgba(28, 41, 66, 0.06);
  display: grid;
  gap: 8px;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}

.dashboard-value-card::before {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(circle at 22% 18%, rgba(77, 161, 255, 0.22), transparent 46%),
    radial-gradient(circle at 78% 20%, rgba(52, 211, 153, 0.18), transparent 42%),
    radial-gradient(circle at 50% 86%, rgba(168, 85, 247, 0.2), transparent 48%);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.dashboard-value-card:hover {
  transform: translateY(-2px);
  border-color: #b8c9ea;
  filter: brightness(.985) saturate(1.03);
  box-shadow:
    0 18px 30px rgba(34, 52, 86, 0.12),
    0 0 0 1px rgba(132, 166, 232, 0.22),
    0 0 26px rgba(77, 161, 255, 0.16);
}

.dashboard-value-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.dashboard-value-card h4 {
  margin: 0;
  color: #243656;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.dashboard-value-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.value-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #d7e2f3;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  display: inline-grid;
  place-items: center;
  color: #2d4f88;
  flex: 0 0 auto;
}

.value-title-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.dashboard-value-card.value-goal h4 {
  color: #145ca8;
}

.dashboard-value-card.value-goal .value-title-icon {
  border-color: #b8dafb;
  background: linear-gradient(180deg, #f8fcff, #ebf5ff);
  color: #1a73c2;
}

.dashboard-value-card.value-benefit h4 {
  color: #0f7d5f;
}

.dashboard-value-card.value-benefit .value-title-icon {
  border-color: #bfe8dd;
  background: linear-gradient(180deg, #f6fff9, #e9fbf4);
  color: #12906f;
}

.dashboard-value-card.value-brand h4 {
  color: #6a49b2;
}

.dashboard-value-card.value-brand .value-title-icon {
  border-color: #d9caf8;
  background: linear-gradient(180deg, #fcf9ff, #f3ecff);
  color: #7b5ac8;
}

.dashboard-value-card p {
  margin: 0;
  color: #5c6c8a;
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-feature-board {
  border: 1px solid #d9e3f4;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-feature-item {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff, #f4f8ff);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.dashboard-feature-item strong {
  color: #203252;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.dashboard-feature-item span {
  color: #60708d;
  font-size: 13px;
  line-height: 1.4;
}

.dashboard-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #d7e2f3;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  display: inline-grid;
  place-items: center;
  color: #2f4f86;
  flex: 0 0 auto;
}

.dashboard-title-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.line-wrap {
  margin-top: 6px;
  position: relative;
  height: 260px;
}

.line-plot {
  position: absolute;
  inset: 6px 0 30px 0;
  width: 100%;
  height: calc(100% - 36px);
}

.grid line {
  stroke: #ebecef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.trend {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.25,.65,.2,1);
}

.focus-dot {
  fill: #ff6a00;
  stroke: #fff;
  stroke-width: 2;
}

.tooltip {
  position: absolute;
  top: 24px;
  left: 63%;
  transform: translateX(-50%);
  background: #0f1024;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.25;
  padding: 10px 14px;
  text-align: center;
}

.tooltip strong {
  display: block;
  font-size: 27px;
  margin-top: 4px;
}

.axis {
  position: absolute;
  color: #9da1af;
  font-size: 13px;
}

.axis.y {
  left: 8px;
  top: 14px;
  height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.axis.x {
  left: 62px;
  right: 26px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
}

.donut-box {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 10px auto 0;
}

.donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#c59af5 0 55%, #d6b8fa 55% 85%, #e9d4fd 85% 100%);
  animation: spinIn 1s cubic-bezier(.22,.7,.2,1);
}

.donut::after {
  content: '';
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: #fff;
}

.value {
  position: absolute;
  font-size: 25px;
  font-weight: 700;
}

.value.v1 { right: -12px; top: 20px; }
.value.v2 { left: -12px; top: 20px; }
.value.v3 { left: -14px; bottom: 45px; }

.legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
  color: #62697b;
}

.legend i {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--color);
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
}

.table-panel {
  margin-top: 14px;
}

.panel-table-head {
  margin-bottom: 12px;
}

.table-wrap {
  border: 1px solid #eceef4;
  border-radius: 9px;
  overflow: hidden;
}

.product-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #f8ede5;
  color: #677287;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 14px;
}

tbody td {
  font-size: 15px;
  border-top: 1px solid #edf0f5;
  padding: 11px 14px;
}

tbody tr:hover {
  background: #fbfbfd;
}

.transaction-table-wrap tbody td:nth-child(2) {
  font-weight: 600;
  color: #232839;
  min-width: 220px;
  white-space: nowrap;
}

tbody img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ececf1;
}

.transaction-invoice-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invoice-toggle-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: #1b2234;
  cursor: pointer;
  white-space: nowrap;
}

.invoice-toggle-btn strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.invoice-toggle-btn:hover strong {
  color: #ff6a00;
}

.invoice-toggle-caret {
  color: #8b93a8;
  font-size: 13px;
  line-height: 1;
  transition: transform .2s ease;
}

.transaction-row.open .invoice-toggle-caret {
  transform: rotate(180deg);
}

.transaction-invoice-cell small {
  color: #8c94aa;
  font-size: 12px;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid #e0e5f0;
  background: #f6f8fd;
  color: #4b5670;
  font-size: 12px;
  font-weight: 700;
}

.method-chip.method-cash {
  border-color: #ffd3b0;
  background: #fff1e5;
  color: #ff6a00;
}

.method-chip.method-qris {
  border-color: #cde2ff;
  background: #eef5ff;
  color: #2a6ac7;
}

.method-chip.method-debit {
  border-color: #d4e8d4;
  background: #eff9ef;
  color: #2f8c45;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid #d9e1f0;
  background: #f5f8ff;
  color: #4f5f83;
  font-size: 12px;
  font-weight: 700;
}

.source-chip.source-kasir {
  border-color: #d6e9d6;
  background: #eef9ef;
  color: #2f8c45;
}

.source-chip.source-marketplace {
  border-color: #cfe0ff;
  background: #eef4ff;
  color: #2f5fb5;
}

.transaction-details-row.hidden {
  display: none;
}

.transaction-details-row td {
  padding: 0 14px 12px;
  border-top: 0;
  background: #fff;
}

.transaction-details-card {
  border: 1px solid #e8ebf3;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fcfdff, #f8faff);
}

.transactions-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.transactions-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.transactions-pagination-btn,
.transactions-pagination-page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dde4ef;
  border-radius: 12px;
  background: #ffffff;
  color: #475467;
  font: 600 14px/1 "Poppins", "Inter", sans-serif;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.transactions-pagination-btn:hover,
.transactions-pagination-page:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.25);
  color: #c2410c;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.transactions-pagination-page.is-active {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #fff4e8 0%, #ffe8d1 100%);
  color: #c2410c;
  box-shadow: 0 12px 20px rgba(255, 122, 0, 0.12);
}

.transactions-pagination-btn:disabled,
.transactions-pagination-page:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}

.transaction-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.transaction-details-head strong {
  font-size: 14px;
  color: #2a3248;
}

.transaction-details-head span {
  color: #7a8296;
  font-size: 12px;
  font-weight: 600;
}

.transaction-items-table {
  width: 100%;
  border-collapse: collapse;
}

.transaction-items-table thead th {
  background: #f4f6fb;
  color: #667188;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.transaction-items-table tbody td {
  padding: 8px 10px;
  font-size: 13px;
  border-top: 1px solid #e8edf6;
}

.transaction-items-table tbody td:nth-child(3),
.transaction-items-table tbody td:nth-child(4) {
  width: 120px;
}

.trx-item-name {
  font-weight: 600;
  color: #1f273a;
}

.trx-item-sku {
  margin-top: 2px;
  display: block;
  font-size: 11px;
  color: #828ba1;
}

.transactions-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transactions-head {
  align-items: flex-start;
}

.transactions-title-wrap {
  max-width: 980px;
}

.transactions-desc {
  margin: 8px 0 0;
  color: #66728b;
  font-size: 14px;
  line-height: 1.6;
}

.transactions-head-actions {
  margin-top: 14px;
  margin-left: 0;
}

.export-btn {
  height: 44px;
  min-width: 146px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cfd8ea;
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  color: #425070;
  font: 700 15px/1 inherit;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(34, 45, 67, 0.12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}

.export-btn:hover {
  transform: translateY(-1px);
  border-color: #bcc8e0;
  color: #2f3e5d;
  box-shadow: 0 14px 22px rgba(34, 45, 67, 0.16);
}

.export-btn:active {
  transform: translateY(0);
}

.export-btn:focus-visible {
  outline: 2px solid #ffd3af;
  outline-offset: 2px;
}

.purchase-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 0;
  flex-wrap: wrap;
}

.purchase-pagination small {
  color: #6b7690;
  font-size: 13px;
  line-height: 1.5;
}

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

.purchase-pagination-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  border-radius: 12px;
}

.purchase-pagination-actions .ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.purchase-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.purchase-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  color: #41506d;
  font: 700 13px/1 inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.purchase-page-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd6ea;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.08);
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 0;
  flex-wrap: wrap;
}

.product-pagination small {
  color: #6b7690;
  font-size: 13px;
  line-height: 1.5;
}

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

.product-pagination-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  border-radius: 12px;
}

.product-pagination-actions .ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.product-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  color: #41506d;
  font: 700 13px/1 inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-page-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd6ea;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.08);
}

.product-page-btn.active {
  border-color: #ffd4b2;
  background: linear-gradient(180deg, #fff5eb 0%, #ffe7d4 100%);
  color: #f26a00;
  box-shadow: 0 12px 20px rgba(242, 106, 0, 0.16);
}

.purchase-page-btn.active {
  border-color: rgba(255, 122, 0, 0.24);
  background: rgba(255, 122, 0, 0.1);
  color: #d66500;
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.import-panel {
  display: grid;
  gap: 14px;
}

.purchases-panel {
  display: grid;
  gap: 14px;
  background: #f8fafc;
}

.purchases-premium-head {
  align-items: flex-start;
  gap: 14px;
}

.purchases-premium-title-wrap {
  display: grid;
  gap: 8px;
}

.purchases-premium-title-wrap .transactions-meta {
  margin: 0;
}

.purchases-premium-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.purchases-premium-actions .export-btn {
  min-width: 190px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff8c3a 0%, #ff6600 100%);
  box-shadow: 0 16px 28px rgba(255, 108, 17, 0.28);
}

.purchases-premium-actions .export-btn:hover {
  color: #fff;
  border: 0;
  box-shadow: 0 18px 30px rgba(255, 108, 17, 0.34);
}

.purchases-premium-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.purchases-premium-summary article {
  border-radius: 14px;
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: 0 12px 24px rgba(41, 55, 86, 0.08);
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.purchases-premium-summary small {
  font-size: 12px;
  color: #6d7891;
  font-weight: 600;
}

.purchases-premium-summary strong {
  font-size: 20px;
  color: #162034;
  letter-spacing: 0.01em;
}

.purchases-premium-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.purchase-global-search {
  width: min(560px, 100%);
  background: #fff;
  border-color: #dfe6f3;
  box-shadow: 0 10px 20px rgba(36, 52, 80, 0.08);
}

.purchase-global-search:focus-within {
  border-color: #ffc79a;
  box-shadow: 0 0 0 3px rgba(255, 140, 58, 0.16);
}

.purchase-multi-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5e6b84;
  font-size: 13px;
  font-weight: 600;
}

.purchase-multi-expand-toggle input {
  accent-color: #ff7f1f;
}

.purchases-smart-filter-popover {
  border: 1px solid #e3e9f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(29, 41, 66, 0.14);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.purchases-smart-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#purchaseFilterSupplier {
  min-height: 106px;
  border: 1px solid #dce3f1;
  border-radius: 10px;
  padding: 8px;
  font: 500 13px/1.4 inherit;
  color: #27314a;
  background: #fff;
}

.purchase-filter-status-group {
  margin: 0;
  border: 1px solid #dce3f1;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  min-height: 106px;
}

.purchase-filter-status-group legend {
  padding: 0 5px;
  color: #62708d;
  font-size: 12px;
  font-weight: 700;
}

.purchase-filter-status-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c4863;
  font-size: 13px;
  font-weight: 600;
}

.purchases-smart-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.purchases-smart-filter-actions .solid-btn {
  background: linear-gradient(135deg, #ff8b37 0%, #ff6807 100%);
  border: 0;
}

.purchase-table-wrap-premium {
  border-radius: 18px;
  border: 1px solid #e7ecf5;
  background: #fff;
  box-shadow: 0 18px 36px rgba(34, 48, 75, 0.08);
  overflow-x: auto;
}

.refund-panel {
  display: grid;
  gap: 16px;
  background: var(--panel);
}

.refund-panel-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.refund-title-wrap {
  display: grid;
  gap: 6px;
  max-width: 980px;
}

.refund-header-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.refund-primary-btn {
  background: linear-gradient(180deg, #ff8a1d, #ff6a00);
}

.refund-primary-btn.alt {
  background: linear-gradient(180deg, #ff9a38, #ff7d12);
}

.refund-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.refund-kpi-card {
  border: 1px solid #d9dce5;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 24px rgba(31, 45, 73, 0.08);
  display: grid;
  gap: 6px;
}

.refund-kpi-card small {
  color: #8b6d4c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.refund-kpi-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.refund-kpi-card span {
  color: #7b6d63;
  font-size: 13px;
}

.refund-kpi-card.warning {
  border-color: #f6df95;
  background: linear-gradient(180deg, #fffdf5, #fff8d8);
}

.refund-kpi-card.success {
  border-color: #cfe9d7;
  background: linear-gradient(180deg, #f9fff9, #eefaf0);
}

.refund-kpi-card.slate {
  border-color: #dfe4ef;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
}

.refund-toolbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.refund-toolbar > .date-field,
.refund-toolbar > .refund-search {
  min-width: 0;
}

.refund-toolbar > .date-field:nth-child(1),
.refund-toolbar > .date-field:nth-child(2),
.refund-toolbar > .date-field:nth-child(3) {
  grid-column: span 2;
}

.refund-toolbar > .date-field:nth-child(4) {
  grid-column: span 3;
}

.refund-search {
  align-self: end;
  grid-column: span 3;
  width: 100%;
  max-width: 100%;
  height: 38px;
  border-radius: 9px;
  padding: 0 12px;
  gap: 8px;
  background: #fff;
  border-color: #d6d9e3;
}

.refund-search svg {
  width: 16px;
  height: 16px;
}

.refund-search input {
  font-size: 14px;
  color: #2b3040;
}

@media (max-width: 1320px) {
  .refund-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .refund-toolbar > .date-field:nth-child(1),
  .refund-toolbar > .date-field:nth-child(2),
  .refund-toolbar > .date-field:nth-child(3),
  .refund-toolbar > .date-field:nth-child(4),
  .refund-toolbar > .refund-search {
    grid-column: span 3;
  }

  .refund-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

.refund-table {
  table-layout: fixed;
}

.refund-table thead th {
  font-size: 13px;
  padding: 12px 10px;
  white-space: nowrap;
}

.refund-table tbody td {
  font-size: 12px;
  padding: 12px 10px;
  vertical-align: middle;
}

.refund-table th:nth-child(1),
.refund-table td:nth-child(1) {
  width: 4%;
  text-align: center;
}

.refund-table th:nth-child(2),
.refund-table td:nth-child(2) { width: 10%; }
.refund-table th:nth-child(3),
.refund-table td:nth-child(3) { width: 19%; }
.refund-table th:nth-child(4),
.refund-table td:nth-child(4) { width: 10%; }
.refund-table th:nth-child(5),
.refund-table td:nth-child(5) { width: 16%; }
.refund-table th:nth-child(6),
.refund-table td:nth-child(6) { width: 11%; }
.refund-table th:nth-child(7),
.refund-table td:nth-child(7) { width: 10%; }
.refund-table th:nth-child(8),
.refund-table td:nth-child(8) { width: 8%; }
.refund-table th:nth-child(9),
.refund-table td:nth-child(9) {
  width: 12%;
  text-align: center;
}

.refund-table td:nth-child(2),
.refund-table td:nth-child(6),
.refund-table td:nth-child(7),
.refund-table td:nth-child(8) {
  white-space: nowrap;
}

.refund-type-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2c3347;
}

.refund-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}

.refund-type-dot.purchase {
  background: #2a8f52;
  box-shadow: 0 0 0 4px rgba(42, 143, 82, 0.14);
}

.refund-party-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.refund-party-cell strong {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.refund-party-cell small {
  color: #8c94aa;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.refund-invoice-cell strong,
.refund-invoice-cell small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.refund-table .refund-status-pill {
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.refund-table .table-icon-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

.refund-table .table-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.refund-table .table-icon-btn svg {
  width: 14px;
  height: 14px;
}

.refund-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 0;
  flex-wrap: wrap;
}

.refund-pagination small {
  color: #6b7690;
  font-size: 13px;
  line-height: 1.5;
}

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

.refund-pagination-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  border-radius: 12px;
}

.refund-pagination-actions .ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.refund-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.refund-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  color: #41506d;
  font: 700 13px/1 inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.refund-page-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd6ea;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.08);
}

.refund-page-btn.active {
  border-color: rgba(255, 122, 0, 0.24);
  background: rgba(255, 122, 0, 0.1);
  color: #d66500;
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.refund-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, .95fr);
  gap: 16px;
  align-items: start;
}

.refund-return-dialog {
  width: min(1120px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  padding: 0;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #dfe5f0;
  box-shadow: 0 30px 60px rgba(17, 23, 35, 0.22);
  overflow: hidden;
}

.refund-return-modal {
  z-index: 160;
}

.refund-return-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.refund-return-modal-head h4 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.refund-return-dialog .refund-workspace {
  padding: 20px 24px 24px;
  overflow: auto;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.refund-form-card,
.refund-summary-card {
  border: 1px solid #e5ebf3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(31, 45, 73, 0.06);
}

.refund-form-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.refund-summary-card {
  padding: 18px;
}

.refund-summary-sticky {
  position: sticky;
  top: 4px;
  display: grid;
  gap: 14px;
}

.refund-form-head,
.refund-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.refund-eyebrow {
  margin: 0 0 6px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.refund-form-head h4,
.refund-summary-head h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.refund-validation-badge {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff3e7;
  color: #aa5e1c;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  max-width: 220px;
}

.refund-validation-badge.is-valid {
  background: #ebfaef;
  color: #1f7d48;
}

.refund-validation-badge.is-error {
  background: #fff0f0;
  color: #c94949;
}

.refund-section {
  display: grid;
  gap: 10px;
}

.refund-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.refund-section-title strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.refund-reference-grid,
.refund-refund-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.refund-reference-note,
.refund-photo-meta {
  color: #6f778b;
  font-size: 12px;
}

.refund-items-wrap {
  overflow-x: auto;
}

.refund-items-table th,
.refund-items-table td {
  font-size: 13px;
}

.refund-items-table input[type="number"],
.refund-items-table select {
  width: 100%;
  min-width: 88px;
  height: 38px;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  padding: 0 10px;
  font: 600 13px/1 inherit;
  color: #243047;
  background: #fff;
}

.refund-items-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.refund-item-name {
  display: grid;
  gap: 3px;
}

.refund-item-name small {
  color: #8b93a8;
}

.refund-row-subtotal {
  font-weight: 700;
}

.refund-row-subtotal.invalid,
.refund-inline-error {
  color: #d84f4f;
}

.refund-inline-error {
  min-height: 18px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.refund-form-card textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #d5dbea;
  border-radius: 12px;
  padding: 12px;
  font: 500 14px/1.55 inherit;
  color: #232b3f;
}

.refund-return-dialog .date-field {
  gap: 5px;
}

.refund-return-dialog .date-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #55637f;
}

.refund-return-dialog .date-field input,
.refund-return-dialog .date-field select {
  height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  border-color: #d7dfed;
}

.refund-return-dialog #returnPhotoInput {
  height: auto;
  min-height: 42px;
  padding: 7px 10px;
  font-size: 13px;
}

.refund-return-dialog #returnPhotoInput::file-selector-button {
  margin-right: 10px;
  height: 28px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  background: #f6f8fc;
  color: #42516f;
  font: 600 12px/1 inherit;
  padding: 0 10px;
  cursor: pointer;
}

.refund-form-card input,
.refund-form-card select,
.refund-form-card textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.refund-form-card input:focus,
.refund-form-card select:focus,
.refund-form-card textarea:focus {
  outline: 0;
  border-color: #ffb57a;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.refund-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.draft-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d8dde8;
  background: linear-gradient(180deg, #f7f8fb, #edf0f5);
  color: #4c5a76;
  font: 700 13px/1 inherit;
  cursor: pointer;
}

.refund-action-btn {
  min-width: 144px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.06);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.refund-action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.38) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform .45s ease;
  pointer-events: none;
  z-index: -1;
}

.refund-action-btn .btn-icon-svg {
  width: 16px;
  height: 16px;
}

.refund-action-primary {
  min-width: 168px;
  box-shadow: 0 12px 22px rgba(255, 106, 0, 0.18);
}

.refund-action-cancel {
  min-width: 118px;
}

.refund-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(31, 45, 73, 0.12);
}

.refund-action-btn:hover:not(:disabled)::after {
  transform: translateX(130%);
}

.refund-action-primary:hover:not(:disabled) {
  box-shadow: 0 16px 30px rgba(255, 106, 0, 0.24);
  filter: brightness(0.98);
}

.refund-action-cancel:hover:not(:disabled) {
  border-color: #cfd8ea;
  background: #ffffff;
}

.refund-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.refund-action-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.refund-summary-list {
  display: grid;
  gap: 8px;
}

.refund-summary-list article {
  border: 1px solid #edf0f5;
  border-radius: 14px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refund-summary-list span {
  color: #69748b;
  font-size: 12px;
}

.refund-summary-list strong {
  font-size: 15px;
  text-align: right;
}

.refund-summary-status,
.refund-system-effects {
  border: 1px solid #edf0f5;
  border-radius: 14px;
  padding: 14px;
  background: #fcfdff;
  display: grid;
  gap: 9px;
}

.refund-status-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.refund-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
}

.refund-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.refund-status-pill.draft {
  background: #fff8d8;
  border-color: #f0db90;
  color: #b48700;
}

.refund-status-pill.processing {
  background: #eef5ff;
  border-color: #c8dbfa;
  color: #2767ca;
}

.refund-status-pill.done {
  background: #edf9f0;
  border-color: #c9e9d1;
  color: #1d8a4c;
}

.refund-status-pill.rejected {
  background: #fff1f1;
  border-color: #f5caca;
  color: #d54b4b;
}

.refund-system-effects ul {
  margin: 0;
  padding-left: 18px;
  color: #566176;
  font-size: 13px;
  line-height: 1.5;
}

.purchase-table {
  table-layout: fixed;
  min-width: 920px;
}

.purchase-table th,
.purchase-table td {
  font-size: 14px;
  padding: 14px 12px;
  vertical-align: middle;
}

.purchase-table th:nth-child(1),
.purchase-table td:nth-child(1) { width: 13%; }
.purchase-table th:nth-child(2),
.purchase-table td:nth-child(2) { width: 24%; }
.purchase-table th:nth-child(3),
.purchase-table td:nth-child(3) { width: 20%; }
.purchase-table th:nth-child(4),
.purchase-table td:nth-child(4) { width: 8%; }
.purchase-table th:nth-child(5),
.purchase-table td:nth-child(5) { width: 12%; }
.purchase-table th:nth-child(6),
.purchase-table td:nth-child(6) { width: 10%; }
.purchase-table th:nth-child(7),
.purchase-table td:nth-child(7) { width: 13%; }

.purchase-table td:nth-child(1),
.purchase-table td:nth-child(4),
.purchase-table td:nth-child(5),
.purchase-table td:nth-child(6) {
  white-space: nowrap;
}

.purchase-table thead th {
  background: linear-gradient(180deg, #fff7f0 0%, #fdf0e7 100%);
  color: #5f697f;
  border-bottom: 1px solid #ebe1d8;
}

.purchase-main-row {
  transition: background-color .2s ease;
}

.purchase-main-row:hover {
  background: #fff8f2;
}

.purchase-main-row.is-open {
  background: #fff6ee;
}

.purchase-expand-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d2537;
  font: 700 14px/1.3 inherit;
  cursor: pointer;
}

.purchase-expand-icon {
  font-size: 13px;
  color: #8d97aa;
  transition: transform .24s ease, color .24s ease;
}

.purchase-main-row.is-open .purchase-expand-icon {
  transform: rotate(180deg);
  color: #ff6b0e;
}

.purchase-row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.purchase-row-actions .ghost-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.purchase-detail-row td {
  padding: 0;
  border-top: 0;
}

.purchase-detail-shell {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 16px;
  background: linear-gradient(180deg, #fffcf9 0%, #fff6ee 100%);
  border-top: 1px solid #ffe6d4;
}

.purchase-detail-row.is-open .purchase-detail-shell {
  max-height: 960px;
  padding: 14px 16px 16px;
}

.purchase-detail-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.purchase-detail-head p {
  margin: 0;
  color: #4f5b75;
  font-size: 13px;
}

.purchase-detail-head p strong {
  color: #192237;
  font-size: 18px;
}

.purchase-detail-items-wrap {
  border: 1px solid #f0d9c7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.purchase-detail-items-table {
  width: 100%;
  border-collapse: collapse;
}

.purchase-detail-items-table th,
.purchase-detail-items-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-top: 1px solid #f3efe8;
}

.purchase-detail-items-table thead th {
  background: #fff4ea;
  color: #646f86;
  border-top: 0;
}

.purchase-detail-items-table tbody td:nth-child(1),
.purchase-detail-items-table tbody td:nth-child(3),
.purchase-detail-items-table tbody td:nth-child(4),
.purchase-detail-items-table tbody td:nth-child(5) {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .purchases-premium-summary {
    grid-template-columns: 1fr;
  }

  .purchases-smart-filter-grid {
    grid-template-columns: 1fr;
  }

  .purchases-premium-actions .export-btn {
    min-width: 0;
  }
}

.products-panel {
  display: grid;
  gap: 12px;
}

.transactions-meta {
  margin: 2px 0 0;
  color: #4f5c75;
  font-size: 16px;
  line-height: 1.35;
}

.product-search-row {
  display: grid;
  gap: 7px;
}

.product-master-search {
  width: min(520px, 100%);
  height: 42px;
}

.product-search-hint {
  color: #72809d;
  font-size: 12px;
  font-weight: 600;
}

.product-master-table th:nth-child(1),
.product-master-table td:nth-child(1) {
  width: 48px;
}

.product-master-table th:nth-child(2),
.product-master-table td:nth-child(2) {
  width: 82px;
}

.product-master-table {
  table-layout: fixed;
  min-width: 0;
}

.product-master-table th,
.product-master-table td {
  vertical-align: middle;
  font-size: 11px;
}

.product-master-table thead th {
  font-size: 11px;
  padding: 10px 6px;
}

.product-master-table thead th:nth-child(9) {
  white-space: normal;
  line-height: 1.2;
}

.product-table-wrap .product-master-table thead th {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f8ede5;
  box-shadow: inset 0 -1px 0 #e0e5ef;
}

.product-master-table tbody td {
  padding: 8px 6px;
}

/* Kolom teks: rata kiri dan sejajar dengan judul */
.product-master-table th:nth-child(4),
.product-master-table td:nth-child(4) {
  text-align: left;
}

.product-master-table td:nth-child(2) {
  text-align: left;
}

.product-master-table td:nth-child(3) {
  text-align: center;
  padding-left: 2px;
}

/* Kolom angka: center mengikuti posisi judul */
.product-master-table th:nth-child(5),
.product-master-table th:nth-child(6),
.product-master-table th:nth-child(7),
.product-master-table th:nth-child(8),
.product-master-table th:nth-child(9),
.product-master-table td:nth-child(6),
.product-master-table td:nth-child(7),
.product-master-table td:nth-child(8),
.product-master-table td:nth-child(9),
.product-master-table td:nth-child(5) {
  text-align: center;
}

.product-master-table th:nth-child(1),
.product-master-table td:nth-child(1),
.product-master-table th:nth-child(2),
.product-master-table td:nth-child(2) {
  text-align: center;
}

.product-master-table th:nth-child(10),
.product-master-table td:nth-child(10) {
  text-align: center;
  width: 104px;
}

.product-master-table thead th:nth-child(10) {
  padding-left: 4px;
  padding-right: 8px;
}

.product-master-table tbody td:nth-child(10) {
  padding-left: 4px;
  padding-right: 8px;
}

.product-master-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e0e6f2;
  display: block;
}

.product-master-table td:nth-child(3) strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.22;
}

.sku-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid #d8deeb;
  background: #f7f9fd;
  color: #4f5b76;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  min-width: 86px;
}

.weight-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid #d4e5f3;
  background: #eef6ff;
  color: #3f638e;
  font-size: 10px;
  font-weight: 700;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid #d7e9d7;
  background: #eef9ef;
  color: #2f8c45;
  font-size: 10px;
  font-weight: 700;
}

.product-desc-cell {
  max-width: 160px;
  color: #5f6981;
  font-size: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-panel .panel-head {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.products-panel .product-actions {
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.products-panel .product-action-btn,
.products-panel .export-btn {
  min-height: 40px;
  height: auto;
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 22px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  border: 1px solid var(--product-action-border, rgba(148, 163, 184, 0.28));
  background: var(--product-action-bg, rgb(248, 250, 252));
  color: var(--product-action-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--product-action-shadow, rgba(15, 23, 42, 0.06));
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.products-panel .product-action-btn .action-icon,
.products-panel .export-btn .action-icon {
  width: 1.45em;
  height: 1.45em;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.products-panel .product-action-btn .action-icon svg,
.products-panel .export-btn .action-icon svg {
  width: 1.45em;
  height: 1.45em;
  fill: currentColor;
}

.products-panel .product-action-btn .btn-label,
.products-panel .export-btn .btn-label {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
}

#addProductManualBtn {
  --product-action-bg: rgb(255, 245, 235);
  --product-action-text: rgb(234, 88, 12);
  --product-action-border: rgba(251, 146, 60, 0.34);
  --product-action-shadow: rgba(251, 146, 60, 0.12);
  --product-action-hover-shadow: rgba(251, 146, 60, 0.2);
}

#mapProductLocationBtn {
  --product-action-bg: rgb(238, 246, 255);
  --product-action-text: rgb(37, 99, 235);
  --product-action-border: rgba(59, 130, 246, 0.28);
  --product-action-shadow: rgba(59, 130, 246, 0.12);
  --product-action-hover-shadow: rgba(59, 130, 246, 0.18);
}

#mapProductCategoryBtn {
  --product-action-bg: rgb(237, 251, 243);
  --product-action-text: rgb(22, 163, 74);
  --product-action-border: rgba(74, 222, 128, 0.3);
  --product-action-shadow: rgba(34, 197, 94, 0.12);
  --product-action-hover-shadow: rgba(34, 197, 94, 0.18);
}

#priceRulesBtn {
  --product-action-bg: rgb(238, 242, 255);
  --product-action-text: rgb(79, 70, 229);
  --product-action-border: rgba(99, 102, 241, 0.28);
  --product-action-shadow: rgba(99, 102, 241, 0.11);
  --product-action-hover-shadow: rgba(99, 102, 241, 0.17);
}

#updateProductsBtn {
  --product-action-bg: rgb(245, 240, 255);
  --product-action-text: rgb(124, 58, 237);
  --product-action-border: rgba(167, 139, 250, 0.32);
  --product-action-shadow: rgba(139, 92, 246, 0.12);
  --product-action-hover-shadow: rgba(139, 92, 246, 0.18);
}

#importProductsExcelBtn {
  --product-action-bg: rgb(236, 253, 245);
  --product-action-text: rgb(5, 150, 105);
  --product-action-border: rgba(16, 185, 129, 0.28);
  --product-action-shadow: rgba(16, 185, 129, 0.12);
  --product-action-hover-shadow: rgba(16, 185, 129, 0.18);
}

#exportProductsBtn {
  --product-action-bg: rgb(238, 246, 255);
  --product-action-text: rgb(37, 99, 180);
  --product-action-border: rgba(96, 165, 250, 0.35);
  --product-action-shadow: rgba(59, 130, 246, 0.12);
  --product-action-hover-shadow: rgba(59, 130, 246, 0.18);
}

#deleteSelectedProductsBtn {
  --product-action-bg: rgb(255, 245, 245);
  --product-action-text: rgb(185, 28, 28);
  --product-action-border: rgba(248, 113, 113, 0.34);
  --product-action-shadow: rgba(239, 68, 68, 0.11);
  --product-action-hover-shadow: rgba(239, 68, 68, 0.16);
}

#deleteSelectedProductsBtn:not(:disabled) {
  --product-action-bg: rgb(254, 242, 242);
  --product-action-text: rgb(153, 27, 27);
  --product-action-border: rgba(248, 113, 113, 0.42);
}

#deleteSelectedProductsBtn:disabled {
  opacity: .72;
  filter: grayscale(.2);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.products-panel .product-action-btn:hover,
.products-panel .export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--product-action-hover-shadow, rgba(15, 23, 42, 0.12));
  filter: none;
}

.products-panel .product-action-btn:focus-visible,
.products-panel .export-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

.product-health-summary {
  margin: 6px 0 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 9px;
}

.product-health-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  border: 1px solid #dce4f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  box-shadow: 0 6px 14px rgba(29, 43, 68, 0.07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.product-health-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 142, 66, 0.25), transparent 36%),
    radial-gradient(circle at calc(var(--mx) + 14%) calc(var(--my) + 10%), rgba(92, 130, 214, 0.2), transparent 40%);
  transition: opacity .22s ease;
}

.product-health-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(29, 43, 68, 0.11);
  border-color: #c9d7ee;
}

.product-health-card:hover::before {
  opacity: 1;
}

.product-health-card.active {
  border-color: #b9cbeb;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  box-shadow: 0 10px 18px rgba(37, 73, 132, 0.14);
}

.product-health-card small {
  color: #60708f;
  font-size: 11px;
  font-weight: 700;
}

.product-health-card strong {
  color: #1c2a45;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.product-row-marked {
  background: linear-gradient(90deg, #fff8ef, #fff);
}

.product-table-btn {
  height: 22px;
  min-width: 64px;
  border-radius: 8px;
  border: 1px solid #d8e0ef;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: #405070;
  font: 700 10px/1 inherit;
  padding: 0 8px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.product-table-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}

.product-table-btn svg * {
  pointer-events: none;
}

.product-table-btn.icon-only {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.product-table-btn.edit:hover {
  border-color: #b8cae8;
  box-shadow: 0 8px 14px rgba(52, 80, 126, 0.12);
  transform: translateY(-1px);
}

.product-table-btn.view {
  border-color: #d8e4f7;
  background: #f3f8ff;
  color: #2c5da8;
}

.product-table-btn.view:hover {
  border-color: #bed1ef;
  box-shadow: 0 8px 14px rgba(50, 92, 160, 0.14);
  transform: translateY(-1px);
}

.product-table-btn.delete {
  border-color: #ffd7d7;
  background: #fff5f5;
  color: #d64545;
}

.product-table-btn.delete:hover {
  border-color: #f3b8b8;
  box-shadow: 0 8px 14px rgba(186, 60, 60, 0.12);
  transform: translateY(-1px);
}

.product-table-btn.warn {
  border-color: #ffe0ba;
  background: #fff6ec;
  color: #b85e12;
}

.product-table-btn.warn:hover {
  border-color: #ffc98d;
  box-shadow: 0 8px 14px rgba(182, 98, 16, 0.14);
  transform: translateY(-1px);
}

.product-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-master-table td:last-child {
  text-align: center;
}

.product-master-table .product-row-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, 38px);
  gap: 8px 10px;
  justify-content: center;
}

.product-master-table .product-table-btn.icon-only {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 13px;
}

.category-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-detail-dialog {
  width: min(1040px, calc(100vw - 42px));
  max-height: calc(100vh - 44px);
  border-radius: 20px;
}

.product-detail-body {
  padding: 18px 20px 10px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-detail-image-wrap {
  border-radius: 16px;
  border: 1px solid #d9e3f3;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  box-shadow: 0 16px 32px rgba(22, 35, 58, 0.13);
  overflow: hidden;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.product-detail-headline {
  display: grid;
  gap: 10px;
  align-content: start;
}

.product-detail-sku {
  margin: 0;
  color: #6b7a98;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-headline h4 {
  margin: 0;
  color: #16243d;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.product-detail-desc {
  margin: 0;
  color: #4d5e7d;
  font-size: 17px;
  line-height: 1.45;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-description-card {
  border: 1px solid #dce4f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(27, 38, 61, 0.07);
}

.product-detail-description-card h5 {
  margin: 0;
  color: #2c4063;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-description-card p {
  margin: 0;
  color: #3f5376;
  font-size: 14px;
  line-height: 1.5;
}

.product-detail-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid #d8e0ee;
  background: #f5f8ff;
  color: #425273;
  font-size: 13px;
  font-weight: 700;
}

.product-detail-tag.status.ok {
  border-color: #ccead0;
  background: #eef9f0;
  color: #1f7d3c;
}

.product-detail-tag.status.warn {
  border-color: #ffe5bd;
  background: #fff7eb;
  color: #b86b11;
}

.product-detail-tag.status.danger {
  border-color: #ffd6d6;
  background: #fff1f1;
  color: #bb3737;
}

.product-detail-tag.category {
  border-color: #d9e2f2;
  background: #f4f8ff;
  color: #35527d;
}

.product-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-metric {
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 12px;
  display: grid;
  gap: 7px;
}

.product-detail-metric small {
  color: #60708d;
  font-size: 12px;
  font-weight: 700;
}

.product-detail-metric strong {
  color: #1d2c49;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-card {
  border: 1px solid #dce4f2;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(27, 38, 61, 0.07);
}

.product-detail-card h5 {
  margin: 0;
  color: #294066;
  font-size: 14px;
}

.product-detail-card p {
  margin: 0;
  color: #2f3f5f;
  font-size: 14px;
  line-height: 1.45;
}

#productDetailDoneBtn {
  height: 44px;
  min-width: 160px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
}

.report-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

#viewReport {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

#viewReport::-webkit-scrollbar {
  width: 10px;
}

#viewReport::-webkit-scrollbar-thumb {
  background: #cfd7e8;
  border-radius: 999px;
  border: 2px solid #f7f9ff;
}

.report-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.report-period-controls {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #dde4f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  overflow: hidden;
  white-space: normal;
  width: auto;
  max-width: min(100%, 980px);
  min-width: 0;
}

.report-period-controls > * {
  min-width: 0;
}

.report-period-controls > label {
  font-size: 13px;
  color: #566381;
  font-weight: 700;
}

.report-select,
.report-input {
  height: 38px;
  border: 1px solid #d2dceb;
  border-radius: 10px;
  background: #fff;
  color: #2f3e5d;
  font: 600 13px/1 inherit;
  padding: 0 10px;
  max-width: 100%;
}

.report-select {
  width: 170px;
}

.report-input {
  width: 190px;
}

#reportYearInput {
  width: 120px;
}

#reportApplyBtn {
  height: 44px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

#reportOpenReportBtn,
.warehouse-actions .solid-btn,
.stock-in-head-actions .solid-btn,
.product-categories-head-actions .solid-btn,
.refund-header-actions .ghost-btn,
.refund-header-actions .solid-btn {
  height: 44px;
  border-radius: 10px;
}

.report-range-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.report-range-wrap span {
  color: #617091;
  font-size: 13px;
  font-weight: 700;
}

/* Sembunyikan input tanggal tunggal dan bulan/tahun pada filter report */
#reportDayInput,
#reportMonthInput,
#reportYearInput {
  display: none !important;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.report-kpi-card {
  border: 1px solid #dce4f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.report-kpi-card small {
  font-size: 12px;
  color: #62708d;
  font-weight: 700;
}

.report-kpi-card strong {
  font-size: 26px;
  line-height: 1;
  color: #1c2943;
  letter-spacing: -0.02em;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.report-chart-card {
  border: 1px solid #dbe3f1;
  border-radius: 16px;
  background:
    radial-gradient(110% 80% at 8% -12%, rgba(255, 255, 255, 0.92), transparent 58%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow:
    0 18px 34px rgba(29, 44, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  min-width: 0;
}

.report-chart-card h4 {
  margin: 0;
  font-size: 20px;
  color: #253453;
}

.report-chart-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.report-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#e3e8f4 0deg 360deg);
  border: 1px solid rgba(214, 224, 242, 0.92);
  transform: translateZ(0);
  isolation: isolate;
  --accent: #ff7a1a;
  --accent-2: #3f69ff;
  box-shadow:
    0 16px 28px rgba(23, 37, 64, 0.16),
    0 8px 14px rgba(23, 37, 64, 0.1),
    inset 0 3px 8px rgba(255, 255, 255, 0.55),
    inset 0 -7px 14px rgba(24, 39, 66, 0.14);
}

.report-donut::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  z-index: -1;
  background:
    radial-gradient(circle at 36% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(circle at 68% 78%, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent 60%);
  filter: blur(8px);
  opacity: .82;
  pointer-events: none;
}

.report-donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.75) 36%, rgba(245, 248, 255, 0.9) 100%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -6px 12px rgba(31, 47, 77, 0.11),
    0 0 0 1px #e4e9f3,
    0 10px 22px rgba(23, 37, 64, 0.08);
}

.report-donut > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #243452;
  padding: 0 16px;
  line-height: 1.2;
}

.report-donut.is-updating {
  animation: donutPop .55s cubic-bezier(.2,.7,.2,1);
}

.report-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.report-legend li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #536180;
  min-width: 0;
}

.report-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color) 18%, transparent),
    0 6px 10px color-mix(in srgb, var(--color) 28%, transparent);
}

.report-legend strong {
  color: #253553;
  font-size: 13px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-legend span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes donutPop {
  0% { transform: scale(.94); filter: saturate(.9); }
  70% { transform: scale(1.02); filter: saturate(1.1); }
  100% { transform: scale(1); filter: saturate(1); }
}

@media (max-width: 1180px) {
  .profile-settings-shell {
    grid-template-columns: 1fr;
  }

  .profile-settings-preview {
    order: -1;
  }

  .profile-preview-card {
    position: static;
  }

  .profile-readonly-grid {
    grid-template-columns: 1fr;
  }

  .profile-notification-shell {
    grid-template-columns: 1fr;
  }

  .profile-notification-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .profile-settings-dialog {
    width: min(940px, calc(100vw - 18px));
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .product-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .report-select,
  .report-input {
    width: 100%;
    flex: 1 1 180px;
  }

  #reportYearInput {
    flex-basis: 120px;
  }

  #reportApplyBtn {
    flex: 1 1 140px;
  }
}

@media (max-width: 1365px) and (min-width: 1181px) {
  .profile-settings-dialog {
    width: min(1280px, calc(100vw - 20px));
  }

  .profile-settings-shell {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 16px;
    padding: 16px 18px 18px;
  }

  .profile-settings-tab {
    min-height: 88px;
    padding: 16px;
  }

  .profile-settings-tab strong {
    font-size: 16px;
  }

  .profile-settings-tab small,
  .profile-panel-head p,
  .profile-section-label span {
    font-size: 12px;
  }

  .profile-avatar-upload.premium {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-avatar-preview-wrap {
    width: 136px;
  }

  #profileAvatarPreview {
    width: 136px;
    height: 136px;
  }

  .profile-preview-card {
    padding: 14px;
  }

  #profileCardAvatarPreview {
    width: 54px;
    height: 54px;
  }

  .profile-notification-hero {
    flex-direction: column;
  }

  .profile-notification-section-grid,
  .profile-notification-inline-grid,
  .priority-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-settings-head {
    padding: 22px 18px 18px;
  }

  .profile-settings-title-wrap h3 {
    font-size: 28px;
  }

  .profile-settings-shell {
    padding: 14px;
    gap: 14px;
  }

  .profile-settings-tablist,
  .profile-settings-panel.is-active {
    gap: 12px;
  }

  .profile-avatar-upload.premium,
  .profile-form-grid,
  .profile-choice-row,
  .profile-preview-meta,
  .profile-notification-checkbox-grid,
  .profile-notification-radio-grid {
    grid-template-columns: 1fr;
  }

  .profile-notification-workspace,
  .profile-notification-card,
  .profile-notification-hero {
    padding: 16px;
  }

  .profile-notification-tablist {
    grid-template-columns: 1fr;
  }

  .profile-notification-hero-stats {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .profile-notification-matrix-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-avatar-preview-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #profileAvatarPreview {
    width: 140px;
    height: 140px;
  }

  .profile-toggle-row,
  .profile-check-row,
  .profile-session-item-top,
  .profile-session-item-meta,
  .profile-preview-head,
  .profile-preview-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail-dialog {
    width: calc(100vw - 18px);
    border-radius: 14px;
  }

  .product-detail-body {
    padding: 12px 12px 8px;
    gap: 10px;
  }

  .product-detail-headline h4 {
    font-size: 26px;
  }

  .product-detail-desc {
    font-size: 15px;
  }

  .product-detail-metrics {
    grid-template-columns: 1fr;
  }
}

.settings-panel {
  display: grid;
  gap: 22px;
  padding: 24px 24px 26px;
  border: 1px solid rgba(215, 224, 239, 0.94);
  border-radius: 26px;
  background:
    radial-gradient(140% 130% at 0% 0%, #ffffff 0%, #f8faff 44%, #eef3ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 44px rgba(34, 52, 84, 0.09);
}

.help-center-panel {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(140% 120% at 0% 0%, #ffffff 0%, #f7faff 52%, #f2f6fe 100%);
}

.help-center-head h3 {
  font-size: 34px;
}

.help-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-hero-card {
  border: 1px solid #dbe4f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(35, 49, 78, 0.06);
}

.help-hero-card h4 {
  margin: 0;
  color: #22395f;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.help-hero-card p {
  margin: 0;
  color: #5b6b89;
  font-size: 14px;
  line-height: 1.5;
}

.help-guide-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-guide-card {
  border: 1px solid #dce5f4;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 22px rgba(31, 45, 73, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.help-guide-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8f1;
  box-shadow: 0 16px 26px rgba(31, 45, 73, 0.1);
}

.help-guide-card h4 {
  margin: 0;
  color: #243b61;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.help-guide-card ol {
  margin: 0;
  padding-left: 18px;
  color: #586987;
  display: grid;
  gap: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.settings-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.settings-actions .ghost-btn,
.settings-actions .solid-btn {
  height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.settings-quick-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-quick-actions .ghost-btn,
.settings-quick-actions .solid-btn {
  width: 100%;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(212, 220, 236, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94)),
    radial-gradient(circle at top right, rgba(165, 188, 255, 0.16), transparent 44%);
  color: #21304e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 28px rgba(33, 48, 78, 0.08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.settings-quick-actions .ghost-btn:hover,
.settings-quick-actions .solid-btn:hover {
  border-color: #c9d5ec;
  color: #1c2a47;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 32px rgba(33, 48, 78, 0.11);
}

.settings-quick-actions .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, var(--settings-icon-start, #9dc9ff), var(--settings-icon-end, #5a94ff));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 18px rgba(89, 119, 201, 0.18);
}

.settings-quick-actions .action-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.settings-quick-actions #settingsResetBtn .action-icon,
.settings-quick-actions .solid-btn .action-icon {
  color: #fff;
}

.settings-actions .action-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #d7dfef;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.settings-actions .action-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.settings-actions .btn-label {
  white-space: nowrap;
}

.settings-panel .panel-head {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: -2px 0 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214, 222, 238, 0.92);
}

.settings-title-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.settings-title-wrap h3 {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #1b2742;
}

.settings-title-note {
  margin: 0;
  color: #6a7390;
  font-size: 15px;
  max-width: 760px;
  line-height: 1.55;
}

.settings-backup-btn {
  --settings-icon-start: #99c9ff;
  --settings-icon-end: #579df8;
}

.settings-restore-btn {
  --settings-icon-start: #9fe1ff;
  --settings-icon-end: #56b9ee;
}

#settingsResetBtn {
  --settings-icon-start: #ffc18d;
  --settings-icon-end: #ff8d4a;
}

.settings-backup-hero {
  border: 1px solid #d8e4f6;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(244, 248, 255, 0.95) 58%, rgba(237, 244, 255, 0.95) 100%);
  padding: 12px;
}

.settings-backup-card {
  border: 1px solid #d4def0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 22px rgba(37, 56, 90, 0.08);
}

.settings-backup-card h4 {
  margin: 0;
  font-size: 18px;
  color: #243557;
}

.settings-backup-card p {
  margin: 0;
  color: #566685;
  font-size: 14px;
  line-height: 1.5;
}

.settings-backup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-backup-chips span {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d4deef;
  background: #f8fbff;
  color: #42567d;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

#settingsBackupMeta {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(214, 222, 238, 0.96);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
  color: #66718f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(33, 48, 78, 0.06);
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-section {
  --settings-icon-start: #96c2ff;
  --settings-icon-end: #5d91fb;
  --settings-icon-shadow: rgba(90, 121, 210, 0.18);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: block;
  min-width: 0;
  max-width: none;
  height: 100%;
}

.settings-section > h4.settings-accordion-btn {
  margin: 0;
  width: 100%;
  min-height: 184px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(212, 220, 236, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94)),
    radial-gradient(circle at top right, rgba(165, 188, 255, 0.16), transparent 44%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #23304d;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 28px rgba(33, 48, 78, 0.08);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.settings-section > h4.settings-accordion-btn::before,
.settings-quick-actions .ghost-btn::before,
.settings-quick-actions .solid-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.42), transparent 50%);
  pointer-events: none;
}

.settings-section > h4.settings-accordion-btn:hover {
  border-color: #c9d5ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 32px rgba(33, 48, 78, 0.11);
  transform: translateY(-2px);
}

.settings-section > h4.settings-accordion-btn:focus-visible {
  outline: 3px solid rgba(124, 158, 230, 0.25);
  outline-offset: 3px;
}

.settings-title-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.settings-card-copy,
.settings-title-copy {
  display: grid;
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  align-content: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.settings-card-copy .btn-label,
.settings-title-text {
  display: block;
  color: #1e2944;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.settings-card-copy small,
.settings-title-subtext {
  display: block;
  margin: 0;
  color: #707998;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.settings-title-subtext {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.settings-card-arrow,
.settings-title-arrow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #d4ddee;
  background: linear-gradient(180deg, #ffffff, #f3f6fd);
  color: #68779b;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease;
}

.settings-section:nth-of-type(6n+1) {
  --settings-icon-start: #f6b56c;
  --settings-icon-end: #ff8a3d;
  --settings-icon-shadow: rgba(255, 140, 69, 0.22);
}

.settings-section:nth-of-type(6n+2) {
  --settings-icon-start: #8ee0ba;
  --settings-icon-end: #57bb78;
  --settings-icon-shadow: rgba(79, 180, 112, 0.22);
}

.settings-section:nth-of-type(6n+3) {
  --settings-icon-start: #9aa8ff;
  --settings-icon-end: #657eff;
  --settings-icon-shadow: rgba(101, 126, 255, 0.22);
}

.settings-section:nth-of-type(6n+4) {
  --settings-icon-start: #d5b6ff;
  --settings-icon-end: #b18bff;
  --settings-icon-shadow: rgba(177, 139, 255, 0.22);
}

.settings-section:nth-of-type(6n+5) {
  --settings-icon-start: #8fcfff;
  --settings-icon-end: #4ea6f3;
  --settings-icon-shadow: rgba(78, 166, 243, 0.22);
}

.settings-section:nth-of-type(6n) {
  --settings-icon-start: #8adbd8;
  --settings-icon-end: #4bb7cb;
  --settings-icon-shadow: rgba(75, 183, 203, 0.22);
}

.settings-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, var(--settings-icon-start), var(--settings-icon-end));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 18px var(--settings-icon-shadow);
}

.settings-title-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.settings-section-body {
  display: grid;
  gap: 12px;
}

.settings-section.settings-popup-ready .settings-section-body {
  display: none;
}

.settings-section.settings-popup-open > h4.settings-accordion-btn::after {
  content: none;
}

.settings-section.settings-popup-open > h4.settings-accordion-btn .settings-title-arrow {
  transform: translateX(4px);
  color: #345997;
  border-color: #bfd0ef;
  background: linear-gradient(180deg, #ffffff, #ebf2ff);
}

@media (max-width: 1180px) {
  .settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .settings-panel {
    padding: 18px 16px 20px;
  }

  .settings-title-wrap h3 {
    font-size: 34px;
  }

  .settings-title-note {
    font-size: 14px;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .settings-quick-actions {
    grid-template-columns: 1fr;
  }

  .settings-quick-actions .ghost-btn,
  .settings-quick-actions .solid-btn {
    min-height: 82px;
    padding: 16px 16px;
    border-radius: 20px;
  }

  .settings-section > h4.settings-accordion-btn {
    min-height: 164px;
    padding: 16px 16px;
    border-radius: 20px;
  }

  .settings-card-copy .btn-label,
  .settings-title-text {
    font-size: 16px;
  }

  .settings-card-copy small,
  .settings-title-subtext {
    font-size: 12px;
  }
}

.settings-section-modal {
  z-index: 90;
}

.settings-section-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 28px);
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.16),
    0 6px 18px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-section-modal.store-popup-mode .settings-section-dialog {
  width: min(720px, calc(100vw - 24px));
}

.settings-section-modal.notification-popup-mode .settings-section-dialog {
  width: min(1220px, calc(100vw - 28px));
}

.settings-section-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #eef0f3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.settings-section-modal-title-wrap {
  min-width: 0;
}

.settings-section-modal-title-wrap h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #111827;
}

.settings-section-modal-intro {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
  max-width: 58ch;
}

.settings-section-modal .modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  font-size: 20px;
  color: #64748b;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
}

.settings-section-modal .modal-close-btn:hover {
  border-color: #cbd5e1;
  color: #1f2937;
  background: #fff7ed;
}

.settings-section-modal-content {
  padding: 20px 28px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.settings-section-modal-content .settings-section-body {
  display: grid;
  gap: 18px;
}

.settings-section-modal.notification-popup-mode .settings-section-modal-content {
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8f9fb 100%);
}

.settings-section-modal.notification-popup-mode .settings-section-body {
  gap: 20px;
}

.settings-notification-workspace {
  display: grid;
  gap: 20px;
}

.settings-notification-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #eaeaea;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.settings-notification-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-notification-hero h5 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.15;
}

.settings-notification-hero p {
  margin: 10px 0 0;
  max-width: 64ch;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.settings-notification-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.settings-notification-hero-stats article {
  display: grid;
  gap: 6px;
  min-width: 120px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
}

.settings-notification-hero-stats strong {
  color: #ff7a00;
  font-size: 28px;
  line-height: 1;
}

.settings-notification-hero-stats span {
  color: #667085;
  font-size: 12px;
}

.settings-notification-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.settings-notification-tablist {
  display: grid;
  gap: 10px;
}

.settings-notification-tab {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: #ffffff;
  color: #4b5563;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.settings-notification-tab:hover {
  transform: translateY(-1px);
  border-color: #ffd7b6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.settings-notification-tab.is-active {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
  box-shadow: 0 18px 32px rgba(255, 122, 0, 0.10);
}

.settings-notification-tab-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff1e2 0%, #ffe6ce 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.settings-notification-tab strong,
.settings-notification-tab small {
  display: block;
}

.settings-notification-tab strong {
  font-size: 15px;
  color: #111827;
}

.settings-notification-tab small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.settings-notification-content {
  display: grid;
}

.settings-notification-panel {
  display: none;
  gap: 16px;
  animation: settingsNotificationPanelIn .22s ease;
}

.settings-notification-panel.is-active {
  display: grid;
}

@keyframes settingsNotificationPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.settings-notification-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #eaeaea;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.settings-notification-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-notification-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff0df 0%, #ffe2c2 100%);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.settings-notification-card-head h6 {
  margin: 0;
  color: #111827;
  font-size: 18px;
}

.settings-notification-card-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.settings-notification-toggle-list,
.settings-notification-stack {
  display: grid;
  gap: 12px;
}

.settings-notification-toggle,
.settings-notification-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: #fbfcfd;
}

.settings-notification-line {
  justify-content: flex-start;
}

.settings-notification-line input,
.settings-notification-check-card input,
.settings-notification-radio-card input {
  width: 18px;
  height: 18px;
  accent-color: #ff7a00;
}

.settings-notification-toggle strong,
.settings-notification-line span,
.settings-notification-check-card strong,
.settings-notification-radio-card strong {
  color: #111827;
}

.settings-notification-toggle small,
.settings-notification-check-card small,
.settings-notification-radio-card small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.settings-notification-switch {
  position: relative;
  display: inline-flex;
}

.settings-notification-switch input {
  position: absolute;
  opacity: 0;
}

.settings-notification-switch-ui {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background .18s ease;
}

.settings-notification-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform .18s ease;
}

.settings-notification-switch input:checked + .settings-notification-switch-ui {
  background: #ff7a00;
}

.settings-notification-switch input:checked + .settings-notification-switch-ui::after {
  transform: translateX(22px);
}

.settings-notification-check-grid,
.settings-notification-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-notification-radio-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-notification-check-card,
.settings-notification-radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: #ffffff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.settings-notification-check-card:hover,
.settings-notification-radio-card:hover,
.settings-notification-pill:hover {
  transform: translateY(-1px);
}

.settings-notification-check-card:has(input:checked),
.settings-notification-radio-card:has(input:checked),
.settings-notification-pill:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.28);
  background: #fff5eb;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.10);
}

.settings-notification-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-notification-inline-grid .date-field {
  background: #ffffff;
}

.settings-notification-inline-grid .date-field input,
.settings-notification-inline-grid .date-field select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.settings-notification-mini-card,
.settings-notification-toggle-compact {
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: #ffffff;
}

.settings-notification-mini-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-notification-mini-label {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.settings-notification-matrix {
  display: grid;
  gap: 12px;
}

.settings-notification-matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #edf0f3;
  border-radius: 18px;
  background: #fbfcfd;
}

.settings-notification-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-notification-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.settings-notification-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-notification-pill span {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .settings-section-modal.notification-popup-mode .settings-section-dialog {
    width: min(1100px, calc(100vw - 20px));
  }

  .settings-notification-shell,
  .settings-notification-grid,
  .settings-notification-inline-grid,
  .settings-notification-radio-grid-3 {
    grid-template-columns: 1fr;
  }

  .settings-notification-hero {
    flex-direction: column;
  }

  .settings-notification-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-section-modal.notification-popup-mode .settings-section-modal-content {
    padding: 16px;
  }

  .settings-notification-hero,
  .settings-notification-card {
    padding: 16px;
  }

  .settings-notification-tablist,
  .settings-notification-check-grid,
  .settings-notification-radio-grid,
  .settings-notification-hero-stats {
    grid-template-columns: 1fr;
  }

  .settings-notification-matrix-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.settings-section-modal-content .settings-section-intro {
  margin: 0;
  padding: 15px 16px 15px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.settings-section-modal-content .settings-section-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ff9b3d, #ff7a00);
}

.settings-section-modal-actions {
  padding: 16px 28px 20px;
  border-top: 1px solid #eef0f3;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.settings-section-modal-actions .ghost-btn,
.settings-section-modal-actions .solid-btn {
  height: 46px;
  min-width: 140px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.settings-section-modal-actions .ghost-btn {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.settings-section-modal-actions .ghost-btn:hover {
  background: #f9fafb;
}

.settings-section-modal-actions .solid-btn {
  box-shadow:
    0 12px 24px rgba(255, 122, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.settings-section-modal.user-access-popup-mode .settings-section-dialog {
  width: min(1240px, calc(100vw - 24px));
  border-radius: 28px;
  border-color: #eaeaea;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-head {
  padding: 26px 30px 18px;
  border-bottom-color: #eceff3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-title-wrap h3 {
  font-family: Poppins, Inter, sans-serif;
  color: #1f2a44;
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-content {
  padding: 22px 24px 24px;
  background: #f8f9fb;
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-actions {
  padding: 16px 24px 24px;
  border-top-color: #eceff3;
  background: rgba(248, 249, 251, 0.94);
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-actions .ghost-btn,
.settings-section-modal.user-access-popup-mode .settings-section-modal-actions .solid-btn {
  min-width: 160px;
  border-radius: 14px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-actions .solid-btn.is-loading {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.settings-section-modal.user-access-popup-mode .settings-section-modal-actions .solid-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  animation: user-access-spin .7s linear infinite;
}

@keyframes user-access-spin {
  to {
    transform: rotate(360deg);
  }
}

.settings-section-modal.security-popup-mode .settings-section-dialog {
  width: min(1280px, calc(100vw - 26px));
  border-radius: 28px;
  border-color: #e9edf3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.09), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.settings-section-modal.security-popup-mode .settings-section-modal-head {
  padding: 26px 30px 18px;
  border-bottom-color: #e9edf3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
}

.settings-section-modal.security-popup-mode .settings-section-modal-title-wrap h3 {
  font-family: Poppins, Inter, sans-serif;
  color: #1f2937;
}

.settings-section-modal.security-popup-mode .settings-section-modal-content {
  padding: 22px 24px 24px;
  background: #f8f9fb;
}

.settings-section-modal.security-popup-mode .settings-section-modal-actions {
  padding: 16px 24px 24px;
  border-top-color: #e9edf3;
  background: rgba(248, 249, 251, 0.94);
}

.settings-section-modal.security-popup-mode .settings-section-modal-actions .ghost-btn,
.settings-section-modal.security-popup-mode .settings-section-modal-actions .solid-btn {
  min-width: 160px;
  border-radius: 14px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
}

.settings-section-modal.security-popup-mode .settings-section-modal-actions .solid-btn.is-loading {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.settings-section-modal.security-popup-mode .settings-section-modal-actions .solid-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  animation: security-modal-spin .7s linear infinite;
}

@keyframes security-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.security-settings-workspace {
  display: grid;
  gap: 18px;
}

.security-settings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #e8ecf2;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.10), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.security-settings-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-settings-hero h5 {
  margin: 10px 0 0;
  color: #0f172a;
  font-family: Poppins, Inter, sans-serif;
  font-size: 26px;
  line-height: 1.14;
}

.security-settings-hero p {
  margin: 10px 0 0;
  max-width: 64ch;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.security-settings-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.security-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.security-status-badge.security-status-safe {
  background: #e7f8ef;
  color: #15803d;
}

.security-status-badge.security-status-risk {
  background: #fef2f2;
  color: #b91c1c;
}

.security-settings-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.security-settings-tablist {
  display: grid;
  gap: 10px;
}

.security-settings-tab {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #ffffff;
  color: #475569;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.security-settings-tab:hover {
  transform: translateY(-1px);
  border-color: #ffd9ba;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.security-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #fff4e8 100%);
  box-shadow: 0 18px 30px rgba(255, 122, 0, 0.12);
}

.security-settings-tab strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.security-settings-tab small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.security-settings-content {
  display: grid;
}

.security-settings-panel {
  display: none;
  animation: securitySettingsPanelIn .24s ease;
}

.security-settings-panel.is-active {
  display: block;
}

@keyframes securitySettingsPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.security-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.security-settings-card-span-2 {
  grid-column: span 2;
}

.security-settings-card-head h6 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.security-settings-card-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.security-settings-stack {
  display: grid;
  gap: 12px;
}

.security-settings-field {
  display: grid;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fbfcfd;
  padding: 10px 12px 12px;
}

.security-settings-field > span {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.security-settings-field input,
.security-settings-field select {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: 500 14px/1.4 Poppins, Inter, sans-serif;
  padding: 0 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.security-settings-field input:focus,
.security-settings-field select:focus {
  outline: none;
  border-color: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.13);
}

.security-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fbfcfd;
}

.security-switch-copy strong {
  color: #0f172a;
  font-size: 14px;
}

.security-switch-copy small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.security-switch {
  position: relative;
  display: inline-flex;
}

.security-switch input {
  position: absolute;
  opacity: 0;
}

.security-switch-ui {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background .18s ease;
}

.security-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  transition: transform .18s ease;
}

.security-switch input:checked + .security-switch-ui {
  background: #ff7a00;
}

.security-switch input:checked + .security-switch-ui::after {
  transform: translateX(22px);
}

.security-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.security-check-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.security-check-card input {
  width: 16px;
  height: 16px;
  accent-color: #ff7a00;
}

.security-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.security-log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.security-log-table th,
.security-log-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.security-log-table th {
  color: #475569;
  background: #f8fafc;
  font-weight: 700;
}

.security-log-table td {
  color: #1e293b;
}

.security-action-stack,
.security-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-inline-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d9e0eb;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.security-inline-btn:hover {
  transform: translateY(-1px);
  border-color: #ffcb9a;
  background: #fff7ef;
}

.security-inline-btn.security-inline-btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.security-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .settings-section-modal.security-popup-mode .settings-section-dialog {
    width: calc(100vw - 16px);
  }

  .security-settings-shell,
  .security-settings-grid,
  .security-inline-fields,
  .security-check-grid-3 {
    grid-template-columns: 1fr;
  }

  .security-settings-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-settings-card-span-2 {
    grid-column: auto;
  }

  .security-settings-hero {
    flex-direction: column;
  }

  .security-settings-hero-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .settings-section-modal.security-popup-mode .settings-section-modal-head,
  .settings-section-modal.security-popup-mode .settings-section-modal-content,
  .settings-section-modal.security-popup-mode .settings-section-modal-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .security-settings-tablist,
  .security-check-grid {
    grid-template-columns: 1fr;
  }

  .security-settings-card,
  .security-settings-hero {
    padding: 14px;
    border-radius: 16px;
  }

  .security-switch-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.settings-section-report-finance {
  --settings-icon-start: #ffbb73;
  --settings-icon-end: #ff7a00;
  --settings-icon-shadow: rgba(255, 122, 0, 0.22);
}

.report-finance-settings-shell {
  display: grid;
  gap: 20px;
}

.report-finance-settings-hero {
  border: 1px solid #eceff3;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fff9f4 100%);
  display: grid;
  gap: 18px;
}

.report-finance-settings-hero-copy {
  display: grid;
  gap: 10px;
}

.report-finance-premium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #d96a00;
  font: 700 11px/1 Poppins, Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.report-finance-settings-hero-copy h5,
.report-finance-panel-head h5,
.report-finance-card-head h6 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  color: #1f2a44;
}

.report-finance-settings-hero-copy h5 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.report-finance-settings-hero-copy p,
.report-finance-panel-head p,
.report-finance-card-head p {
  margin: 0;
  color: #6f778b;
  line-height: 1.6;
}

.report-finance-settings-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-finance-settings-metric-card {
  border: 1px solid #eceff3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 24px rgba(31, 42, 68, 0.05);
}

.report-finance-settings-metric-card small {
  color: #8a93a8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.report-finance-settings-metric-card strong {
  color: #1f2a44;
  font: 700 19px/1.2 Poppins, Inter, sans-serif;
}

.report-finance-settings-metric-card span {
  color: #6f778b;
  font-size: 13px;
  line-height: 1.5;
}

.report-finance-settings-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.report-finance-settings-tabs {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 0;
}

.report-finance-settings-tab {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e7ebf0;
  background: #ffffff;
  color: #51607f;
  text-align: left;
  font: 600 14px/1.45 Poppins, Inter, sans-serif;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.report-finance-settings-tab:hover {
  border-color: #ffd3ad;
  color: #ef7600;
  transform: translateX(2px);
}

.report-finance-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.22);
  background: linear-gradient(135deg, #ff7a00, #ff9a3d);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(255, 122, 0, 0.22);
}

.report-finance-settings-panels {
  display: grid;
}

.report-finance-settings-panel {
  display: none;
  gap: 18px;
}

.report-finance-settings-panel.is-active {
  display: grid;
}

.report-finance-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-finance-panel-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.report-finance-panel-head h5 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.report-finance-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-finance-setting-card {
  border: 1px solid #eaeaea;
  border-radius: 22px;
  background: #ffffff;
  padding: 20px;
  display: grid;
  gap: 18px;
  box-shadow: 0 16px 28px rgba(31, 42, 68, 0.05);
}

.report-finance-card-head {
  display: grid;
  gap: 6px;
}

.report-finance-card-head h6 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.report-finance-field-grid {
  display: grid;
  gap: 14px;
}

.report-finance-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-finance-check-list {
  display: grid;
  gap: 10px;
}

.report-finance-check-list-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-finance-check-list-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-finance-check-item {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #30415f;
}

.report-finance-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff7a00;
}

.report-finance-switch-row {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-finance-switch-copy {
  display: grid;
  gap: 4px;
}

.report-finance-switch-copy strong {
  color: #1f2a44;
  font: 600 14px/1.4 Poppins, Inter, sans-serif;
}

.report-finance-switch-copy small {
  color: #7a8399;
  font-size: 12px;
  line-height: 1.5;
}

.report-finance-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}

.report-finance-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.report-finance-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d5dae5;
  transition: background .2s ease;
}

.report-finance-switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(31, 42, 68, 0.16);
  transition: transform .2s ease;
}

.report-finance-switch input:checked + .report-finance-switch-slider {
  background: linear-gradient(135deg, #ff7a00, #ff9a3d);
}

.report-finance-switch input:checked + .report-finance-switch-slider::after {
  transform: translateX(22px);
}

.report-finance-field-grid .date-field,
.report-finance-role-grid .date-field {
  margin: 0;
}

.report-finance-field-grid .date-field input,
.report-finance-field-grid .date-field select,
.report-finance-role-grid .date-field select {
  background: #ffffff;
}

.report-finance-field-grid .date-field.is-disabled,
.report-finance-switch-row.is-disabled {
  opacity: .58;
}

.settings-section-modal.report-finance-popup-mode .settings-section-dialog {
  width: min(1320px, calc(100vw - 28px));
  border-radius: 30px;
  border-color: #eaeaea;
  background: #f8f9fb;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-head {
  padding: 28px 30px 20px;
  border-bottom-color: #eceff3;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-title-wrap h3 {
  font-family: Poppins, Inter, sans-serif;
  color: #1f2a44;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-content {
  padding: 24px 24px 18px;
  background: #f8f9fb;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-actions {
  padding: 16px 24px 24px;
  border-top-color: #eceff3;
  background: rgba(248, 249, 251, 0.96);
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-reset {
  order: 1;
}

.settings-section-modal.report-finance-popup-mode #settingsSectionModalCancelBtn {
  order: 2;
}

.settings-section-modal.report-finance-popup-mode #settingsSectionModalDoneBtn {
  order: 3;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-actions .ghost-btn,
.settings-section-modal.report-finance-popup-mode .settings-section-modal-actions .solid-btn {
  min-width: 160px;
  border-radius: 14px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-actions .solid-btn.is-loading {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.settings-section-modal.report-finance-popup-mode .settings-section-modal-actions .solid-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  vertical-align: middle;
  animation: user-access-spin .7s linear infinite;
}

@media (max-width: 1100px) {
  .report-finance-settings-workspace {
    grid-template-columns: 1fr;
  }

  .report-finance-settings-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static;
  }

  .report-finance-card-grid,
  .report-finance-role-grid,
  .report-finance-check-list-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .report-finance-settings-hero {
    padding: 18px;
  }

  .report-finance-settings-hero-copy h5 {
    font-size: 24px;
  }

  .report-finance-settings-hero-metrics,
  .report-finance-settings-tabs,
  .report-finance-card-grid,
  .report-finance-check-list-2,
  .report-finance-check-list-3,
  .report-finance-role-grid {
    grid-template-columns: 1fr;
  }

  .report-finance-setting-card {
    padding: 16px;
    border-radius: 18px;
  }

  .report-finance-panel-head h5 {
    font-size: 22px;
  }

  .report-finance-switch-row {
    align-items: flex-start;
  }
}

.user-access-shell {
  display: grid;
  gap: 18px;
  font-family: Poppins, Inter, sans-serif;
}

.user-access-tabbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.user-access-tab {
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
  text-align: left;
  display: grid;
  gap: 6px;
  color: #4b5568;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.user-access-tab strong {
  font-size: 14px;
  line-height: 1.35;
  color: #1f2a44;
}

.user-access-tab span {
  font-size: 12px;
  line-height: 1.45;
}

.user-access-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.24);
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.1);
}

.user-access-tab.is-active {
  border-color: rgba(255, 122, 0, 0.38);
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
  color: #ff7a00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 30px rgba(255, 122, 0, 0.12);
}

.user-access-tab.is-active strong {
  color: #b85700;
}

.user-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.user-access-main,
.user-access-preview-sticky {
  display: grid;
  gap: 16px;
}

.user-access-preview-sticky {
  position: sticky;
  top: 0;
}

.user-access-main {
  width: 100%;
}

.user-access-panel {
  display: none;
  gap: 16px;
}

.user-access-panel.is-active {
  display: grid;
}

.user-access-card,
.user-access-preview-card {
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.user-access-card-head,
.user-access-preview-head,
.user-access-preview-window-top,
.user-access-preview-window-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-access-card-head small,
.user-access-preview-head small,
.user-access-preview-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b2;
}

.user-access-card-head h5 {
  margin: 0;
  font-size: 22px;
  color: #1f2a44;
}

.user-access-card-head p,
.user-access-preview-head p,
.user-access-preview-card p,
.user-access-role-card p,
.user-access-branch-card p {
  margin: 8px 0 0;
  color: #697386;
  font-size: 14px;
  line-height: 1.6;
}

.user-access-add-btn {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8c25 0%, #ff7a00 100%);
  color: #ffffff;
  font: 600 14px/1 Poppins, Inter, sans-serif;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.user-access-table-wrap {
  margin-top: 16px;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: auto;
  background: #ffffff;
}

.user-access-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.user-access-table thead th {
  padding: 14px 16px;
  background: #f8f9fb;
  color: #7a8497;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid #edf0f4;
}

.user-access-table tbody td {
  padding: 16px;
  color: #435068;
  font-size: 14px;
  border-bottom: 1px solid #f1f3f6;
  vertical-align: middle;
}

.user-access-table tbody tr:last-child td {
  border-bottom: 0;
}

.user-access-table tbody tr {
  transition: background-color .2s ease;
}

.user-access-table tbody tr:hover {
  background: #fff8f2;
}

.user-access-table.compact {
  min-width: 620px;
}

.user-access-usercell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-access-usercell strong {
  display: block;
  color: #1f2a44;
}

.user-access-usercell small {
  color: #8b95a7;
}

.user-access-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #87d8e8, #5ebfd6);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(94, 191, 214, 0.24);
}

.user-access-avatar.amber {
  background: linear-gradient(135deg, #ffc773, #ff9f43);
  box-shadow: 0 10px 22px rgba(255, 159, 67, 0.24);
}

.user-access-avatar.red {
  background: linear-gradient(135deg, #ff9d9d, #ff6b6b);
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.22);
}

.user-access-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.user-access-status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.user-access-status-badge.active {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.user-access-status-badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.user-access-status-badge.inactive {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.user-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-access-actions button,
.user-access-activity-tags span,
.user-access-preview-chips span {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #eceff3;
  border-radius: 10px;
  background: #ffffff;
  color: #546277;
  font: 500 13px/1 Poppins, Inter, sans-serif;
}

.user-access-actions button:hover {
  border-color: rgba(255, 122, 0, 0.28);
  color: #ff7a00;
}

.user-access-form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.user-access-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: #ffffff;
}

.user-access-field-span-2 {
  grid-column: span 2;
}

.user-access-field span {
  color: #5d677a;
  font-size: 13px;
  font-weight: 600;
}

.user-access-field input,
.user-access-field select,
.user-access-field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fdfdfd;
  color: #1f2a44;
  font: 500 14px/1.45 Poppins, Inter, sans-serif;
  padding: 12px 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.user-access-field textarea {
  min-height: 110px;
  resize: vertical;
}

.user-access-field input:focus,
.user-access-field select:focus,
.user-access-field textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.user-access-chip-group,
.user-access-status-row,
.user-access-role-list,
.user-access-branch-grid,
.user-access-activity-tags,
.user-access-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-access-chip-group label,
.user-access-matrix-grid label {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #f8f9fb;
  color: #445166;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.user-access-role-card,
.user-access-branch-card {
  flex: 1 1 180px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #eceff3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.user-access-role-card strong,
.user-access-branch-card strong,
.user-access-preview-card strong {
  color: #1f2a44;
}

.user-access-permission-matrix {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #fbfcfd;
}

.user-access-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.user-access-matrix-head strong {
  color: #1f2a44;
}

.user-access-matrix-head span {
  color: #8a94a7;
  font-size: 12px;
}

.user-access-matrix-grid,
.user-access-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-access-toggle-card {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-access-toggle-card strong {
  display: block;
  color: #1f2a44;
  font-size: 15px;
}

.user-access-toggle-card small {
  display: block;
  margin-top: 6px;
  color: #818ba0;
  font-size: 13px;
  line-height: 1.5;
}

.user-access-switch {
  position: relative;
  flex: 0 0 auto;
}

.user-access-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.user-access-switch span {
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: #d9dee7;
  display: block;
  position: relative;
  transition: background-color .2s ease;
}

.user-access-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transition: transform .2s ease;
}

.user-access-switch input:checked + span {
  background: linear-gradient(135deg, #ff9d44, #ff7a00);
}

.user-access-switch input:checked + span::after {
  transform: translateX(22px);
}

.user-access-preview-head strong {
  display: block;
  font-size: 24px;
  color: #1f2a44;
}

.user-access-preview-live {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #ff7a00;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.user-access-preview-window {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #eceff3;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}

.user-access-preview-window-top strong {
  font-size: 16px;
}

.user-access-preview-window-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.user-access-preview-window-list div {
  padding: 10px 0;
  border-top: 1px solid #eef1f4;
  color: #617086;
  font-size: 13px;
}

.user-access-preview-window-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.user-access-preview-window-list strong {
  font-size: 13px;
}

.user-access-add-modal {
  z-index: 98;
}

.user-access-add-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 30px);
  border-radius: 28px;
  border: 1px solid #ececec;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  box-shadow:
    0 36px 80px rgba(15, 23, 42, 0.18),
    0 12px 32px rgba(255, 122, 0, 0.08);
  overflow: hidden;
}

.user-access-add-head {
  padding: 28px 30px 20px;
  border-bottom: 1px solid #eef1f4;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.user-access-add-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c65d00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-access-add-title-wrap h3 {
  margin: 14px 0 0;
  color: #1f2a44;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.user-access-add-title-wrap p {
  margin: 12px 0 0;
  max-width: 60ch;
  color: #697386;
  font-size: 15px;
  line-height: 1.65;
}

.user-access-add-body {
  padding: 24px 30px 26px;
  overflow-y: auto;
  background: #f8f9fb;
}

.user-access-add-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #efe4d8;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.11), transparent 28%),
    linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
  box-shadow: 0 14px 32px rgba(255, 122, 0, 0.08);
}

.user-access-add-hero-copy strong {
  display: block;
  color: #1f2a44;
  font-size: 20px;
}

.user-access-add-hero-copy p {
  margin: 8px 0 0;
  color: #6d778a;
  font-size: 14px;
  line-height: 1.6;
}

.user-access-add-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.user-access-add-hero-badges span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #f0d8c3;
  background: #ffffff;
  color: #9a5a1a;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.user-access-form-grid-modal {
  margin-top: 18px;
}

.user-access-add-sidecard {
  padding: 16px;
  border: 1px solid #eceff3;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.user-access-add-sidecard small {
  display: block;
  margin-bottom: 8px;
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-access-add-sidecard strong {
  display: block;
  color: #1f2a44;
  font-size: 18px;
  line-height: 1.35;
}

.user-access-add-sidecard p {
  margin: 8px 0 0;
  color: #6f7a8e;
  font-size: 13px;
  line-height: 1.6;
}

.user-access-chip-group-modal {
  margin-top: 4px;
}

.user-access-add-actions {
  padding: 16px 30px 24px;
  border-top: 1px solid #eef1f4;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.user-access-add-actions .ghost-btn,
.user-access-add-actions .solid-btn {
  min-width: 150px;
  height: 48px;
  border-radius: 14px;
  font-family: Poppins, Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.settings-section-modal-reset[hidden] {
  display: none;
}

.settings-section-intro {
  margin: -4px 0 0;
  color: #5f6f8d;
  font-size: 13px;
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-grid .date-field {
  gap: 8px;
  border: 1px solid #d8e2f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(26, 50, 90, 0.04);
}

.settings-col-span-2 {
  grid-column: span 2;
}

.settings-grid .date-field > span {
  font-size: 13px;
  color: #5e7091;
  font-weight: 600;
}

.settings-section-modal-content .setting-check {
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #d8e2f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334a71;
  font-size: 14px;
  font-weight: 600;
}

.settings-section-modal-content .setting-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2f70d8;
}

.settings-grid input,
.settings-grid select,
.settings-section textarea {
  width: 100%;
  border: 1px solid #d1ddee;
  border-radius: 10px;
  background: #ffffff;
  color: #2b3e60;
  font: 500 15px/1.35 inherit;
  padding: 11px 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.settings-grid input:focus,
.settings-grid select:focus,
.settings-section textarea:focus {
  outline: none;
  border-color: #9fb7de;
  box-shadow: 0 0 0 4px rgba(47, 112, 216, 0.12);
  background: #fff;
}

.settings-section textarea {
  resize: vertical;
  min-height: 102px;
}

.settings-grid input[type="file"] {
  padding: 8px;
  min-height: 46px;
}

.settings-grid input[type="file"]::file-selector-button {
  border: 1px solid #ccd7eb;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #eff5ff);
  color: #3f5988;
  font: 600 13px/1 inherit;
  height: 30px;
  padding: 0 12px;
  margin-right: 10px;
  cursor: pointer;
}

.settings-store-shell {
  display: grid;
  gap: 16px;
}

.settings-store-draft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.settings-store-draft-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff7a00;
  margin-top: 6px;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.12);
}

.settings-store-draft-copy strong {
  display: block;
  margin: 0;
  font-size: 14px;
  color: #111827;
}

.settings-store-draft-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.settings-store-draft-copy p[data-tone="warning"] {
  color: #b45309;
}

.settings-store-draft-copy p[data-tone="danger"] {
  color: #b91c1c;
}

.settings-store-draft-copy p[data-tone="success"] {
  color: #047857;
}

.settings-store-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  padding: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.settings-store-card + .settings-store-card {
  position: relative;
}

.settings-store-card + .settings-store-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: #eef0f3;
}

.settings-store-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-store-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff2e4 0%, #ffe7d1 100%);
  color: #ff7a00;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.settings-store-card-head h5 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #111827;
}

.settings-store-card-head p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.settings-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-store-grid .date-field,
.settings-store-choice-group {
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.settings-store-grid .date-field > span,
.settings-store-choice-group legend {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

.settings-store-grid input,
.settings-store-grid select,
.settings-store-grid textarea,
.settings-store-choice-group {
  font-family: inherit;
}

.settings-store-grid input,
.settings-store-grid select,
.settings-store-grid textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font: 500 15px/1.4 inherit;
  padding: 12px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.settings-store-grid input:focus,
.settings-store-grid select:focus,
.settings-store-grid textarea:focus {
  outline: none;
  border-color: #ffb26f;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.settings-store-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.settings-store-grid input[type="color"] {
  min-height: 48px;
  padding: 6px;
  cursor: pointer;
}

.settings-store-grid input[type="file"] {
  padding: 8px;
  min-height: 46px;
}

.settings-store-grid input[type="file"]::file-selector-button {
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  font: 600 13px/1 inherit;
  height: 32px;
  padding: 0 12px;
  margin-right: 10px;
  cursor: pointer;
}

.settings-store-grid input.input-invalid,
.settings-store-grid textarea.input-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  background: #fffafb;
}

.settings-store-upload-stack {
  display: grid;
  gap: 12px;
}

.settings-store-upload-field small {
  font-size: 12px;
  color: #9ca3af;
}

.settings-store-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #d8dee6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.settings-store-preview-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.settings-store-preview-frame {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.06), rgba(17, 24, 39, 0.02)),
    #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 84px;
}

.settings-store-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-store-preview-frame span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.settings-store-preview-card-mini .settings-store-preview-frame {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-basis: 56px;
}

.settings-store-choice-group {
  margin: 0;
  min-width: 0;
}

.settings-store-choice-group legend {
  padding: 0;
  margin-bottom: 10px;
}

.settings-store-chip-list,
.settings-store-radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-store-chip,
.settings-store-radio {
  position: relative;
}

.settings-store-chip input,
.settings-store-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-store-chip,
.settings-store-radio span {
  border-radius: 999px;
}

.settings-store-chip,
.settings-store-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-store-chip:has(input:checked),
.settings-store-radio:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.26);
  background: #fff3e6;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.14);
}

.settings-section-modal.receipt-popup-mode .settings-section-dialog {
  width: min(1180px, calc(100vw - 28px));
}

.receipt-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.receipt-settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.receipt-settings-summary {
  padding: 18px 20px;
  border: 1px solid #f2dfcf;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ef 100%);
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.08);
}

.receipt-settings-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-settings-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.16);
}

.receipt-settings-summary p {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.receipt-settings-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.receipt-settings-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.receipt-settings-tab:hover {
  border-color: #ffcfaa;
  color: #c2410c;
  transform: translateY(-1px);
}

.receipt-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #fff4e8 0%, #ffedd9 100%);
  color: #c2410c;
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.12);
}

.receipt-settings-panels {
  display: grid;
}

.receipt-settings-panel {
  display: grid;
  gap: 16px;
  animation: receiptSettingsPanelIn .24s ease;
}

@keyframes receiptSettingsPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receipt-settings-card {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.06);
}

.receipt-settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.receipt-settings-card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff0df 0%, #ffe0c0 100%);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.receipt-settings-card-head h5 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.receipt-settings-card-head p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.receipt-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.receipt-settings-grid .date-field,
.receipt-settings-grid .settings-store-choice-group {
  border-radius: 16px;
}

.receipt-settings-upload-field small {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.receipt-settings-logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #e6d8c9;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
}

.receipt-settings-logo-preview strong {
  display: block;
  margin: 0 0 4px;
  color: #111827;
  font-size: 14px;
}

.receipt-settings-logo-preview p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
}

.receipt-settings-logo-preview-frame {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 18px;
  border: 1px solid #ece2d8;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(17, 24, 39, 0.03)),
    #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.receipt-settings-logo-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.receipt-settings-logo-preview-frame span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.receipt-settings-logo-preview-frame-small {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 14px;
}

.receipt-settings-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.receipt-settings-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fbfcfd;
}

.receipt-settings-inline-actions p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.receipt-settings-preview-column {
  min-width: 0;
}

.receipt-settings-preview-sticky {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e8ecf2;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 24px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.receipt-settings-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.receipt-settings-preview-head small {
  display: block;
  margin-bottom: 4px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-settings-preview-head strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.receipt-settings-preview-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.receipt-settings-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.receipt-settings-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.receipt-settings-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.receipt-settings-preview-stage {
  min-height: 540px;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01)),
    #eef2f7;
  overflow: hidden;
}

.receipt-settings-preview-canvas {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}

.receipt-paper-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.receipt-paper-shell.theme-dark {
  color: #e5e7eb;
}

.receipt-paper-shell.theme-dark .receipt-paper-sheet {
  background: #111827;
  color: #e5e7eb;
  box-shadow:
    0 24px 44px rgba(15, 23, 42, 0.26),
    0 10px 18px rgba(15, 23, 42, 0.16);
}

.receipt-paper-shell.theme-dark .receipt-paper-sheet::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.receipt-paper-shell.theme-dark .receipt-paper-meta,
.receipt-paper-shell.theme-dark .receipt-paper-note,
.receipt-paper-shell.theme-dark .receipt-paper-contact,
.receipt-paper-shell.theme-dark .receipt-paper-footer {
  color: #cbd5e1;
}

.receipt-paper-shell.theme-dark .receipt-paper-line,
.receipt-paper-shell.theme-dark .receipt-paper-list tr,
.receipt-paper-shell.theme-dark .receipt-paper-summary-row,
.receipt-paper-shell.theme-dark .receipt-paper-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.receipt-paper-shell.theme-dark .receipt-paper-preview-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.receipt-paper-shell.paper-58 .receipt-paper-sheet {
  width: 248px;
}

.receipt-paper-shell.paper-80 .receipt-paper-sheet {
  width: 318px;
}

.receipt-paper-shell.font-small .receipt-paper-sheet {
  font-size: 10px;
}

.receipt-paper-shell.font-normal .receipt-paper-sheet {
  font-size: 11px;
}

.receipt-paper-shell.font-large .receipt-paper-sheet {
  font-size: 12px;
}

.receipt-paper-shell.spacing-tight .receipt-paper-sheet {
  --receipt-line-gap: 2px;
  --receipt-row-padding: 5px;
}

.receipt-paper-shell.spacing-normal .receipt-paper-sheet {
  --receipt-line-gap: 4px;
  --receipt-row-padding: 7px;
}

.receipt-paper-sheet {
  --receipt-line-gap: 4px;
  --receipt-row-padding: 7px;
  position: relative;
  border-radius: 24px;
  padding: 20px 18px 16px;
  background: #ffffff;
  color: #111827;
  box-shadow:
    0 28px 52px rgba(15, 23, 42, 0.12),
    0 10px 18px rgba(15, 23, 42, 0.08);
}

.receipt-paper-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.05), transparent 22%);
}

.receipt-paper-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.receipt-paper-topbar span,
.receipt-paper-preview-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.receipt-paper-preview-action.is-disabled {
  opacity: .45;
}

.receipt-paper-logo {
  display: flex;
  margin-bottom: 10px;
}

.receipt-paper-logo.align-left {
  justify-content: flex-start;
}

.receipt-paper-logo.align-center {
  justify-content: center;
}

.receipt-paper-logo img {
  object-fit: contain;
  border-radius: 12px;
}

.receipt-paper-logo.size-small img {
  width: 42px;
  height: 42px;
}

.receipt-paper-logo.size-medium img {
  width: 60px;
  height: 60px;
}

.receipt-paper-logo.size-large img {
  width: 78px;
  height: 78px;
}

.receipt-paper-store {
  text-align: center;
}

.receipt-paper-store.align-left {
  text-align: left;
}

.receipt-paper-store.align-center {
  text-align: center;
}

.receipt-paper-store h4 {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.receipt-paper-store h4.is-bold,
.receipt-paper-summary-row.total strong:last-child {
  font-weight: 800;
}

.receipt-paper-contact,
.receipt-paper-meta,
.receipt-paper-note,
.receipt-paper-footer {
  color: #6b7280;
  line-height: 1.55;
}

.receipt-paper-contact p,
.receipt-paper-meta p,
.receipt-paper-note p,
.receipt-paper-footer p {
  margin: var(--receipt-line-gap) 0 0;
}

.receipt-paper-line {
  margin: 12px 0;
  border-top: 1px dashed #d1d5db;
}

.receipt-paper-list {
  width: 100%;
  border-collapse: collapse;
}

.receipt-paper-list td {
  padding: var(--receipt-row-padding) 0;
  vertical-align: top;
  border-bottom: 1px dashed #e5e7eb;
}

.receipt-paper-list td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}

.receipt-paper-item strong {
  display: block;
  font-size: 1em;
  line-height: 1.35;
}

.receipt-paper-item small {
  display: block;
  margin-top: 2px;
  color: #9ca3af;
  font-size: .92em;
}

.receipt-paper-summary {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.receipt-paper-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: #374151;
}

.receipt-paper-summary-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #d1d5db;
  font-size: 1.08em;
}

.receipt-paper-summary-row.total.is-bold {
  font-weight: 800;
}

.receipt-paper-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d1d5db;
  text-align: center;
  font-size: .96em;
}

.settings-section-modal.payment-popup-mode .settings-section-dialog {
  width: min(1280px, calc(100vw - 28px));
}

.payment-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.payment-settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.payment-settings-summary {
  padding: 18px 20px;
  border: 1px solid #f2dfcf;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ef 100%);
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.08);
}

.payment-settings-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-settings-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.16);
}

.payment-settings-summary p {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.payment-settings-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-settings-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.payment-settings-tab:hover {
  border-color: #ffcfaa;
  color: #c2410c;
  transform: translateY(-1px);
}

.payment-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #fff4e8 0%, #ffedd9 100%);
  color: #c2410c;
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.12);
}

.payment-settings-panels {
  display: grid;
}

.payment-settings-panel {
  display: grid;
  gap: 16px;
  animation: receiptSettingsPanelIn .24s ease;
}

.payment-settings-card,
.payment-gateway-card,
.payment-fee-card,
.payment-rounding-card {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.06);
}

.payment-settings-card-head,
.payment-gateway-head,
.payment-settings-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-settings-card-head {
  margin-bottom: 16px;
}

.payment-settings-card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff0df 0%, #ffe0c0 100%);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.12);
}

.payment-settings-card-head h5,
.payment-settings-subhead strong,
.payment-gateway-head strong {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.payment-settings-card-head p,
.payment-settings-subhead p,
.payment-gateway-head p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.payment-settings-grid,
.payment-integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-method-studio {
  display: grid;
  gap: 14px;
}

.payment-method-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #eadfd4;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.payment-method-item:hover {
  transform: translateY(-2px);
  border-color: #ffc791;
  box-shadow: 0 18px 30px rgba(255, 122, 0, 0.08);
}

.payment-method-item.is-dragging {
  opacity: .62;
}

.payment-method-handle {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 18px;
  cursor: grab;
  user-select: none;
}

.payment-method-card {
  display: grid;
  gap: 14px;
}

.payment-method-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.payment-method-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-method-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff4e8 0%, #ffe8d2 100%);
  color: #ff7a00;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.payment-method-title-group strong {
  display: block;
  font-size: 16px;
  color: #111827;
}

.payment-method-title-group p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.payment-method-fields,
.payment-fee-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-fields-single {
  grid-template-columns: 1fr;
}

.payment-wallet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-option-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.payment-option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option-chip:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.26);
  background: #fff3e6;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.14);
}

.payment-toggle {
  position: relative;
  display: inline-flex;
}

.payment-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-toggle-ui {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.payment-toggle-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.16);
  transition: transform .2s ease;
}

.payment-toggle input:checked + .payment-toggle-ui {
  background: linear-gradient(135deg, #ff9a3d, #ff7a00);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 18px rgba(255, 122, 0, 0.2);
}

.payment-toggle input:checked + .payment-toggle-ui::after {
  transform: translateX(24px);
}

.payment-fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-fee-card strong {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 15px;
}

.payment-rounding-card {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}

.payment-rounding-controls {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.payment-gateway-card {
  display: grid;
  gap: 16px;
}

.payment-connection-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.payment-connection-badge.is-connected {
  background: #ecfdf5;
  color: #047857;
}

.payment-test-btn {
  justify-self: start;
  min-width: 140px;
}

.payment-settings-preview-column {
  min-width: 0;
}

.payment-settings-preview-sticky {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e8ecf2;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 24px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.payment-settings-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.payment-settings-preview-head small {
  display: block;
  margin-bottom: 4px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-settings-preview-head strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.payment-settings-preview-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.payment-settings-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.payment-settings-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-settings-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.payment-settings-preview-stage {
  min-height: 600px;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01)),
    #eef2f7;
}

.payment-cashier-preview {
  min-height: 100%;
}

.payment-cashier-screen {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.payment-cashier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-cashier-topbar strong {
  color: #111827;
  font-size: 18px;
}

.payment-cashier-topbar span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff5eb;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.payment-cashier-methods {
  display: grid;
  gap: 10px;
}

.payment-preview-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.payment-preview-method-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-preview-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff2e4 0%, #ffe7d1 100%);
  color: #ff7a00;
  font-size: 18px;
}

.payment-preview-method strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.payment-preview-method p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.payment-preview-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.payment-cashier-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payment-preview-stat {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.payment-preview-stat small {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-preview-stat strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 18px;
}

.payment-preview-stat p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.settings-section-modal.product-popup-mode .settings-section-dialog {
  width: min(1320px, calc(100vw - 28px));
}

.settings-section-modal.stock-popup-mode .settings-section-dialog {
  width: min(1360px, calc(100vw - 28px));
}

.settings-section-modal.multi-outlet-popup-mode .settings-section-dialog {
  width: min(1420px, calc(100vw - 28px));
}

.settings-section-modal.multi-outlet-popup-mode .settings-section-modal-content {
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f8f9fb 100%);
}

.settings-section-modal.stock-popup-mode .settings-section-modal-content {
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.07), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f8f9fb 100%);
}

.settings-section-modal.product-popup-mode .settings-section-modal-content {
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.product-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.product-settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.product-settings-summary {
  padding: 20px 22px;
  border: 1px solid #f0e2d2;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 36%),
    linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
  box-shadow: 0 20px 38px rgba(255, 122, 0, 0.08);
}

.product-settings-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-settings-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.16);
}

.product-settings-summary p {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.product-settings-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-settings-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.94)),
    #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.product-settings-tab {
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #4b5563;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.product-settings-tab strong {
  font-size: 14px;
  line-height: 1.2;
  color: inherit;
}

.product-settings-tab span {
  font-size: 12px;
  line-height: 1.5;
  color: inherit;
  opacity: .88;
}

.product-settings-tab:hover {
  transform: translateY(-1px);
  border-color: #f5cda9;
  background: #fff8f1;
  color: #9a3412;
}

.product-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 48%),
    linear-gradient(180deg, #fff6ed 0%, #ffeede 100%);
  color: #c2410c;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.12);
}

.product-settings-panels {
  display: grid;
}

.product-settings-panel {
  display: grid;
  gap: 16px;
  animation: receiptSettingsPanelIn .24s ease;
}

.product-settings-card {
  border: 1px solid #ebebeb;
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 249, 249, 0.98) 100%);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.05);
}

.product-settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.product-settings-card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff1e2 0%, #ffe3c6 100%);
  box-shadow: 0 12px 20px rgba(255, 122, 0, 0.12);
  font-size: 18px;
}

.product-settings-card-head h5 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.product-settings-card-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.product-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-settings-grid .date-field,
.product-settings-grid .settings-store-choice-group {
  border-radius: 18px;
}

.product-settings-grid textarea {
  min-height: 112px;
}

.product-settings-field {
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.product-settings-field.is-dirty {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow:
    0 0 0 4px rgba(255, 122, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.product-settings-field.is-dirty::after {
  content: "Changed";
  position: absolute;
  top: 10px;
  right: 12px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-settings-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 16px 16px 74px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  cursor: pointer;
  overflow: hidden;
}

.product-settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-settings-switch-ui {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateY(-50%);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.product-settings-switch-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform .2s ease;
}

.product-settings-switch-copy {
  display: grid;
  gap: 4px;
}

.product-settings-switch-copy strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.product-settings-switch-copy small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
}

.product-settings-switch:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
}

.product-settings-switch:has(input:checked) .product-settings-switch-ui {
  background: #ff7a00;
  box-shadow: 0 8px 16px rgba(255, 122, 0, 0.24);
}

.product-settings-switch:has(input:checked) .product-settings-switch-ui::after {
  transform: translateX(18px);
}

.product-settings-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-settings-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed #e8ddd0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8f1 100%);
}

.product-settings-inline-actions strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.product-settings-inline-actions p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
}

.product-settings-preview-column {
  min-width: 0;
}

.product-settings-preview-sticky {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.product-settings-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-settings-preview-head small {
  display: block;
  margin-bottom: 4px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-settings-preview-head strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.18;
}

.product-settings-preview-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.product-settings-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.product-settings-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-settings-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ececec;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.product-settings-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid #ececec;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.product-settings-preview-card[data-layout="list"] {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.product-settings-preview-media {
  min-height: 190px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.22), transparent 38%),
    linear-gradient(135deg, #fff4e8 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-settings-preview-card[data-layout="list"] .product-settings-preview-media {
  min-height: 92px;
}

.product-settings-preview-copy {
  display: grid;
  gap: 12px;
}

.product-settings-preview-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-settings-preview-status,
.product-settings-preview-sku {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-settings-preview-status {
  background: #ecfdf3;
  color: #047857;
}

.product-settings-preview-status.is-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.product-settings-preview-sku {
  background: #f8fafc;
  color: #475569;
}

.product-settings-preview-copy strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.product-settings-preview-copy p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.product-settings-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-settings-preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ececec;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.product-settings-preview-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-settings-preview-pricing > div {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #ececec;
  background: #ffffff;
}

.product-settings-preview-pricing.total > div {
  background: linear-gradient(180deg, #fff9f3 0%, #ffffff 100%);
}

.product-settings-preview-pricing small,
.product-settings-preview-sidecard small {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-settings-preview-pricing strong,
.product-settings-preview-sidecard strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.product-settings-preview-sidecard {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #ececec;
  background: rgba(255, 255, 255, 0.92);
}

.product-settings-preview-sidecard p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.stock-settings-shell {
  --stock-primary: #ff7a00;
  --stock-border: #eaeaea;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
  font-family: Poppins, Inter, sans-serif;
}

.stock-settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stock-settings-summary {
  padding: 22px 24px;
  border: 1px solid #f3ddca;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
  box-shadow: 0 24px 40px rgba(255, 122, 0, 0.08);
}

.stock-settings-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stock-settings-summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--stock-primary);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.14);
}

.stock-settings-summary p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.75;
}

.stock-settings-workbench {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stock-settings-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--stock-border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.94)),
    #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.stock-settings-tab {
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #495468;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.stock-settings-tab strong {
  font-size: 14px;
  line-height: 1.25;
  color: inherit;
}

.stock-settings-tab span {
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
  opacity: .88;
}

.stock-settings-tab:hover {
  transform: translateY(-1px);
  border-color: #f5cda9;
  background: #fff8f1;
  color: #9a3412;
}

.stock-settings-tab.is-active {
  border-color: rgba(255, 122, 0, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 46%),
    linear-gradient(180deg, #fff6ed 0%, #ffeede 100%);
  color: #c2410c;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.12);
}

.stock-settings-panels {
  display: grid;
}

.stock-settings-panel {
  display: grid;
  gap: 16px;
  animation: receiptSettingsPanelIn .24s ease;
}

.stock-settings-card {
  border: 1px solid var(--stock-border);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 249, 249, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.stock-settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.stock-settings-card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff1e2 0%, #ffe3c6 100%);
  box-shadow: 0 12px 20px rgba(255, 122, 0, 0.12);
  font-size: 18px;
}

.stock-settings-card-head h5 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.stock-settings-card-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.stock-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stock-settings-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-settings-grid .date-field,
.stock-settings-grid .settings-store-choice-group {
  border-radius: 18px;
}

.stock-settings-field {
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.stock-settings-field.is-dirty {
  border-color: rgba(255, 122, 0, 0.38);
  box-shadow:
    0 0 0 4px rgba(255, 122, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.stock-settings-field.is-dirty::after {
  content: "Changed";
  position: absolute;
  top: 10px;
  right: 12px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-settings-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 16px 16px 74px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  cursor: pointer;
  overflow: hidden;
}

.stock-settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stock-settings-switch-ui {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateY(-50%);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.stock-settings-switch-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform .2s ease;
}

.stock-settings-switch-copy {
  display: grid;
  gap: 4px;
}

.stock-settings-switch-copy strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.stock-settings-switch-copy small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
}

.stock-settings-switch:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
}

.stock-settings-switch:has(input:checked) .stock-settings-switch-ui {
  background: var(--stock-primary);
  box-shadow: 0 8px 16px rgba(255, 122, 0, 0.24);
}

.stock-settings-switch:has(input:checked) .stock-settings-switch-ui::after {
  transform: translateX(18px);
}

.stock-settings-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-settings-preview-column {
  min-width: 0;
}

.stock-settings-preview-sticky {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--stock-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.stock-settings-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stock-settings-preview-head small {
  display: block;
  margin-bottom: 4px;
  color: var(--stock-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-settings-preview-head strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.18;
}

.stock-settings-preview-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.stock-settings-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.stock-settings-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-settings-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ececec;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.stock-settings-preview-stage {
  display: grid;
  gap: 14px;
  min-height: 640px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 32%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
}

.stock-preview-card,
.stock-preview-alert,
.stock-preview-dashboard {
  border: 1px solid #ececec;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.stock-preview-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.stock-preview-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stock-preview-card-top small {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-preview-card-top strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 22px;
  line-height: 1.15;
}

.stock-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.stock-preview-badge.is-danger {
  background: #fff0f0;
  color: #d94848;
}

.stock-preview-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.stock-preview-progress {
  height: 12px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.stock-preview-progress span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb067 0%, #ff7a00 100%);
}

.stock-preview-alert {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px;
}

.stock-preview-alert.is-muted {
  background: rgba(255, 255, 255, 0.76);
}

.stock-preview-alert-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff1e2 0%, #ffe3c6 100%);
  color: #c2410c;
  font-size: 18px;
  font-weight: 800;
}

.stock-preview-alert strong {
  display: block;
  color: #111827;
  font-size: 15px;
}

.stock-preview-alert p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.stock-preview-dashboard {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.stock-preview-dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.stock-preview-dashboard-row span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.stock-preview-dashboard-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.stock-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ececec;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.multi-outlet-shell {
  --multi-outlet-primary: #ff7a00;
  --multi-outlet-bg: #f8f9fb;
  --multi-outlet-border: #eaeaea;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  font-family: Poppins, Inter, sans-serif;
}

.multi-outlet-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.multi-outlet-summary {
  padding: 22px 24px;
  border: 1px solid #f3ddca;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
  box-shadow: 0 24px 40px rgba(255, 122, 0, 0.08);
}

.multi-outlet-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.multi-outlet-summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--multi-outlet-primary);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.14);
}

.multi-outlet-summary p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.75;
}

.multi-outlet-workbench {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.multi-outlet-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--multi-outlet-border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.94)),
    #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.multi-outlet-tab {
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #495468;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.multi-outlet-tab strong {
  font-size: 14px;
  line-height: 1.25;
  color: inherit;
}

.multi-outlet-tab span {
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
  opacity: .88;
}

.multi-outlet-tab:hover {
  transform: translateY(-1px);
  border-color: #f5cda9;
  background: #fff8f1;
  color: #9a3412;
}

.multi-outlet-tab.is-active {
  border-color: rgba(255, 122, 0, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 46%),
    linear-gradient(180deg, #fff6ed 0%, #ffeede 100%);
  color: #c2410c;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.12);
}

.multi-outlet-panels {
  display: grid;
}

.multi-outlet-panel {
  display: grid;
  gap: 16px;
  animation: receiptSettingsPanelIn .24s ease;
}

.multi-outlet-card {
  border: 1px solid var(--multi-outlet-border);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 249, 249, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.multi-outlet-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.multi-outlet-card-head h5 {
  margin: 0;
  color: #111827;
  font-size: 21px;
  line-height: 1.2;
}

.multi-outlet-card-head p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.multi-outlet-inline-action {
  min-width: 138px;
}

.multi-outlet-toolbar,
.multi-outlet-form-grid,
.multi-outlet-toggle-grid,
.multi-outlet-stats,
.multi-outlet-payment-grid {
  display: grid;
  gap: 14px;
}

.multi-outlet-toolbar,
.multi-outlet-form-grid,
.multi-outlet-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multi-outlet-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multi-outlet-search,
.multi-outlet-choice {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--multi-outlet-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.multi-outlet-search span,
.multi-outlet-choice legend {
  padding: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.multi-outlet-search input,
.multi-outlet-form-grid textarea,
.multi-outlet-multiselect {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.multi-outlet-form-grid textarea,
.multi-outlet-multiselect {
  border: 1px solid #eceff3;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfcfe;
}

.multi-outlet-multiselect {
  min-height: 140px;
}

.multi-outlet-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.multi-outlet-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #eceff3;
  border-radius: 999px;
  background: #fbfcfe;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.multi-span-2 {
  grid-column: span 2;
}

.multi-outlet-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.multi-outlet-switch {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--multi-outlet-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.multi-outlet-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.multi-outlet-switch-ui {
  position: relative;
  width: 54px;
  height: 31px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background-color .2s ease;
}

.multi-outlet-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: transform .2s ease;
}

.multi-outlet-switch-copy strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.multi-outlet-switch-copy small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.multi-outlet-switch:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 44%),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.multi-outlet-switch:has(input:checked) .multi-outlet-switch-ui {
  background: linear-gradient(90deg, #ffb067 0%, #ff7a00 100%);
}

.multi-outlet-switch:has(input:checked) .multi-outlet-switch-ui::after {
  transform: translateX(23px);
}

.multi-outlet-stat-card {
  padding: 18px;
  border: 1px solid var(--multi-outlet-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.98)),
    #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.04);
}

.multi-outlet-stat-card small {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.multi-outlet-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 28px;
  line-height: 1.08;
}

.multi-outlet-stat-card p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.multi-outlet-table-wrap {
  overflow: auto;
  border: 1px solid var(--multi-outlet-border);
  border-radius: 22px;
  background: #ffffff;
}

.multi-outlet-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.multi-outlet-table thead th {
  padding: 14px 18px;
  background: #fbfcfe;
  border-bottom: 1px solid #edf1f4;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.multi-outlet-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f3f5;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
  vertical-align: middle;
}

.multi-outlet-table tbody tr:last-child td {
  border-bottom: 0;
}

.multi-outlet-table tbody td strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.multi-outlet-table tbody td small {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.multi-outlet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-outlet-actions .ghost-btn,
.multi-outlet-actions .solid-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.danger-lite {
  color: #c2410c;
  border-color: #ffd9bf;
  background: #fff7f1;
}

.multi-outlet-status-badge,
.multi-outlet-type-badge,
.multi-outlet-preview-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.multi-outlet-status-badge.active {
  background: #ecfdf3;
  color: #027a48;
  border-color: #ccebd8;
}

.multi-outlet-status-badge.inactive {
  background: #fff1f2;
  color: #b42318;
  border-color: #ffd7da;
}

.multi-outlet-type-badge {
  background: #fff3e6;
  color: #c2410c;
  border-color: #ffd9bf;
}

.multi-outlet-type-badge.branch {
  background: #eef4ff;
  color: #1d4ed8;
  border-color: #d9e6ff;
}

.multi-outlet-payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multi-outlet-payment-grid .setting-check {
  min-height: 56px;
  border-radius: 18px;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .multi-outlet-workbench {
    grid-template-columns: 1fr;
  }

  .multi-outlet-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .settings-section-modal.multi-outlet-popup-mode .settings-section-dialog {
    width: calc(100vw - 16px);
  }

  .multi-outlet-toolbar,
  .multi-outlet-stats,
  .multi-outlet-form-grid,
  .multi-outlet-toggle-grid,
  .multi-outlet-payment-grid {
    grid-template-columns: 1fr;
  }

  .multi-span-2 {
    grid-column: auto;
  }

  .multi-outlet-card,
  .multi-outlet-summary,
  .multi-outlet-sidebar {
    border-radius: 20px;
  }

  .multi-outlet-card-head {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .upgrade-plan-modal .upgrade-plan-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .upgrade-plan-head {
    padding: 18px 16px 14px;
  }

  .upgrade-plan-head h3 {
    font-size: 28px;
  }

  .upgrade-plan-body {
    padding: 16px;
  }

  .upgrade-plan-grid,
  .upgrade-plan-highlight {
    grid-template-columns: 1fr;
  }

  .upgrade-plan-card.is-selected {
    transform: translateY(-2px) scale(1);
  }

  .upgrade-plan-actions {
    padding: 12px 16px 16px;
    flex-wrap: wrap;
  }

  .upgrade-plan-actions .ghost-btn:first-child {
    margin-right: 0;
  }

  .upgrade-plan-actions .solid-btn,
  .upgrade-plan-actions .ghost-btn {
    width: 100%;
  }

  .settings-section-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .settings-section-modal-head {
    padding: 16px 16px 12px;
    align-items: flex-start;
  }

  .settings-section-modal-title-wrap h3 {
    font-size: 26px;
  }

  .settings-section-modal-intro {
    font-size: 13px;
  }

  .settings-section-modal-content {
    padding: 14px 16px 18px;
  }

  .settings-section-modal-actions {
    padding: 12px 16px 16px;
    flex-wrap: wrap;
  }

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

  .settings-store-grid {
    grid-template-columns: 1fr;
  }

  .settings-col-span-2 {
    grid-column: auto;
  }

  .settings-store-preview-card {
    align-items: flex-start;
  }

  .settings-section-modal-actions .ghost-btn,
  .settings-section-modal-actions .solid-btn {
    width: 100%;
  }

  .settings-section-modal.receipt-popup-mode .settings-section-dialog {
    width: calc(100vw - 12px);
  }

  .settings-section-modal.payment-popup-mode .settings-section-dialog {
    width: calc(100vw - 12px);
  }

  .settings-section-modal.product-popup-mode .settings-section-dialog {
    width: calc(100vw - 12px);
  }

  .settings-section-modal.stock-popup-mode .settings-section-dialog {
    width: calc(100vw - 12px);
  }

  .settings-section-modal.user-access-popup-mode .settings-section-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 20px;
  }

  .settings-section-modal.user-access-popup-mode .settings-section-modal-head,
  .settings-section-modal.user-access-popup-mode .settings-section-modal-content,
  .settings-section-modal.user-access-popup-mode .settings-section-modal-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .settings-section-modal.user-access-popup-mode .settings-section-modal-actions {
    flex-direction: column;
  }

  .user-access-tabbar,
  .user-access-layout,
  .user-access-toggle-grid,
  .user-access-matrix-grid,
  .user-access-form-grid {
    grid-template-columns: 1fr;
  }

  .user-access-field-span-2 {
    grid-column: auto;
  }

  .user-access-preview-sticky {
    position: static;
  }

  .user-access-card,
  .user-access-preview-card {
    padding: 16px;
    border-radius: 14px;
  }

  .user-access-card-head,
  .user-access-preview-head,
  .user-access-toggle-card {
    flex-direction: column;
    align-items: stretch;
  }

  .user-access-add-btn {
    width: 100%;
  }

  .user-access-add-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
    border-radius: 20px;
  }

  .user-access-add-head,
  .user-access-add-body,
  .user-access-add-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-access-add-head,
  .user-access-add-hero,
  .user-access-add-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-access-add-title-wrap h3 {
    font-size: 28px;
  }

  .user-access-add-hero-badges {
    justify-content: flex-start;
  }

  .user-access-add-actions .ghost-btn,
  .user-access-add-actions .solid-btn {
    width: 100%;
  }

  .receipt-settings-shell,
  .receipt-settings-checklist,
  .receipt-settings-grid,
  .payment-settings-shell,
  .payment-settings-grid,
  .payment-integration-grid,
  .payment-fee-grid,
  .payment-fee-fields,
  .payment-method-fields,
  .payment-rounding-controls,
  .payment-cashier-summary {
    grid-template-columns: 1fr;
  }

  .product-settings-shell,
  .product-settings-workbench,
  .product-settings-grid,
  .product-settings-check-grid,
  .stock-settings-shell,
  .stock-settings-workbench,
  .stock-settings-grid,
  .stock-settings-check-grid,
  .product-settings-preview-pricing {
    grid-template-columns: 1fr;
  }

  .product-settings-summary,
  .product-settings-card,
  .product-settings-preview-sticky,
  .product-settings-sidebar,
  .stock-settings-summary,
  .stock-settings-card,
  .stock-settings-preview-sticky,
  .stock-settings-sidebar {
    padding: 16px;
    border-radius: 18px;
  }

  .product-settings-sidebar,
  .product-settings-preview-sticky,
  .stock-settings-sidebar,
  .stock-settings-preview-sticky {
    position: static;
  }

  .product-settings-sidebar,
  .stock-settings-sidebar {
    overflow-x: auto;
  }

  .product-settings-tab,
  .stock-settings-tab {
    min-width: 220px;
  }

  .product-settings-inline-actions,
  .product-settings-preview-head,
  .product-settings-preview-copy-top,
  .stock-settings-preview-head,
  .stock-preview-card-top,
  .stock-preview-dashboard-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-settings-preview-copy strong {
    font-size: 22px;
  }

  .stock-settings-preview-stage {
    min-height: 440px;
    padding: 14px;
  }

  .receipt-settings-summary,
  .receipt-settings-card,
  .receipt-settings-preview-sticky,
  .payment-settings-summary,
  .payment-settings-card,
  .payment-gateway-card,
  .payment-fee-card,
  .payment-rounding-card,
  .payment-settings-preview-sticky {
    padding: 16px;
    border-radius: 18px;
  }

  .receipt-settings-preview-sticky,
  .payment-settings-preview-sticky {
    position: static;
  }

  .receipt-settings-preview-stage,
  .payment-settings-preview-stage {
    min-height: 420px;
    padding: 14px;
  }

  .receipt-settings-inline-actions,
  .receipt-settings-preview-head,
  .payment-settings-preview-head,
  .payment-cashier-topbar,
  .payment-gateway-head {
    flex-direction: column;
    align-items: stretch;
  }

  .receipt-settings-tabbar,
  .payment-settings-tabbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .receipt-settings-tab,
  .payment-settings-tab {
    white-space: nowrap;
  }

  .receipt-paper-shell.paper-58 .receipt-paper-sheet,
  .receipt-paper-shell.paper-80 .receipt-paper-sheet {
    width: min(100%, 320px);
  }

  .payment-method-item {
    grid-template-columns: 1fr;
  }

  .payment-method-handle {
    min-height: auto;
    justify-content: flex-start;
  }
}

.settings-toggle-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-list-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-toggle-list-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-toggle-list-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-toggle-list .setting-check {
  min-height: 42px;
  border: 1px solid #d6deed;
  border-radius: 11px;
  background: #fff;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334363;
  font-size: 14px;
  font-weight: 600;
}

.settings-toggle-list .setting-check input {
  width: 18px;
  height: 18px;
  accent-color: #1a73e8;
}

.settings-toggle-field {
  border: 1px solid #d6deed;
  border-radius: 11px;
  background: #fff;
  padding: 8px 10px;
}

.settings-pro-form .setting-check {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.settings-pro-form .setting-check:hover {
  border-color: #c8d7f1;
  background: #fbfdff;
  box-shadow: 0 8px 16px rgba(31, 45, 73, 0.06);
}

.warehouse-panel {
  display: grid;
  gap: 14px;
}

.warehouse-list-head {
  align-items: flex-start;
}

.warehouse-title-wrap {
  max-width: 860px;
}

.warehouse-head-desc {
  margin: 8px 0 0;
  color: #66728b;
  font-size: 14px;
  line-height: 1.6;
}

.warehouse-form {
  display: grid;
  gap: 12px;
}

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

.warehouse-form .date-field {
  gap: 6px;
}

.warehouse-form input,
.warehouse-form textarea {
  width: 100%;
  border: 1px solid #d3dceb;
  border-radius: 10px;
  background: #fff;
  color: #2b3856;
  font: 600 13px/1.3 inherit;
  padding: 10px 12px;
}

.warehouse-form textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 220px;
}

.warehouse-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.warehouse-form-actions .ghost-btn,
.warehouse-form-actions .solid-btn {
  height: 44px;
  min-width: 136px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
}

.stock-out-panel {
  display: grid;
  gap: 16px;
}

.stock-out-panel .panel-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.stock-out-panel .panel-head > div:first-child {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.stock-out-panel .transactions-meta {
  margin: 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.45;
}

.stock-out-panel .transactions-actions {
  flex: 0 0 auto;
}

.stock-out-panel .transactions-actions .solid-btn {
  height: 44px;
  border-radius: 10px;
  padding: 0 20px;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(255, 106, 0, 0.18);
}

.stock-out-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e3e8f2;
  border-radius: 18px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.94) 62%, rgba(246, 249, 255, 0.98)),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(31, 45, 73, 0.05);
}

.stock-out-toolbar .date-field {
  gap: 8px;
  min-width: 0;
}

.stock-out-toolbar .date-field > span {
  padding-left: 2px;
  color: #5f6d89;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.stock-out-toolbar .date-field input,
.stock-out-toolbar .date-field select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  border-color: #d6deeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stock-out-toolbar .date-field input[type="date"] {
  padding-right: 46px;
}

.stock-out-search {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
}

.stock-out-search svg {
  width: 17px;
  height: 17px;
}

.stock-out-search input {
  min-width: 0;
  font-size: 15px;
}

.stock-out-table th,
.stock-out-table td {
  vertical-align: middle;
}

.stock-out-table thead th:last-child,
.stock-out-table tbody td:last-child {
  text-align: center;
  width: 108px;
}

.stock-out-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-out-pagination small {
  color: #6b7690;
  font-size: 13px;
  line-height: 1.5;
}

.stock-out-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-out-pagination-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  border-radius: 12px;
}

.stock-out-pagination-actions .ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.stock-out-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-out-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  color: #41506d;
  font: 700 13px/1 inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.stock-out-page-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd6ea;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.08);
}

.stock-out-page-btn.active {
  border-color: #ffd4b2;
  background: linear-gradient(180deg, #fff5eb 0%, #ffe7d4 100%);
  color: #f26a00;
  box-shadow: 0 12px 20px rgba(242, 106, 0, 0.16);
}

.table-icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.table-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3f1;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: #495977;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(31, 45, 73, 0.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.table-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.table-icon-btn:hover {
  transform: translateY(-1px);
}

.table-icon-btn:focus-visible {
  outline: 2px solid #ffd2b0;
  outline-offset: 2px;
}

.table-icon-btn.view {
  border-color: #d7e5fb;
  background: linear-gradient(180deg, #fafdff, #eff6ff);
  color: #2d65c7;
}

.table-icon-btn.view:hover {
  border-color: #bfd2f1;
  box-shadow: 0 10px 18px rgba(50, 92, 160, 0.12);
}

.table-icon-btn.edit {
  border-color: #dbe2ef;
  background: linear-gradient(180deg, #ffffff, #f6f8fd);
  color: #485870;
}

.table-icon-btn.edit:hover {
  border-color: #c4d0e5;
  box-shadow: 0 10px 18px rgba(52, 80, 126, 0.1);
}

.table-icon-btn.delete {
  border-color: #ffd8d8;
  background: linear-gradient(180deg, #fff8f8, #fff0f0);
  color: #d54848;
}

.table-icon-btn.delete:hover {
  border-color: #f2b9b9;
  box-shadow: 0 10px 18px rgba(186, 60, 60, 0.12);
}

.stock-in-panel {
  display: grid;
  gap: 14px;
}

.stock-in-head {
  align-items: flex-start;
}

.stock-in-title-wrap {
  max-width: 860px;
}

.stock-in-head-actions {
  margin-top: 14px;
  margin-left: 0;
}

.stock-in-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-in-stat {
  border: 1px solid #e2e8f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(31, 45, 73, 0.06);
}

.stock-in-stat small {
  color: #74819b;
  font-size: 12px;
  font-weight: 700;
}

.stock-in-stat strong {
  color: #1f2a44;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stock-in-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: end;
}

.stock-in-search {
  width: 100%;
}

.stock-in-table th,
.stock-in-table td,
.stock-in-items-table th,
.stock-in-items-table td {
  vertical-align: middle;
}

.stock-in-table thead th,
.stock-in-items-table thead th {
  background: #f7faff;
  color: #5c6a86;
  font-size: 12px;
  font-weight: 700;
}

.stock-in-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
  flex-wrap: wrap;
}

.stock-in-pagination small {
  color: #6b7690;
  font-size: 13px;
  line-height: 1.5;
}

.stock-in-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-in-pagination-actions .ghost-btn {
  min-width: 92px;
  height: 38px;
  border-radius: 12px;
}

.stock-in-pagination-actions .ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.stock-in-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-in-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  color: #41506d;
  font: 700 13px/1 inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.stock-in-page-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd6ea;
  box-shadow: 0 10px 18px rgba(31, 45, 73, 0.08);
}

.stock-in-page-btn.active {
  border-color: #ffd4b2;
  background: linear-gradient(180deg, #fff5eb 0%, #ffe7d4 100%);
  color: #f26a00;
  box-shadow: 0 12px 20px rgba(242, 106, 0, 0.16);
}

.stock-in-form {
  padding: 18px 20px 0;
  gap: 14px;
  max-height: calc(min(86vh, 860px) - 82px);
  overflow: auto;
}

.stock-in-dialog {
  width: min(1100px, calc(100vw - 28px));
  max-height: min(86vh, 860px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d8dfef;
  box-shadow:
    0 26px 52px rgba(16, 28, 51, 0.24),
    0 3px 0 rgba(255, 255, 255, 0.8) inset;
}

.stock-in-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stock-in-grid-span-2 {
  grid-column: span 2;
}

.stock-in-items-section {
  gap: 12px;
}

.stock-in-number-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d6dfef;
  border-radius: 10px;
  background: #fff;
  color: #2b3856;
  font: 600 13px/1 inherit;
  padding: 0 10px;
}

.stock-in-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 12px;
  align-items: start;
}

.stock-in-bottom-grid textarea {
  width: 100%;
  border: 1px solid #d3dceb;
  border-radius: 10px;
  background: #fff;
  color: #2b3856;
  font: 600 13px/1.4 inherit;
  padding: 10px 12px;
  resize: vertical;
  min-height: 110px;
}

.stock-in-summary-card {
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf5, #ffffff);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.stock-in-summary-card > strong {
  color: #243250;
  font-size: 16px;
}

.stock-in-summary-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
}

.stock-in-summary-rows span {
  color: #697691;
  font-size: 12px;
  font-weight: 600;
}

.stock-in-summary-rows strong {
  color: #1d2d4a;
  font-size: 14px;
}

.stock-in-detail-dialog {
  width: min(980px, calc(100vw - 40px));
}

.stock-in-detail-body {
  padding: 16px 20px 0;
  max-height: calc(min(86vh, 820px) - 82px);
  overflow: auto;
}

.stock-transfer-panel {
  display: grid;
  gap: 18px;
  padding: 16px 16px 18px;
  background:
    radial-gradient(120% 110% at 0% 0%, #ffffff 0%, #fbfcff 56%, #f7f9fe 100%);
}

.stock-transfer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #dde5f2;
  border-radius: 22px;
  padding: 22px 28px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96) 55%, rgba(245, 248, 255, 0.98)),
    linear-gradient(135deg, #ffffff, #f7faff);
  box-shadow:
    0 18px 34px rgba(35, 48, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.stock-transfer-heading {
  display: grid;
  gap: 8px;
}

.stock-transfer-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d9e2f2;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: #61718f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.stock-transfer-panel .panel-head h3 {
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #182338;
}

.stock-transfer-panel .transactions-meta {
  margin: 0;
  max-width: 920px;
  color: #596987;
  font-size: 15px;
  line-height: 1.45;
}

.stock-transfer-hero-actions {
  align-self: start;
}

.stock-transfer-cta {
  height: 44px;
  min-width: 228px;
  border-radius: 10px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  box-shadow:
    0 16px 28px rgba(255, 122, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.stock-transfer-cta .btn-icon-svg {
  width: 18px;
  height: 18px;
}

.stock-transfer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stock-transfer-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe7f5;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95) 62%, rgba(244, 247, 255, 0.98)),
    linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(31, 45, 73, 0.06);
  transition: transform .22s ease, box-shadow .24s ease, border-color .24s ease;
}

.stock-transfer-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18%;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0) 0%, #ff8d40 26%, #ff6f00 58%, rgba(255, 122, 0, 0) 100%);
  opacity: .92;
  transform: translateX(0);
  transition: transform .48s cubic-bezier(.2, .82, .24, 1), width .28s ease, opacity .22s ease;
}

.stock-transfer-stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: -24%;
  width: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 196, 148, 0), rgba(255, 196, 148, .9), rgba(255, 196, 148, 0));
  opacity: 0;
  transform: translateX(0);
  transition: transform .58s cubic-bezier(.18, .8, .2, 1), opacity .24s ease;
}

.stock-transfer-stat:hover {
  transform: translateY(-2px);
  border-color: #d4deef;
  box-shadow: 0 18px 32px rgba(31, 45, 73, 0.1);
}

.stock-transfer-stat:hover::before {
  width: 52%;
  transform: translateX(138%);
}

.stock-transfer-stat:hover::after {
  opacity: 1;
  transform: translateX(205%);
}

.stock-transfer-stat small {
  color: #7583a0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.stock-transfer-stat strong {
  color: #223252;
  font-size: 40px;
  line-height: .94;
  letter-spacing: -0.03em;
}

.stock-transfer-toolbar {
  border: 1px solid #dfe7f4;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: end;
  box-shadow: 0 14px 28px rgba(36, 52, 84, 0.05);
}

.stock-transfer-toolbar .date-field {
  gap: 8px;
}

.stock-transfer-toolbar .date-field > span {
  color: #687895;
  font-size: 12px;
  font-weight: 800;
}

.stock-transfer-toolbar .date-field input,
.stock-transfer-toolbar .date-field select {
  width: 100%;
  height: 46px;
  border: 1px solid #d5ddec;
  border-radius: 14px;
  background: #fff;
  color: #2d3750;
  font: 600 14px/1.2 inherit;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.stock-transfer-toolbar .date-field input:focus,
.stock-transfer-toolbar .date-field select:focus {
  outline: 0;
  border-color: #ffb884;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.stock-transfer-search {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  border-color: #d6deec;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.stock-transfer-search svg {
  width: 18px;
  height: 18px;
  fill: #7c879d;
}

.stock-transfer-search input {
  font-size: 14px;
  color: #32405d;
}

.stock-transfer-table th,
.stock-transfer-table td,
.stock-transfer-items-table th,
.stock-transfer-items-table td {
  vertical-align: middle;
}

.stock-transfer-table {
  table-layout: fixed;
}

.stock-transfer-table thead th,
.stock-transfer-items-table thead th {
  background: linear-gradient(180deg, #f7faff, #f2f6fd);
  color: #5c6a86;
  font-size: 12px;
  font-weight: 800;
  padding: 13px 10px;
  text-align: center;
}

.stock-transfer-table tbody td {
  padding: 15px 12px;
  text-align: center;
  color: #24324e;
  font-size: 13px;
}

.stock-transfer-table tbody td:nth-child(3),
.stock-transfer-table tbody td:nth-child(4),
.stock-transfer-table tbody td:nth-child(5) {
  text-align: left;
}

.stock-transfer-table tbody td:nth-child(10) {
  padding-right: 14px;
}

.stock-transfer-panel .table-wrap {
  border-radius: 20px;
  border-color: #e1e7f2;
  box-shadow: 0 14px 26px rgba(31, 44, 71, 0.05);
  background: #fff;
}

.stock-transfer-items-table tbody td {
  padding: 12px 10px;
  text-align: center;
  color: #2b3957;
  font-size: 12.5px;
}

.stock-transfer-items-table tbody td[colspan] {
  padding: 20px 14px;
  text-align: left;
}

.stock-transfer-table tbody tr:hover {
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.stock-transfer-dialog {
  width: min(1320px, calc(100vw - 28px));
  max-height: min(90vh, 790px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #d7e0ef;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow:
    0 32px 68px rgba(16, 28, 51, 0.24),
    0 3px 0 rgba(255, 255, 255, 0.84) inset;
}

.stock-transfer-form {
  padding: 14px 16px 0;
  gap: 0;
  max-height: calc(min(90vh, 790px) - 82px);
  overflow: hidden;
}

.stock-transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.74fr) minmax(300px, .68fr);
  gap: 10px;
  align-items: start;
}

.stock-transfer-main {
  display: grid;
  gap: 10px;
}

.stock-transfer-sidebar {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 0;
  align-content: start;
}

.stock-transfer-section,
.stock-transfer-summary-card {
  border: 1px solid #dde6f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 11px 13px;
  box-shadow: 0 10px 20px rgba(25, 43, 77, 0.045);
}

.stock-transfer-section {
  display: grid;
  gap: 8px;
}

.stock-transfer-section-head {
  display: grid;
  gap: 2px;
}

.stock-transfer-section-head strong {
  color: #233553;
  font-size: 14px;
}

.stock-transfer-section-head span {
  color: #687894;
  font-size: 11px;
  line-height: 1.38;
}

.stock-transfer-section-head.compact strong {
  font-size: 14px;
}

.stock-transfer-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stock-transfer-grid-span-2 {
  grid-column: span 2;
}

.stock-transfer-product-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.stock-transfer-product-search {
  min-width: 0;
}

.stock-transfer-product-search input,
.stock-transfer-form-grid input,
.stock-transfer-form-grid select,
.stock-transfer-section textarea {
  width: 100%;
}

.stock-transfer-form .date-field {
  gap: 5px;
}

.stock-transfer-form .date-field > span {
  color: #647592;
  font-size: 12px;
  font-weight: 800;
}

.stock-transfer-form .date-field input,
.stock-transfer-form .date-field select,
.stock-transfer-form .date-field textarea {
  border: 1px solid #d5ddec;
  border-radius: 14px;
  background: #fff;
  color: #2d3750;
  font: 600 13px/1.3 inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.stock-transfer-form .date-field input,
.stock-transfer-form .date-field select {
  height: 40px;
  padding: 0 13px;
}

.stock-transfer-form .date-field textarea {
  min-height: 88px;
  max-height: 88px;
  resize: none;
  padding: 10px 13px;
  line-height: 1.45;
}

.stock-transfer-product-bar .ghost-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 800;
}

.stock-transfer-summary-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}

.stock-transfer-summary-rows span {
  color: #6c7a96;
  font-size: 12px;
  font-weight: 800;
}

.stock-transfer-summary-rows strong {
  color: #1e2d4b;
  font-size: 15px;
}

.stock-transfer-flow {
  display: grid;
  gap: 8px;
}

.stock-transfer-flow-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.stock-transfer-flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 2px;
  border: 3px solid #e3e9f5;
  background: #c9d3e6;
  box-shadow: 0 0 0 4px rgba(201, 211, 230, 0.18);
}

.stock-transfer-flow-item.active .stock-transfer-flow-dot {
  border-color: #ffd3b2;
  background: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}

.stock-transfer-flow-item strong {
  display: block;
  color: #21324f;
  font-size: 13px;
}

.stock-transfer-flow-item small {
  color: #6d7d99;
  font-size: 11px;
  line-height: 1.35;
}

.stock-transfer-errors {
  display: none;
  gap: 8px;
}

.stock-transfer-note-card .date-field > span {
  font-size: 11px;
}

.stock-transfer-note-card textarea {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.stock-transfer-errors.show {
  display: grid;
}

.stock-transfer-error-item {
  border: 1px solid #ffd7d7;
  border-radius: 12px;
  background: #fff6f6;
  color: #c74242;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 11px;
}

.stock-transfer-qty-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d4deef;
  border-radius: 10px;
  background: #fff;
  color: #2a3855;
  font: 700 13px/1 inherit;
  padding: 0 10px;
}

.stock-transfer-qty-input.is-invalid {
  border-color: #ef6d6d;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(239, 109, 109, 0.12);
}

.stock-transfer-stock-low {
  background: #fff1f1;
  color: #c34848;
  border-color: #ffd1d1;
}

.stock-transfer-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -16px;
  padding: 10px 16px;
  border-top: 1px solid #dfe7f5;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.94), #ffffff 72%);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  box-shadow: 0 -10px 24px rgba(27, 38, 62, 0.035);
}

.stock-transfer-action-btn {
  height: 44px;
  min-width: 134px;
  border-radius: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.stock-transfer-action-btn:hover {
  transform: translateY(-1px);
}

.stock-transfer-action-btn.ghost-btn {
  border-color: #d8e1ef;
  background: linear-gradient(180deg, #ffffff, #f5f8fd);
  box-shadow:
    0 8px 18px rgba(31, 45, 70, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.stock-transfer-action-btn.ghost-btn:hover {
  border-color: #c9d5e8;
  box-shadow:
    0 10px 20px rgba(31, 45, 70, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.stock-transfer-action-btn .btn-icon-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.stock-transfer-send-btn {
  min-width: 124px;
  box-shadow:
    0 14px 26px rgba(255, 122, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.stock-transfer-send-btn:hover {
  box-shadow:
    0 18px 28px rgba(255, 122, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.stock-transfer-status-badge,
.stock-transfer-status-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.stock-transfer-status-badge.draft,
.stock-transfer-status-inline.draft {
  background: #f1f3f7;
  color: #667489;
  border: 1px solid #dde3ec;
}

.stock-transfer-status-badge.sent,
.stock-transfer-status-inline.sent {
  background: #edf4ff;
  color: #2462d3;
  border: 1px solid #cfe0ff;
}

.stock-transfer-status-badge.received,
.stock-transfer-status-inline.received {
  background: #edf9f1;
  color: #1f8a4f;
  border: 1px solid #cfead8;
}

.stock-transfer-detail-dialog {
  width: min(980px, calc(100vw - 36px));
}

.stock-transfer-detail-body {
  max-height: calc(min(86vh, 840px) - 152px);
  overflow: auto;
}

.stock-transfer-detail-head,
.stock-transfer-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.stock-transfer-detail-head span,
.stock-transfer-detail-summary span {
  color: #51617e;
  font-size: 13px;
}

.stock-transfer-detail-warehouse {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-transfer-detail-warehouse > div {
  border: 1px solid #dfe6f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stock-transfer-detail-warehouse strong {
  color: #63738f;
  font-size: 12px;
}

.stock-transfer-detail-warehouse span {
  color: #1f2d49;
  font-size: 14px;
  font-weight: 700;
}

.stock-transfer-detail-note {
  margin: 0 0 14px;
  color: #576784;
  font-size: 13px;
  line-height: 1.5;
}

.stock-transfer-detail-timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.stock-transfer-timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
}

.stock-transfer-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  background: #c7d2e7;
  box-shadow: 0 0 0 4px rgba(199, 210, 231, 0.16);
}

.stock-transfer-timeline-dot.draft {
  background: #98a3b5;
}

.stock-transfer-timeline-dot.sent {
  background: #2d6ae0;
}

.stock-transfer-timeline-dot.received {
  background: #1f9254;
}

.stock-transfer-timeline-item strong {
  display: block;
  color: #22324f;
  font-size: 14px;
}

.stock-transfer-timeline-item p {
  margin: 2px 0 4px;
  color: #5b6b88;
  font-size: 13px;
}

.stock-transfer-timeline-item small {
  color: #73829d;
  font-size: 12px;
}

.defective-panel {
  display: grid;
  gap: 14px;
}

.defective-form {
  border: 1px solid #dce5f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.defective-product-info {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #667692;
}

.defective-product-info.ok {
  color: #1f7f3d;
}

.defective-product-info.warn {
  color: #b45309;
}

.defective-adjust-toggle {
  width: fit-content;
}

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

.defective-form-actions .ghost-btn,
.defective-form-actions .solid-btn {
  height: 44px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.defective-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.defective-stat {
  border: 1px solid #dde6f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.defective-stat small {
  font-size: 12px;
  color: #62708b;
  font-weight: 700;
}

.defective-stat strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1f2c48;
}

#defectiveLastUpdateValue {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.defective-table th,
.defective-table td {
  vertical-align: middle;
}

.defective-table thead th {
  background: #f6f9ff;
  color: #5b6b89;
  font-size: 12px;
  font-weight: 700;
}

.product-categories-panel {
  display: grid;
  gap: 14px;
}

.product-categories-head {
  align-items: flex-start;
}

.product-categories-title-wrap {
  max-width: 860px;
}

.product-categories-head-actions {
  margin-top: 14px;
  margin-left: 0;
}

.category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot, #ff7a1a);
}

.category-table th,
.category-table td {
  vertical-align: middle;
}

.category-table thead th {
  background: #f5f8ff;
  color: #5a6a87;
  font-size: 12px;
  font-weight: 700;
}

.category-cell {
  display: inline-grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.category-cell strong {
  display: block;
  color: #223553;
  font-size: 16px;
}

.category-cell small {
  display: block;
  margin-top: 2px;
  color: #6b7a96;
  font-size: 12px;
}

.category-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stock-opname-panel {
  display: grid;
  gap: 14px;
}

.stock-opname-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.stock-opname-actions .ghost-btn,
.stock-opname-actions .solid-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 44px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    filter .22s ease;
}

.stock-opname-actions .ghost-btn::before,
.stock-opname-actions .solid-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 252, 0.94));
  transition: background .22s ease;
}

.stock-opname-actions .ghost-btn::after,
.stock-opname-actions .solid-btn::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px -28%;
  width: 42%;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: skewX(-24deg) translateX(0);
  transition: transform .46s ease, opacity .24s ease;
}

.stock-opname-actions .ghost-btn {
  border: 1px solid #d7deec;
  color: #4b5876;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(31, 45, 73, 0.08);
}

.stock-opname-actions .ghost-btn::before {
  background:
    radial-gradient(circle at top right, rgba(152, 182, 246, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.96));
}

.stock-opname-actions .solid-btn {
  border: 1px solid #ff8c3a;
  box-shadow:
    inset 0 1px 0 rgba(255, 218, 188, 0.62),
    0 14px 28px rgba(255, 120, 20, 0.28);
}

.stock-opname-actions .solid-btn::before {
  background:
    radial-gradient(circle at top right, rgba(255, 208, 160, 0.26), transparent 38%),
    linear-gradient(180deg, #ff8f2f, #ff6f00);
}

.stock-opname-actions .ghost-btn:hover,
.stock-opname-actions .solid-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
}

.stock-opname-actions .ghost-btn:hover {
  border-color: #c6d3ea;
  color: #344665;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(31, 45, 73, 0.13);
}

.stock-opname-actions .ghost-btn:hover::before {
  background:
    radial-gradient(circle at top right, rgba(131, 173, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 244, 252, 0.98));
}

.stock-opname-actions .solid-btn:hover {
  border-color: #ff983f;
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 204, 0.68),
    0 18px 32px rgba(255, 120, 20, 0.34);
}

.stock-opname-actions .solid-btn:hover::before {
  background:
    radial-gradient(circle at top right, rgba(255, 225, 189, 0.32), transparent 40%),
    linear-gradient(180deg, #ff9636, #ff7200);
}

.stock-opname-actions .ghost-btn:hover::after,
.stock-opname-actions .solid-btn:hover::after {
  opacity: 1;
  transform: skewX(-24deg) translateX(280%);
}

.stock-opname-actions .ghost-btn:active,
.stock-opname-actions .solid-btn:active {
  transform: translateY(0);
}

.stock-opname-actions .ghost-btn:focus-visible,
.stock-opname-actions .solid-btn:focus-visible {
  outline: 3px solid rgba(255, 170, 110, 0.24);
  outline-offset: 3px;
}

.stock-opname-actions .ghost-btn .btn-icon-svg,
.stock-opname-actions .solid-btn .btn-icon-svg {
  transition: transform .22s ease, opacity .22s ease;
}

.stock-opname-actions .ghost-btn span,
.stock-opname-actions .solid-btn span {
  position: relative;
}

.stock-opname-actions .ghost-btn:hover .btn-icon-svg {
  transform: rotate(-8deg) scale(1.06);
}

.stock-opname-actions .solid-btn:hover .btn-icon-svg {
  transform: translateX(1px) scale(1.06);
}

.stock-opname-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stock-opname-stat {
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stock-opname-stat small {
  font-size: 12px;
  font-weight: 700;
  color: #65708a;
}

.stock-opname-stat strong {
  font-size: 26px;
  line-height: 1;
  color: #1f2b45;
  letter-spacing: -0.02em;
}

#stockOpnameAdjustTotal.positive {
  color: #15803d;
}

#stockOpnameAdjustTotal.negative {
  color: #c2410c;
}

.stock-opname-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stock-opname-search {
  width: min(460px, 100%);
}

.stock-opname-toggle {
  height: 40px;
  border: 1px solid #d5deee;
  border-radius: 11px;
  padding: 0 12px;
  background: #f8fbff;
  color: #415174;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stock-opname-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1a73e8;
}

.stock-opname-table th,
.stock-opname-table td {
  vertical-align: middle;
}

.stock-opname-table thead th {
  background: #f3f7ff;
  color: #4f5f7f;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 10px;
}

.stock-opname-table tbody td {
  padding: 10px 10px;
  font-size: 13px;
}

.stock-opname-table thead th:nth-child(5),
.stock-opname-table tbody td:nth-child(5) {
  min-width: 120px;
}

.stock-opname-system {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d8dfec;
  background: #f8fafe;
  color: #445373;
  font-weight: 700;
}

.stock-opname-input,
.stock-opname-note-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d4dced;
  border-radius: 10px;
  background: #fff;
  color: #2b3753;
  font: 600 13px/1 inherit;
  padding: 0 10px;
}

.stock-opname-input {
  min-width: 92px;
  text-align: center;
}

.stock-opname-note-input {
  min-width: 220px;
}

.stock-opname-input:focus,
.stock-opname-note-input:focus {
  outline: 2px solid #ffd0ad;
  outline-offset: 1px;
  border-color: #ffad73;
}

.stock-opname-diff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #dce3f2;
  background: #f6f8fd;
  color: #596685;
  font-size: 12px;
  font-weight: 700;
}

.stock-opname-diff.plus {
  border-color: #cae6ce;
  background: #ebf8ee;
  color: #217a3d;
}

.stock-opname-diff.minus {
  border-color: #ffd6bd;
  background: #fff3ea;
  color: #c4530f;
}

.stock-opname-diff.ok {
  border-color: #d7e4f7;
  background: #eef4ff;
  color: #2c66c0;
}

.col-select {
  width: 56px;
}

.row-check-cell {
  text-align: center;
}

.row-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #7f8592;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#selectAllProducts {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #7f8592;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.row-check-input:checked,
#selectAllProducts:checked {
  border-color: #2b6dd8;
  background: linear-gradient(180deg, #4f8ff3, #2f73e6);
}

.row-check-input:checked::after,
#selectAllProducts:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(40deg);
}

.row-check-input:focus-visible,
#selectAllProducts:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 115, 230, 0.2);
}

.import-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.import-block {
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
}

.import-block h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #2a3248;
}

.import-panel .import-block .panel-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#submitImportBtn {
  margin-left: 0;
  height: 38px;
  min-width: 210px;
  max-width: 300px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.import-upload {
  border: 1px dashed #cfd7e8;
  border-radius: 10px;
  min-height: 90px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5c6784;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.import-upload input {
  display: none;
}

.import-block small {
  margin-top: 8px;
  display: block;
  color: #7e879d;
  font-size: 12px;
}

.import-mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.import-mapping-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #5a647d;
  font-weight: 700;
}

.import-mapping-grid select {
  height: 36px;
  border-radius: 9px;
  border: 1px solid #d8deea;
  padding: 0 10px;
  font: 600 13px/1 inherit;
  color: #2d3650;
  background: #fff;
}

#processImportMappingBtn {
  margin-top: 10px;
}

.purchase-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid #dce3f2;
  background: #f6f8fc;
  color: #55617b;
  font-size: 11px;
  font-weight: 700;
}

.purchase-status-chip.purchase-status-ok {
  border-color: #cfe5cf;
  background: #eef8ef;
  color: #2f8c45;
}

.purchase-status-chip.purchase-status-pending {
  border-color: #ffe2ba;
  background: #fff6e9;
  color: #c1720d;
}

.purchase-status-chip.purchase-status-draft {
  border-color: #dce2f1;
  background: #f4f7fd;
  color: #5d6882;
}

.purchase-status-chip.purchase-status-retur {
  border-color: #ffd9bf;
  background: #fff4ea;
  color: #cc6b11;
}

.purchase-status-chip.purchase-status-transfer {
  border-color: #cfe1ff;
  background: #eff5ff;
  color: #2d64c8;
}

.purchase-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  gap: 10px;
}

.purchase-items-head span {
  font-size: 16px;
  color: #36415f;
  font-weight: 700;
}

.purchase-items-container {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.purchase-item-row {
  border: 1px solid #e2e7f1;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 130px 160px auto;
  gap: 10px;
  align-items: end;
  box-shadow: 0 6px 16px rgba(28, 40, 72, 0.06);
}

.purchase-item-row .date-field {
  gap: 6px;
}

.purchase-item-row .date-field span {
  font-size: 12px;
  font-weight: 700;
  color: #61708f;
}

.remove-purchase-row-btn {
  height: 42px;
  border-radius: 11px;
  border: 1px solid #ffd3d3;
  background: #fff5f5;
  color: #d74545;
  font: 700 13px/1 inherit;
  padding: 0 12px;
  cursor: pointer;
}

.purchase-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  gap: 10px;
}

#purchaseForm .profile-settings-actions {
  position: sticky;
  bottom: 0;
  margin: 4px -20px 0;
  padding: 12px 20px;
  border-top: 1px solid #dfe6f4;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.9), #ffffff 68%);
}

@media (max-width: 980px) {
  .purchase-dialog {
    width: min(740px, calc(100vw - 16px));
  }

  .purchase-dialog .receipt-head h3 {
    font-size: 30px;
  }

  .purchase-top-grid {
    grid-template-columns: 1fr;
  }

  .purchase-item-row {
    grid-template-columns: 1fr 1fr;
  }

  .remove-purchase-row-btn {
    grid-column: span 2;
  }
}

.purchase-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(86vh, 860px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d8dfef;
  box-shadow:
    0 26px 52px rgba(16, 28, 51, 0.24),
    0 3px 0 rgba(255, 255, 255, 0.8) inset;
}

.purchase-dialog .receipt-head {
  padding: 16px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #e3e9f5;
}

.purchase-dialog .receipt-head h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.purchase-dialog .modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 25px;
  border-color: #cfd8eb;
  background: linear-gradient(180deg, #fdfefe, #edf2fb);
}

.purchase-form {
  padding: 18px 20px 0;
  gap: 14px;
  max-height: calc(min(86vh, 860px) - 82px);
  overflow: auto;
}

.purchase-form-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dce4f3;
  background: linear-gradient(180deg, #f7fbff, #f3f8ff);
  color: #5e6a86;
  font-size: 14px;
}

.purchase-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.purchase-items-section {
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfefe, #f9fbff);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.price-rules-dialog {
  width: min(820px, calc(100vw - 32px));
}

.price-rule-section {
  border: 1px solid #e2e8f3;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.price-rule-section h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #2a3248;
}

.price-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-rules-note {
  margin: 2px 0 0;
  font-size: 13px;
  color: #68728a;
  background: #f6f9ff;
  border: 1px solid #e0e7f5;
  border-radius: 10px;
  padding: 10px 12px;
}

.update-products-dialog {
  width: min(760px, calc(100vw - 32px));
}

.update-products-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.update-products-lead,
.update-products-info {
  margin: 0;
  font-size: 14px;
  color: #5f6b84;
  line-height: 1.45;
}

.update-template-note {
  border: 1px solid #dde6f5;
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.update-template-note strong {
  font-size: 13px;
  color: #32425f;
}

.update-template-note code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d4dfef;
  background: #fff;
  font-size: 12px;
  color: #4d5b78;
}

.update-products-actions {
  justify-content: space-between;
  gap: 8px;
}

.update-products-actions .ghost-btn,
.update-products-actions .solid-btn {
  min-width: 190px;
}

.map-location-dialog {
  width: min(760px, calc(100vw - 32px));
}

.map-location-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-location-stat {
  border: 1px solid #dbe4f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 16px rgba(24, 37, 58, 0.08);
}

.map-location-stat small {
  color: #617391;
  font-size: 12px;
  font-weight: 700;
}

.map-location-stat strong {
  color: #1d2d4a;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.import-guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #4f5d79;
  font-size: 13px;
  line-height: 1.45;
}

.import-guide-list code {
  font-size: 12px;
  color: #3e4c6d;
}

.transaction-row.is-marked {
  background: linear-gradient(90deg, #fff8ef, #fff);
}

.transaction-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trx-action-btn {
  height: 28px;
  border-radius: 8px;
  border: 1px solid #dbe1ee;
  background: #fff;
  color: #4a556f;
  font: 700 12px/1 inherit;
  padding: 0 10px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.trx-action-btn.mark.active {
  border-color: #ffcfae;
  color: #ff6a00;
  background: #fff1e6;
}

.trx-action-btn.delete {
  border-color: #ffd3d3;
  color: #d94545;
  background: #fff5f5;
}

.trx-action-btn:hover {
  border-color: #c8d1e5;
}

.trx-action-btn.delete:hover {
  border-color: #f3b8b8;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal .55s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinIn {
  from { transform: rotate(-60deg) scale(.88); opacity: .1; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

.loyalty-panel {
  display: grid;
  gap: 18px;
}

.loyalty-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.loyalty-title-wrap {
  max-width: 720px;
}

.loyalty-title-wrap h3 {
  margin: 0;
}

.loyalty-title-wrap p {
  margin: 8px 0 0;
  color: #67728c;
  font-size: 14px;
  line-height: 1.6;
}

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

.loyalty-title-wrap .loyalty-head-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.loyalty-head-actions .ghost-btn,
.loyalty-head-actions .solid-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--loyalty-head-btn-border, rgba(148, 163, 184, 0.28));
  background: var(--loyalty-head-btn-bg, rgb(248, 250, 252));
  color: var(--loyalty-head-btn-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--loyalty-head-btn-shadow, rgba(15, 23, 42, 0.06));
  font-weight: 400;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.loyalty-head-actions .ghost-btn {
  border-width: 1px;
}

.loyalty-head-actions .solid-btn {
  border-width: 1px;
}

.loyalty-head-actions .ghost-btn .btn-icon-svg,
.loyalty-head-actions .solid-btn .btn-icon-svg {
  transition: transform .18s ease;
}

.loyalty-head-actions .ghost-btn:focus-visible,
.loyalty-head-actions .solid-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

@media (hover: hover) {
  .loyalty-head-actions .ghost-btn:hover,
  .loyalty-head-actions .solid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--loyalty-head-btn-hover-shadow, rgba(15, 23, 42, 0.12));
  }

  .loyalty-head-actions .ghost-btn:hover .btn-icon-svg,
  .loyalty-head-actions .solid-btn:hover .btn-icon-svg {
    transform: translateX(1px);
  }
}

.loyalty-head-actions .ghost-btn:active,
.loyalty-head-actions .solid-btn:active {
  transform: translateY(0);
}

.loyalty-head-actions #openLoyaltySettingsBtn {
  --loyalty-head-btn-bg: rgb(255, 245, 235);
  --loyalty-head-btn-text: rgb(234, 88, 12);
  --loyalty-head-btn-border: rgba(251, 146, 60, 0.34);
  --loyalty-head-btn-shadow: rgba(251, 146, 60, 0.12);
  --loyalty-head-btn-hover-shadow: rgba(251, 146, 60, 0.2);
}

.loyalty-head-actions #memberQuickScanBtn {
  --loyalty-head-btn-bg: rgb(238, 246, 255);
  --loyalty-head-btn-text: rgb(37, 99, 235);
  --loyalty-head-btn-border: rgba(59, 130, 246, 0.28);
  --loyalty-head-btn-shadow: rgba(59, 130, 246, 0.12);
  --loyalty-head-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.loyalty-head-actions #addMemberBtn {
  --loyalty-head-btn-bg: rgb(238, 242, 255);
  --loyalty-head-btn-text: rgb(79, 70, 229);
  --loyalty-head-btn-border: rgba(99, 102, 241, 0.28);
  --loyalty-head-btn-shadow: rgba(99, 102, 241, 0.11);
  --loyalty-head-btn-hover-shadow: rgba(99, 102, 241, 0.17);
}

.loyalty-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.loyalty-stat-card {
  border-radius: 20px;
  border: 1px solid #e4e8f2;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.95), rgba(249, 251, 255, 0.92) 42%, rgba(244, 246, 251, 0.94)),
    linear-gradient(180deg, #fff, #f6f8fc);
  padding: 18px;
  box-shadow: 0 14px 28px rgba(34, 44, 66, 0.06);
  display: grid;
  gap: 8px;
}

.loyalty-stat-card small {
  color: #76809a;
  font: 700 11px/1.2 inherit;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.loyalty-stat-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #1f2740;
}

.loyalty-stat-card span {
  color: #5f6a84;
  font-size: 13px;
  line-height: 1.5;
}

.loyalty-stat-card.accent-points {
  background:
    radial-gradient(130% 180% at 100% 0%, rgba(255, 122, 0, 0.18), transparent 45%),
    linear-gradient(180deg, #fff7ef, #fff2e4);
  border-color: #ffd3ad;
}

.loyalty-stat-card.accent-tier {
  background:
    radial-gradient(130% 180% at 100% 0%, rgba(217, 177, 79, 0.22), transparent 48%),
    linear-gradient(180deg, #fffbed, #fff7d4);
  border-color: #f0df95;
}

.loyalty-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, .5fr));
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid #e4e9f3;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.94) 46%, rgba(244, 247, 252, 0.94)),
    linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(32, 43, 67, 0.06);
}

.loyalty-search {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid #d6d9e3;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.loyalty-search svg {
  width: 17px;
  height: 17px;
  fill: #737888;
}

.loyalty-search input {
  font: 500 14px/1 inherit;
  color: #2b3040;
}

.loyalty-search input::placeholder {
  color: #737888;
  font-weight: 500;
}

.loyalty-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.loyalty-table-card,
.loyalty-detail-card,
.loyalty-config-card,
.loyalty-premium-card {
  border-radius: 22px;
  border: 1px solid #e5e9f3;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 39, 60, 0.06);
  min-width: 0;
  overflow: hidden;
}

.loyalty-table-card,
.loyalty-config-card,
.loyalty-premium-card {
  padding: 18px;
}

.loyalty-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f6;
}

.loyalty-card-head.compact {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

.loyalty-card-head h4 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.03em;
  color: #1f2740;
}

.loyalty-card-head p {
  margin: 6px 0 0;
  color: #7a849c;
  font-size: 13px;
  line-height: 1.5;
}

.loyalty-inline-note {
  max-width: 290px;
  color: #5f6c87;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 18px;
  border: 1px dashed #d4dcee;
  background:
    linear-gradient(180deg, #fbfcff, #f4f7fd);
  padding: 12px 14px;
  align-self: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.loyalty-inline-note strong {
  color: #44516d;
}

.loyalty-inline-note.emphasis {
  max-width: none;
  background: #fff6ee;
  border-style: solid;
  border-color: #ffd4b3;
  color: #b35b12;
  font-weight: 700;
}

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

.member-pagination {
  margin-top: 14px;
  border-top: 1px solid #edf1f6;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.member-pagination small {
  color: #7a849c;
  font-size: 12px;
  font-weight: 600;
}

.member-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-page-arrow {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.member-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-page-number-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dce4f2;
  border-radius: 10px;
  background: #fff;
  color: #5d6a85;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.member-page-number-btn:hover:not(:disabled) {
  border-color: #c8d5ee;
  background: #f6f9ff;
}

.member-page-number-btn.active {
  border-color: #cddcf8;
  background: #eaf1ff;
  color: #2f4d86;
}

.member-page-number-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.loyalty-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 780px;
  table-layout: fixed;
}

.loyalty-table col.loyalty-col-name {
  width: 20%;
}

.loyalty-table col.loyalty-col-phone {
  width: 16%;
}

.loyalty-table col.loyalty-col-transaction {
  width: 18%;
}

.loyalty-table col.loyalty-col-point {
  width: 9%;
}

.loyalty-table col.loyalty-col-tier {
  width: 10%;
}

.loyalty-table col.loyalty-col-status {
  width: 12%;
}

.loyalty-table col.loyalty-col-action {
  width: 15%;
}

.loyalty-table thead th {
  padding: 16px;
  text-align: left;
  vertical-align: middle;
  color: #7a849e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.loyalty-table tbody tr {
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.loyalty-table tbody tr.active {
  background: linear-gradient(90deg, #fff6ec, #fff);
}

.loyalty-table tbody td {
  padding: 15px 16px;
  border-top: 1px solid #edf1f6;
  vertical-align: top;
  font-size: 14px;
  color: #2c3448;
}

.loyalty-table tbody td:nth-child(4),
.loyalty-table tbody td:nth-child(5),
.loyalty-table tbody td:nth-child(6),
.loyalty-table tbody td:nth-child(7) {
  text-align: center;
}

.loyalty-table tbody td:nth-child(3) {
  white-space: nowrap;
}

.loyalty-table tbody td:nth-child(7) {
  padding-left: 10px;
  padding-right: 10px;
}

.loyalty-member-cell {
  display: grid;
  gap: 3px;
}

.loyalty-member-cell strong {
  font-size: 14px;
}

.loyalty-member-cell small {
  color: #7a859f;
  font-size: 11px;
  letter-spacing: .03em;
}

.loyalty-table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.loyalty-table-btn {
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.loyalty-table-btn.icon-only {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
}

.loyalty-table-btn.icon-only .btn-icon-svg {
  width: 15px;
  height: 15px;
}

.loyalty-table-btn.action-detail {
  color: #355e9a;
  background: #f4f8ff;
  border-color: #d7e4fb;
}

.loyalty-table-btn.action-edit {
  color: #55627f;
  background: #f5f7fb;
  border-color: #dbe2ef;
}

.loyalty-table-btn.icon-only:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(42, 54, 82, 0.1);
}

.loyalty-table-btn.danger {
  border-color: #ffd5d5;
  color: #cb3a3a;
  background: #fff6f6;
}

.loyalty-tier-badge,
.loyalty-status-badge,
.loyalty-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.loyalty-tier-badge i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
}

.loyalty-tier-badge.bronze {
  color: #8d5a2d;
  background: #f6e6d6;
}

.loyalty-tier-badge.bronze i {
  background: #bb7d48;
  color: #fff;
}

.loyalty-tier-badge.silver {
  color: #5f6677;
  background: #edf1f5;
}

.loyalty-tier-badge.silver i {
  background: #8891a5;
  color: #fff;
}

.loyalty-tier-badge.gold {
  color: #8a6710;
  background: #fff3c7;
}

.loyalty-tier-badge.gold i {
  background: #e2b428;
  color: #fff;
}

.loyalty-status-badge.active {
  color: #1f8c57;
  background: #ecfbf2;
}

.loyalty-status-badge.inactive {
  color: #8b5264;
  background: #fff1f5;
}

.loyalty-tag {
  color: #57627e;
  background: #f3f6fb;
}

.loyalty-detail-shell {
  min-height: 100%;
}

.loyalty-detail-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.loyalty-workspace-card {
  gap: 14px;
}

.loyalty-empty-state,
.loyalty-empty-mini {
  border-radius: 22px;
  border: 1px dashed #d8deeb;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
  padding: 28px 22px;
  color: #68748c;
}

.loyalty-empty-state strong,
.loyalty-empty-mini {
  color: #2c354a;
}

.loyalty-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: start;
}

.loyalty-detail-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loyalty-detail-name-row h4 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.loyalty-detail-top p {
  margin: 6px 0 0;
  color: #6a7691;
  font-size: 12px;
}

.loyalty-member-tags {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.loyalty-qr-card {
  border-radius: 16px;
  border: 1px solid #eceff5;
  background: linear-gradient(180deg, #fafbff, #f3f6fb);
  padding: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.loyalty-qr-card small {
  color: #707b94;
  font-size: 10px;
  line-height: 1.35;
}

.loyalty-qr-grid {
  width: 92px;
  height: 92px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf1f6;
}

.loyalty-qr-grid span {
  border-radius: 2px;
  background: #f0f3f8;
}

.loyalty-qr-grid span.filled {
  background: #202636;
}

.loyalty-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loyalty-detail-metrics article,
.loyalty-progress-card,
.loyalty-action-card,
.loyalty-history-card {
  border-radius: 18px;
  border: 1px solid #eceff5;
  background: #fcfdff;
  min-width: 0;
  overflow: hidden;
}

.loyalty-detail-metrics article {
  min-width: 0;
  min-height: 88px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  align-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.loyalty-detail-metrics small {
  color: #78839f;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
}

.loyalty-detail-metrics strong {
  display: block;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #222a3e;
  line-height: 1.2;
  letter-spacing: -.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-progress-card,
.loyalty-action-card,
.loyalty-history-card {
  padding: 14px;
}

.loyalty-progress-track {
  height: 12px;
  border-radius: 999px;
  background: #eef2f8;
  overflow: hidden;
}

.loyalty-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a00, #ffb347);
}

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

.loyalty-inline-form {
  display: grid;
  gap: 14px;
}

.loyalty-inline-form.compact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.loyalty-action-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 100%;
  min-width: 0;
}

.loyalty-action-card .date-field span {
  color: #4d5873;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.loyalty-action-card .date-field input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
}

.loyalty-earn-card {
  background:
    linear-gradient(180deg, #ffffff, #fbfcff);
}

.loyalty-redeem-card {
  background:
    linear-gradient(180deg, #fffef9, #fffaf0);
}

.loyalty-primary-action,
.loyalty-secondary-action {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.loyalty-primary-action {
  margin-top: 2px;
}

.loyalty-secondary-action {
  margin-top: 2px;
}

.loyalty-reward-grid {
  display: grid;
  gap: 12px;
}

.loyalty-reward-item {
  text-align: left;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid #ecd8a5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 223, 0.9)),
    radial-gradient(120% 140% at 100% 0%, rgba(255, 207, 92, 0.18), transparent 55%);
  padding: 16px 16px 14px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.loyalty-reward-item:hover {
  transform: translateY(-1px);
  border-color: #ecb74d;
  box-shadow: 0 14px 24px rgba(236, 177, 48, 0.14);
}

.loyalty-reward-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.loyalty-reward-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: #3e3110;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-reward-item span {
  color: #72684d;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-reward-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 183, 51, 0.14);
  color: #bc7a12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.loyalty-inline-note.emphasis {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-action-card .loyalty-card-head h4 {
  font-size: 17px;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-action-card .loyalty-card-head p {
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.loyalty-history-list {
  display: grid;
  gap: 10px;
}

.loyalty-history-item {
  border-radius: 16px;
  border: 1px solid #edf1f6;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.loyalty-history-item strong {
  font-size: 14px;
  color: #293249;
}

.loyalty-history-item p,
.loyalty-history-item small,
.loyalty-history-side span {
  margin: 4px 0 0;
  color: #6f7a94;
  font-size: 12px;
  line-height: 1.45;
}

.loyalty-history-side {
  text-align: right;
}

.loyalty-history-side strong.plus {
  color: #178350;
}

.loyalty-history-side strong.minus {
  color: #c23d3d;
}

.loyalty-member-address {
  margin-top: 12px;
  border-top: 1px solid #edf1f6;
  padding-top: 12px;
}

.loyalty-member-address strong {
  font-size: 13px;
  color: #394359;
}

.loyalty-member-address p {
  margin: 6px 0 0;
  color: #6c7892;
  font-size: 13px;
  line-height: 1.55;
}

.loyalty-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  scroll-margin-top: 108px;
}

.loyalty-settings-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
  min-width: 0;
}

.loyalty-settings-form > .date-field {
  grid-column: span 2;
  min-width: 0;
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 20px;
  border: 1px solid #e9edf5;
  background:
    linear-gradient(180deg, #fbfcff, #f7f9fd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.loyalty-settings-form > .date-field span {
  display: block;
  margin-bottom: 10px;
  color: #4c5873;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.loyalty-settings-form > .date-field input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 50px;
  border-radius: 16px;
  border-color: #d6ddeb;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: #273048;
}

.loyalty-toggle-stack {
  grid-column: span 2;
  display: grid;
  min-width: 0;
  width: 100%;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #ebeef5;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 122, 0, 0.09), transparent 50%),
    linear-gradient(180deg, #fffdf9, #f9fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.loyalty-toggle-stack .setting-check {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596683;
  font-weight: 600;
  line-height: 1.45;
}

.loyalty-toggle-stack .setting-check input {
  margin-top: 2px;
}

.loyalty-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
}

.loyalty-settings-actions .solid-btn {
  max-width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
}

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

.loyalty-feature-list div {
  border-radius: 16px;
  border: 1px solid #eef1f6;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.loyalty-feature-list strong {
  font-size: 14px;
  color: #29344a;
}

.loyalty-feature-list span {
  color: #68748e;
  font-size: 13px;
  line-height: 1.5;
}

.loyalty-settings-modal {
  z-index: 86;
  background: rgba(12, 18, 30, 0.52);
  backdrop-filter: blur(10px);
}

.loyalty-settings-dialog {
  width: min(1160px, calc(100vw - 34px));
  max-height: min(92vh, 960px);
  border-radius: 26px;
  border: 1px solid #dbe4f3;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98) 55%, rgba(240, 245, 255, 0.97)),
    linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow:
    0 34px 70px rgba(11, 23, 43, 0.28),
    0 10px 28px rgba(33, 52, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.loyalty-settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e4ebf6;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(255, 122, 0, 0.1), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.loyalty-settings-modal-title-wrap {
  min-width: 0;
}

.loyalty-settings-modal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d8e2f2;
  background: rgba(255, 255, 255, 0.88);
  color: #5d6f8e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.loyalty-settings-modal-title-wrap h3 {
  margin: 12px 0 0;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #1c2741;
}

.loyalty-settings-modal-title-wrap p {
  margin: 10px 0 0;
  max-width: 64ch;
  color: #647391;
  font-size: 15px;
  line-height: 1.6;
}

.loyalty-settings-modal .modal-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border-color: #d6e0f0;
  background: linear-gradient(180deg, #ffffff, #f2f6fd);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.loyalty-settings-modal-body {
  padding: 22px 24px 18px;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(255, 122, 0, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 255, 0.96));
}

.loyalty-settings-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, .86fr);
  gap: 22px;
  align-items: start;
}

.loyalty-settings-modal-main,
.loyalty-settings-modal-side {
  display: grid;
  gap: 18px;
}

.loyalty-settings-modal-intro,
.loyalty-settings-preview-card,
.loyalty-settings-feature-card {
  border-radius: 22px;
  border: 1px solid #e4ebf6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 30px rgba(34, 49, 79, 0.08);
}

.loyalty-settings-modal-intro {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.loyalty-settings-modal-intro::after {
  content: "";
  position: absolute;
  inset: auto -30px -36px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.loyalty-settings-modal-intro strong {
  display: block;
  color: #25314a;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.loyalty-settings-modal-intro p {
  margin: 8px 0 0;
  color: #66758f;
  font-size: 13px;
  line-height: 1.65;
  max-width: 60ch;
}

.loyalty-settings-modal-form {
  gap: 18px 20px;
}

.loyalty-settings-modal-form > .date-field {
  border-radius: 22px;
  border-color: #e2e9f5;
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96) 58%),
    linear-gradient(180deg, #fbfcff, #f6f8fd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(35, 50, 82, 0.06);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.loyalty-settings-modal-form > .date-field:focus-within {
  border-color: #c8daf6;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 28px rgba(39, 59, 96, 0.1),
    0 0 0 3px rgba(255, 122, 0, 0.08);
}

.loyalty-settings-modal-form > .date-field span {
  color: #4d5a75;
  font-size: 12px;
  letter-spacing: .01em;
}

.loyalty-settings-modal-form > .date-field input {
  height: 54px;
  border-radius: 18px;
  border-color: #d9e1ef;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #24304a;
}

.loyalty-toggle-panel {
  border-radius: 22px;
  border-color: #e3e9f4;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 44%),
    linear-gradient(180deg, #fffdfa, #f8fbff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 28px rgba(41, 57, 88, 0.06);
}

.loyalty-toggle-panel .setting-check {
  min-height: 54px;
}

.loyalty-settings-side-head small {
  display: inline-block;
  color: #7281a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.loyalty-settings-side-head strong {
  display: block;
  margin-top: 8px;
  color: #24314b;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.loyalty-settings-side-head p {
  margin: 8px 0 0;
  color: #6b7892;
  font-size: 13px;
  line-height: 1.6;
}

.loyalty-settings-preview-card,
.loyalty-settings-feature-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.loyalty-settings-preview-grid {
  display: grid;
  gap: 12px;
}

.loyalty-settings-preview-stat {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e4eaf6;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  display: grid;
  gap: 6px;
}

.loyalty-settings-preview-stat span {
  color: #76839f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.loyalty-settings-preview-stat strong {
  color: #24314a;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.loyalty-settings-preview-stat.accent-orange {
  background: linear-gradient(180deg, #fffaf4, #fff2e6);
  border-color: #ffd5b0;
}

.loyalty-settings-preview-stat.accent-blue {
  background: linear-gradient(180deg, #f6fbff, #edf6ff);
  border-color: #cfe4ff;
}

.loyalty-settings-preview-stat.accent-slate {
  background: linear-gradient(180deg, #fbfcff, #f4f7fc);
}

.loyalty-settings-tier-preview {
  display: grid;
  gap: 10px;
}

.loyalty-settings-tier-preview div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7edf7;
  background: linear-gradient(180deg, #ffffff, #f8fafe);
  display: grid;
  gap: 6px;
}

.loyalty-settings-tier-preview span {
  color: #76839f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.loyalty-settings-tier-preview strong {
  color: #27344f;
  font-size: 15px;
  line-height: 1.5;
}

.loyalty-settings-channel-list {
  display: grid;
  gap: 10px;
}

.loyalty-settings-channel {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #e5ebf6;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.loyalty-settings-channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: #c0cadc;
  box-shadow: 0 0 0 6px rgba(192, 202, 220, 0.18);
  flex: 0 0 auto;
}

.loyalty-settings-channel strong {
  display: block;
  color: #23304a;
  font-size: 14px;
}

.loyalty-settings-channel small {
  display: block;
  margin-top: 4px;
  color: #6a7792;
  font-size: 12px;
  line-height: 1.55;
}

.loyalty-settings-channel.active {
  border-color: #ffd0aa;
  background: linear-gradient(180deg, #fffaf4, #fff2e6);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.08);
}

.loyalty-settings-channel.active .loyalty-settings-channel-dot {
  background: #ff7a00;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.18);
}

.loyalty-settings-modal-actions {
  padding: 16px 24px 22px;
  border-top: 1px solid #e5ebf6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), #f7faff);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.loyalty-settings-modal-actions .ghost-btn,
.loyalty-settings-modal-actions .solid-btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.member-form-dialog {
  max-width: 620px;
}

.member-detail-dialog {
  width: min(980px, calc(100vw - 30px));
  max-height: min(84vh, 880px);
  border-radius: 22px;
  border: 1px solid #dce3f0;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow:
    0 30px 60px rgba(18, 29, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.member-detail-modal-head {
  align-items: flex-start;
}

.member-detail-modal-head p {
  margin: 4px 0 0;
  color: #6f7b95;
  font-size: 12px;
  line-height: 1.45;
}

.member-detail-modal-body {
  padding: 0 16px 4px;
  overflow: auto;
}

.member-detail-modal-actions {
  padding: 0 16px 14px;
  border-top: 1px solid #ebf0f7;
}

.member-detail-modal-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 10px 0 0;
}

.member-detail-modal-card .loyalty-detail-top,
.member-detail-modal-card .loyalty-detail-metrics,
.member-detail-modal-card .loyalty-progress-card,
.member-detail-modal-card .loyalty-history-card {
  margin-bottom: 12px;
}

.member-detail-modal-card .loyalty-history-card {
  margin-bottom: 0;
}

.modal-history-card {
  background: #ffffff;
}

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

.member-form-meta {
  grid-column: 1 / -1;
  border-radius: 16px;
  border: 1px dashed #d9deeb;
  background: #f8fafe;
  padding: 12px 14px;
  color: #67728d;
  font-size: 13px;
}

.member-form-address {
  grid-column: 1 / -1;
}

@media (max-width: 1160px) {
  .loyalty-summary,
  .loyalty-detail-metrics,
  .loyalty-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loyalty-settings-modal-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-main-grid,
  .loyalty-settings-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-settings-form > .date-field,
  .loyalty-toggle-stack {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .loyalty-head,
  .loyalty-card-head,
  .loyalty-settings-actions,
  .member-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .member-pagination-actions {
    justify-content: flex-start;
  }

  .loyalty-summary,
  .loyalty-toolbar,
  .loyalty-detail-grid,
  .loyalty-detail-metrics,
  .loyalty-settings-form,
  .member-form {
    grid-template-columns: 1fr;
  }

  .loyalty-settings-actions {
    justify-content: stretch;
  }

  .loyalty-settings-actions .solid-btn {
    width: 100%;
  }

  .loyalty-settings-dialog {
    width: min(calc(100vw - 18px), 1160px);
    max-height: min(94vh, 960px);
    border-radius: 22px;
  }

  .loyalty-settings-modal-head {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px 16px;
  }

  .loyalty-settings-modal-title-wrap h3 {
    font-size: 30px;
  }

  .loyalty-settings-modal-body,
  .loyalty-settings-modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .loyalty-detail-top {
    grid-template-columns: 1fr;
  }

  .loyalty-inline-note {
    max-width: none;
  }

  .loyalty-action-card {
    padding: 14px;
  }

  .loyalty-primary-action,
  .loyalty-secondary-action {
    min-height: 46px;
    font-size: 12px;
  }

  .member-detail-dialog {
    width: min(100vw - 20px, 980px);
    max-height: min(92vh, 940px);
  }

  .member-detail-modal-body,
  .member-detail-modal-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  .loyalty-head-actions,
  .loyalty-table-actions {
    align-items: stretch;
  }

  .loyalty-head-actions {
    flex-direction: column;
  }

  .loyalty-table-actions {
    flex-direction: row;
  }

  .loyalty-table-btn,
  .loyalty-head-actions .ghost-btn,
  .loyalty-head-actions .solid-btn {
    width: 100%;
  }

  .loyalty-table-btn.icon-only {
    width: 36px;
    min-width: 36px;
  }

  .loyalty-settings-modal-actions {
    flex-direction: column-reverse;
  }

  .loyalty-settings-modal-actions .ghost-btn,
  .loyalty-settings-modal-actions .solid-btn {
    width: 100%;
  }

  .loyalty-history-item {
    flex-direction: column;
  }

  .loyalty-history-side {
    text-align: left;
  }
}

@media (max-width: 1160px) {
  .app {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand span,
  .nav-item {
    font-size: 0;
  }

  .brand .brand-logo {
    height: 58px;
  }

  .brand {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .nav-item i {
    display: none;
  }

  .submenu {
    display: none;
  }

  .topbar {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .search-lg {
    width: 100%; 
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-layout {
    grid-template-columns: 1fr;
  }

  .pos-cart {
    max-height: none;
    overflow: visible;
  }

  .pos-products {
    max-height: none;
  }

  .product-grid {
    overflow: visible;
    padding-right: 0;
  }

  .products-panel .product-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .refund-kpi-grid,
  .refund-toolbar,
  .refund-workspace,
  .refund-reference-grid,
  .refund-refund-grid {
    grid-template-columns: 1fr;
  }

  .refund-header-actions {
    justify-content: flex-start;
  }

  .refund-summary-sticky {
    position: static;
  }

  .product-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-head {
    flex-direction: column;
    align-items: stretch;
  }

  .report-period-controls {
    margin-left: 0;
  }

  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-value-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-feature-board {
    grid-template-columns: 1fr;
  }

  .help-hero {
    grid-template-columns: 1fr;
  }

  .help-guide-board {
    grid-template-columns: 1fr;
  }

  .report-chart-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-col-span-2 {
    grid-column: span 1;
  }

  .settings-toggle-list-3,
  .settings-toggle-list-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-transfer-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .stock-transfer-hero-actions {
    justify-content: flex-start;
  }

  .stock-transfer-cta {
    min-width: 0;
  }

  .warehouse-form-grid {
    grid-template-columns: 1fr;
  }

  .stock-out-panel .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stock-out-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-in-toolbar,
  .stock-in-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-in-bottom-grid {
    grid-template-columns: 1fr;
  }

  .stock-in-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-transfer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-transfer-toolbar,
  .stock-transfer-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-transfer-layout,
  .stock-transfer-detail-warehouse {
    grid-template-columns: 1fr;
  }

  .stock-transfer-sidebar {
    position: static;
  }

  .stock-transfer-toolbar {
    padding: 14px;
  }

  .stock-transfer-grid-span-2 {
    grid-column: span 2;
  }

  .stock-opname-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-opname-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .app {
    width: calc(100vw - 16px);
    margin: 8px auto;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    justify-content: flex-start;
  }

  .brand span,
  .nav-item {
    font-size: 15px;
  }

  .nav.primary,
  .nav.secondary {
    grid-template-columns: 1fr;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 11px;
  }

  .nav-item i {
    display: inline;
  }

  .submenu {
    display: grid;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dashboard-hero h3 {
    font-size: 30px;
  }

  .date-popover {
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 40px));
  }

  .cashier-toolbar {
    width: 100%;
  }

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

  .main-content {
    overflow: visible;
  }

  .panel-table-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-sm {
    width: 100%;
  }

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

  .topbar-clock {
    min-width: 198px;
    height: 46px;
    border-radius: 14px;
    padding: 5px 11px 6px;
  }

  .topbar-clock strong {
    font-size: 15px;
  }

  .topbar-clock small {
    font-size: 9px;
  }

  .profile {
    min-height: 46px;
    padding: 6px 10px;
    max-width: 290px;
    border-radius: 16px;
    gap: 8px;
  }

  .profile img {
    width: 36px;
    height: 36px;
  }

  .profile strong {
    font-size: 14px;
  }

  .profile small {
    font-size: 10px;
  }

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

  table {
    min-width: 680px;
  }

  .product-master-table {
    min-width: 0;
    table-layout: fixed;
  }

  #submitImportBtn {
    width: 100%;
    min-width: 0;
  }

  .products-panel .product-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-health-summary {
    grid-template-columns: 1fr;
  }

  .product-master-search {
    width: 100%;
  }

  .report-period-controls {
    width: 100%;
  }

  .report-select,
  .report-input,
  #reportApplyBtn {
    width: 100%;
    min-width: 0;
  }

  .report-range-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    width: 100%;
  }

  .settings-actions .ghost-btn,
  .settings-actions .solid-btn {
    width: 100%;
  }

  .settings-toggle-list-2,
  .settings-toggle-list-3,
  .settings-toggle-list-4 {
    grid-template-columns: 1fr;
  }

  .warehouse-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .warehouse-form-actions .ghost-btn,
  .warehouse-form-actions .solid-btn {
    width: 100%;
    min-width: 0;
  }

  .stock-out-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .stock-out-search {
    width: 100%;
  }

  .table-icon-btn {
    width: 32px;
    height: 32px;
  }

  .stock-in-toolbar,
  .stock-in-form-grid {
    grid-template-columns: 1fr;
  }

  .stock-in-summary {
    grid-template-columns: 1fr;
  }

  .stock-in-grid-span-2 {
    grid-column: span 1;
  }

  .stock-transfer-summary,
  .stock-transfer-toolbar,
  .stock-transfer-form-grid {
    grid-template-columns: 1fr;
  }

  .stock-transfer-panel {
    padding: 12px;
  }

  .stock-transfer-hero {
    padding: 18px 16px;
  }

  .stock-transfer-panel .panel-head h3 {
    font-size: 26px;
  }

  .stock-transfer-grid-span-2 {
    grid-column: span 1;
  }

  .stock-transfer-product-bar {
    grid-template-columns: 1fr;
  }

  .report-chart-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .stock-opname-actions .ghost-btn,
  .stock-opname-actions .solid-btn {
    width: 100%;
  }

  .stock-opname-summary {
    grid-template-columns: 1fr;
  }

  .defective-summary {
    grid-template-columns: 1fr;
  }

  .category-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .defective-form-actions .ghost-btn,
  .defective-form-actions .solid-btn {
    width: 100%;
  }

  .stock-opname-search {
    width: 100%;
  }

  .stock-opname-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .update-products-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .update-products-actions .ghost-btn,
  .update-products-actions .solid-btn {
    width: 100%;
    min-width: 0;
  }

  .map-location-summary {
    grid-template-columns: 1fr;
  }

  .report-period-controls {
    padding: 10px;
  }

  .report-range-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .report-range-wrap .report-input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .refund-form-actions {
    flex-direction: column;
  }

  .products-panel .product-actions {
    grid-template-columns: 1fr;
  }

  .products-panel .product-action-btn,
  .products-panel .export-btn {
    height: 42px;
    font-size: 13px;
  }
}

.voucher-setting-field {
  display: grid;
  gap: 10px;
}

.voucher-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.voucher-input-row input {
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
}

.affiliate-setting-field .voucher-input-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.affiliate-setting-field .voucher-inline-btn {
  width: 100%;
}

.voucher-inline-btn {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.voucher-inline-btn.danger {
  border-color: #f2d3d3;
  color: #c54444;
  background: linear-gradient(180deg, #fffaf9, #fff3f1);
}

.voucher-inline-feedback {
  border-radius: 16px;
  border: 1px solid #dde4f0;
  background: linear-gradient(180deg, #fbfcff, #f5f8fd);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.voucher-inline-feedback strong {
  font-size: 13px;
  color: #26314a;
}

.voucher-inline-feedback span {
  font-size: 12px;
  color: #67728c;
  line-height: 1.5;
}

.voucher-inline-feedback.ok {
  border-color: #bfe3cc;
  background: linear-gradient(180deg, #f4fff7, #ebfaef);
}

.voucher-inline-feedback.ok strong {
  color: #187146;
}

.voucher-inline-feedback.warn {
  border-color: #f2d4c2;
  background: linear-gradient(180deg, #fff9f4, #fff3ea);
}

.voucher-inline-feedback.warn strong {
  color: #b85b1d;
}

.voucher-panel {
  display: grid;
  gap: 18px;
}

.voucher-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.voucher-title-wrap {
  max-width: 760px;
}

.voucher-title-wrap h3 {
  margin: 0;
}

.voucher-title-wrap p {
  margin: 8px 0 0;
  color: #66728b;
  font-size: 14px;
  line-height: 1.6;
}

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

.voucher-head-actions .ghost-btn,
.voucher-head-actions .solid-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--voucher-head-btn-border, rgba(148, 163, 184, 0.28));
  background: var(--voucher-head-btn-bg, rgb(248, 250, 252));
  color: var(--voucher-head-btn-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--voucher-head-btn-shadow, rgba(15, 23, 42, 0.06));
  font-weight: 400;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.voucher-head-actions .ghost-btn {
  border-width: 1px;
}

.voucher-head-actions .solid-btn {
  border-width: 1px;
}

.voucher-head-actions .ghost-btn:focus-visible,
.voucher-head-actions .solid-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

@media (hover: hover) {
  .voucher-head-actions .ghost-btn:hover,
  .voucher-head-actions .solid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--voucher-head-btn-hover-shadow, rgba(15, 23, 42, 0.12));
  }

  .voucher-head-actions .solid-btn:hover {
    filter: none;
  }
}

.voucher-head-actions #voucherRefreshBtn {
  --voucher-head-btn-bg: rgb(238, 246, 255);
  --voucher-head-btn-text: rgb(37, 99, 235);
  --voucher-head-btn-border: rgba(59, 130, 246, 0.28);
  --voucher-head-btn-shadow: rgba(59, 130, 246, 0.12);
  --voucher-head-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.voucher-head-actions #addVoucherBtn {
  --voucher-head-btn-bg: rgb(255, 245, 235);
  --voucher-head-btn-text: rgb(234, 88, 12);
  --voucher-head-btn-border: rgba(251, 146, 60, 0.34);
  --voucher-head-btn-shadow: rgba(251, 146, 60, 0.12);
  --voucher-head-btn-hover-shadow: rgba(251, 146, 60, 0.2);
}

.voucher-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.voucher-stat-card {
  border-radius: 20px;
  border: 1px solid #e4e8f2;
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(255, 255, 255, 0.96), rgba(248, 250, 254, 0.95) 48%, rgba(244, 247, 252, 0.96)),
    linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow: 0 14px 28px rgba(37, 48, 72, 0.07);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.voucher-stat-card small {
  color: #7a849d;
  font: 700 11px/1.2 inherit;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.voucher-stat-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #1f2740;
}

.voucher-stat-card span {
  color: #61708a;
  font-size: 13px;
  line-height: 1.5;
}

.voucher-stat-card.accent-active {
  border-color: #cde6d4;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(37, 191, 105, 0.18), transparent 48%),
    linear-gradient(180deg, #f5fff8, #eefaf2);
}

.voucher-stat-card.accent-usage {
  border-color: #ffd3ad;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(255, 122, 0, 0.18), transparent 48%),
    linear-gradient(180deg, #fff8ef, #fff2e7);
}

.voucher-stat-card.accent-upcoming {
  border-color: #dfd4ff;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(111, 91, 255, 0.16), transparent 48%),
    linear-gradient(180deg, #faf7ff, #f2edff);
}

.voucher-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, .42fr)) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid #e4e9f3;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.94) 48%, rgba(244, 247, 252, 0.95)),
    linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(32, 43, 67, 0.06);
}

.voucher-search {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid #d6d9e3;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.voucher-search svg {
  width: 17px;
  height: 17px;
  fill: #737888;
}

.voucher-search input {
  font: 500 14px/1 inherit;
  color: #2b3040;
}

.voucher-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.voucher-table-card,
.voucher-guide-card,
.voucher-detail-shell-card {
  border-radius: 24px;
  border: 1px solid #e4e8f2;
  background:
    radial-gradient(160% 180% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.94) 44%, rgba(244, 247, 252, 0.96)),
    linear-gradient(180deg, #ffffff, #f8fafd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 32px rgba(32, 43, 67, 0.07);
}

.voucher-table-card {
  padding: 18px;
}

.voucher-guide-card {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.voucher-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.voucher-card-head.compact {
  margin-bottom: 0;
}

.voucher-card-head h4 {
  margin: 0;
  font-size: 20px;
  color: #222c42;
}

.voucher-card-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #66728c;
}

.voucher-inline-note {
  max-width: 310px;
  border-radius: 16px;
  border: 1px solid #dce3f1;
  background: linear-gradient(180deg, #fbfcff, #f6f8fd);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #65718a;
}

.voucher-table-wrap {
  max-height: 580px;
}

.voucher-table {
  width: 100%;
  border-collapse: collapse;
}

.voucher-table thead th {
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6f7a93;
  border-bottom: 1px solid #e6eaf3;
  background: rgba(252, 253, 255, 0.88);
  position: sticky;
  top: 0;
  z-index: 2;
}

.voucher-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: top;
  color: #2c3449;
  font-size: 13px;
}

.voucher-name-cell,
.voucher-code-cell {
  display: grid;
  gap: 4px;
}

.voucher-name-cell strong,
.voucher-code-cell strong {
  font-size: 14px;
  color: #1f2940;
}

.voucher-name-cell small,
.voucher-code-cell small,
.voucher-validity-cell small {
  color: #6b7690;
  line-height: 1.5;
}

.voucher-value-cell {
  display: grid;
  gap: 3px;
}

.voucher-value-cell strong {
  color: #1e2840;
}

.voucher-value-cell small {
  color: #6d7892;
}

.voucher-quota-cell strong {
  display: block;
  font-size: 14px;
  color: #21304c;
}

.voucher-quota-cell small {
  color: #6d7892;
}

.voucher-table-actions {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 8px;
  justify-content: start;
  align-content: start;
}

.voucher-table-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.voucher-table-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.voucher-table-btn.toggle-on {
  color: #197049;
  border-color: #c6ead1;
  background: #ebfbf1;
}

.voucher-table-btn.toggle-off {
  color: #8a6a00;
  border-color: #eadc9f;
  background: #fff8dd;
}

.voucher-table-btn.danger {
  border-color: #f1d4d4;
  color: #c14545;
  background: linear-gradient(180deg, #fffafa, #fff2f2);
}

.voucher-type-badge,
.voucher-status-badge,
.voucher-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.voucher-type-badge.percent {
  color: #8d4b07;
  background: #fff2df;
  border-color: #ffd5aa;
}

.voucher-type-badge.nominal {
  color: #0d5e6d;
  background: #e8fbff;
  border-color: #bee8f0;
}

.voucher-status-badge.active {
  color: #197049;
  background: #ebfbf1;
  border-color: #c6ead1;
}

.voucher-status-badge.upcoming {
  color: #5b44a6;
  background: #f3efff;
  border-color: #ddd0ff;
}

.voucher-status-badge.expired {
  color: #b04545;
  background: #fff0f0;
  border-color: #f1cccc;
}

.voucher-status-badge.inactive {
  color: #586174;
  background: #eff2f7;
  border-color: #d6dce8;
}

.voucher-scope-badge {
  color: #3c4a67;
  background: #f3f6fb;
  border-color: #dde4f0;
}

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

.voucher-guide-list div {
  border-radius: 18px;
  border: 1px solid #e5e9f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.95));
  padding: 14px;
  display: grid;
  gap: 6px;
}

.voucher-guide-list strong {
  font-size: 14px;
  color: #232d43;
}

.voucher-guide-list span {
  color: #66728b;
  font-size: 13px;
  line-height: 1.6;
}

.voucher-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.voucher-form-dialog,
.voucher-detail-dialog {
  width: min(980px, calc(100vw - 36px));
}

.voucher-form-head,
.voucher-detail-head {
  align-items: flex-start;
}

.voucher-form-meta,
.voucher-detail-meta {
  margin: 6px 0 0;
  color: #69758f;
  font-size: 13px;
  line-height: 1.5;
}

.voucher-form {
  padding: 18px 22px 22px;
  display: grid;
  gap: 18px;
  max-height: min(80vh, 920px);
  overflow: auto;
}

.voucher-form-section {
  border-radius: 20px;
  border: 1px solid #e5e9f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.95));
  padding: 18px;
  display: grid;
  gap: 14px;
}

.voucher-form-section-head h4 {
  margin: 0;
  font-size: 17px;
  color: #202a40;
}

.voucher-form-section-head p {
  margin: 5px 0 0;
  color: #6a7690;
  font-size: 13px;
  line-height: 1.5;
}

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

.voucher-form-span-2 {
  grid-column: span 2;
}

.voucher-form .date-field textarea,
.voucher-form .date-field input,
.voucher-form .date-field select {
  width: 100%;
}

.voucher-form .date-field textarea {
  min-height: 108px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #d7deec;
  padding: 12px 14px;
  font: 500 15px/1.5 inherit;
  color: #232b3f;
  background: #fff;
}

.voucher-form .date-field textarea:focus {
  outline: 0;
  border-color: #ffb782;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

.voucher-form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.voucher-form-inline-btn {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
}

.voucher-form-hint {
  display: block;
  margin-top: 6px;
  color: #6b7690;
  font-size: 12px;
  line-height: 1.5;
}

.voucher-target-box {
  border-radius: 18px;
  border: 1px solid #dde4f0;
  background: linear-gradient(180deg, #fcfdff, #f6f8fc);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.voucher-target-box.hidden {
  display: none;
}

.voucher-target-head strong {
  display: block;
  color: #243048;
}

.voucher-target-head small {
  display: block;
  margin-top: 4px;
  color: #6c7791;
  line-height: 1.5;
}

.voucher-target-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow: auto;
}

.voucher-target-options .setting-check {
  margin: 0;
  border-radius: 14px;
  border: 1px solid #e3e8f2;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
  min-height: 56px;
  align-items: flex-start;
}

.voucher-target-options .setting-check span {
  display: grid;
  gap: 3px;
}

.voucher-target-options .setting-check small {
  color: #72809a;
  font-size: 11px;
}

.voucher-form-preview {
  border-radius: 16px;
  border: 1px solid #dce4f1;
  background: linear-gradient(180deg, #fbfcff, #f5f8fd);
  padding: 12px 14px;
  color: #2f3a56;
  font-size: 13px;
  line-height: 1.6;
}

.voucher-form-actions {
  padding: 0 22px 22px;
}

.voucher-detail-body {
  padding: 18px 22px 12px;
  max-height: min(72vh, 780px);
  overflow: auto;
}

.voucher-detail-content {
  display: grid;
  gap: 18px;
}

.voucher-detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.voucher-detail-stat {
  border-radius: 18px;
  border: 1px solid #e3e8f2;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.voucher-detail-stat small {
  color: #748099;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 700;
}

.voucher-detail-stat strong {
  color: #202b42;
  font-size: 18px;
}

.voucher-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
}

.voucher-detail-card {
  border-radius: 20px;
  border: 1px solid #e4e9f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.95));
  padding: 18px;
  display: grid;
  gap: 14px;
}

.voucher-detail-card h4 {
  margin: 0;
  font-size: 18px;
  color: #232d43;
}

.voucher-detail-card p {
  margin: 0;
  color: #68748d;
  font-size: 13px;
  line-height: 1.6;
}

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

.voucher-detail-list div {
  display: grid;
  gap: 4px;
}

.voucher-detail-list strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7a849d;
}

.voucher-detail-list span {
  color: #243048;
  font-size: 14px;
  line-height: 1.6;
}

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

.voucher-usage-item {
  border-radius: 18px;
  border: 1px solid #e3e8f2;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voucher-usage-item strong {
  color: #202b42;
  font-size: 14px;
}

.voucher-usage-item p,
.voucher-usage-item small {
  margin: 4px 0 0;
  color: #6a7690;
  font-size: 12px;
  line-height: 1.6;
}

.voucher-usage-side {
  text-align: right;
  display: grid;
  gap: 4px;
}

.voucher-usage-side b {
  color: #ff6a00;
  font-size: 14px;
}

.voucher-empty-mini {
  border-radius: 18px;
  border: 1px dashed #d8deea;
  background: #fafbfd;
  padding: 18px;
  color: #748099;
  font-size: 13px;
  line-height: 1.6;
}

.cashback-setting-field {
  display: grid;
  gap: 10px;
}

.cashback-inline-feedback {
  border-radius: 16px;
  border: 1px solid #d4eadb;
  background: linear-gradient(180deg, #f7fff9, #eefaf1);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.cashback-inline-feedback strong {
  font-size: 13px;
  color: #1c6a46;
}

.cashback-inline-feedback span {
  font-size: 12px;
  color: #5e7a67;
  line-height: 1.5;
}

.cashback-inline-feedback.warn {
  border-color: #e3e7ef;
  background: linear-gradient(180deg, #fbfcff, #f5f8fd);
}

.cashback-inline-feedback.warn strong {
  color: #2f405d;
}

.cashback-panel {
  display: grid;
  gap: 18px;
}

.cashback-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cashback-title-wrap {
  max-width: 760px;
}

.cashback-title-wrap h3 {
  margin: 0;
}

.cashback-title-wrap p {
  margin: 8px 0 0;
  color: #66728b;
  font-size: 14px;
  line-height: 1.6;
}

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

.cashback-head-actions .ghost-btn,
.cashback-head-actions .solid-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--cashback-head-btn-border, rgba(148, 163, 184, 0.28));
  background: var(--cashback-head-btn-bg, rgb(248, 250, 252));
  color: var(--cashback-head-btn-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--cashback-head-btn-shadow, rgba(15, 23, 42, 0.06));
  font-weight: 400;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.cashback-head-actions .ghost-btn {
  border-width: 1px;
}

.cashback-head-actions .solid-btn {
  border-width: 1px;
}

.cashback-head-actions .ghost-btn:focus-visible,
.cashback-head-actions .solid-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

@media (hover: hover) {
  .cashback-head-actions .ghost-btn:hover,
  .cashback-head-actions .solid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--cashback-head-btn-hover-shadow, rgba(15, 23, 42, 0.12));
  }

  .cashback-head-actions .solid-btn:hover {
    filter: none;
  }
}

.cashback-head-actions #cashbackRefreshBtn {
  --cashback-head-btn-bg: rgb(238, 246, 255);
  --cashback-head-btn-text: rgb(37, 99, 235);
  --cashback-head-btn-border: rgba(59, 130, 246, 0.28);
  --cashback-head-btn-shadow: rgba(59, 130, 246, 0.12);
  --cashback-head-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.cashback-head-actions #addCashbackBtn {
  --cashback-head-btn-bg: rgb(255, 245, 235);
  --cashback-head-btn-text: rgb(234, 88, 12);
  --cashback-head-btn-border: rgba(251, 146, 60, 0.34);
  --cashback-head-btn-shadow: rgba(251, 146, 60, 0.12);
  --cashback-head-btn-hover-shadow: rgba(251, 146, 60, 0.2);
}

.cashback-primary-btn {
  border-color: #25a75d;
  background: linear-gradient(180deg, #29bf68, #1faa5a);
  box-shadow: 0 12px 22px rgba(34, 197, 94, 0.22);
}

.cashback-primary-btn:hover {
  box-shadow: 0 16px 28px rgba(34, 197, 94, 0.28);
}

.cashback-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cashback-stat-card {
  border-radius: 20px;
  border: 1px solid #e0e8e4;
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(255, 255, 255, 0.97), rgba(247, 251, 248, 0.95) 48%, rgba(242, 248, 244, 0.96)),
    linear-gradient(180deg, #ffffff, #f8fbf9);
  box-shadow: 0 14px 28px rgba(37, 48, 72, 0.07);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.cashback-stat-card small {
  color: #70846f;
  font: 700 11px/1.2 inherit;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cashback-stat-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #1d2d24;
}

.cashback-stat-card span {
  color: #61708a;
  font-size: 13px;
  line-height: 1.5;
}

.cashback-stat-card.accent-active {
  border-color: #c7e7d2;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(34, 197, 94, 0.2), transparent 48%),
    linear-gradient(180deg, #f5fff8, #eefaf2);
}

.cashback-stat-card.accent-wallet {
  border-color: #bee9d0;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 48%),
    linear-gradient(180deg, #f4fffb, #ebfaf4);
}

.cashback-stat-card.accent-usage {
  border-color: #ffd7b7;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(255, 122, 0, 0.14), transparent 48%),
    linear-gradient(180deg, #fff9f1, #fff2e8);
}

.cashback-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, .42fr)) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid #e4e9f3;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.94) 48%, rgba(244, 247, 252, 0.95)),
    linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(32, 43, 67, 0.06);
}

.cashback-search {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid #d6d9e3;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.cashback-search svg {
  width: 17px;
  height: 17px;
  fill: #737888;
}

.cashback-search input {
  font: 500 14px/1 inherit;
  color: #2b3040;
}

.cashback-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.cashback-table-card,
.cashback-guide-card {
  border-radius: 24px;
  border: 1px solid #e4e8f2;
  background:
    radial-gradient(160% 180% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.94) 44%, rgba(244, 247, 252, 0.96)),
    linear-gradient(180deg, #ffffff, #f8fafd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 32px rgba(32, 43, 67, 0.07);
}

.cashback-table-card {
  padding: 18px;
}

.cashback-guide-card {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.cashback-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cashback-card-head.compact {
  margin-bottom: 0;
}

.cashback-card-head h4 {
  margin: 0;
  font-size: 20px;
  color: #223227;
}

.cashback-card-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #66728c;
}

.cashback-inline-note {
  max-width: 310px;
  border-radius: 16px;
  border: 1px solid #dbe8df;
  background: linear-gradient(180deg, #fbfefc, #f5faf6);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #5f7068;
}

.cashback-table-wrap {
  max-height: 580px;
}

.cashback-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 4px;
  flex-wrap: wrap;
}

.cashback-pagination p {
  margin: 0;
  font-size: 13px;
  color: #66728c;
}

.cashback-pagination-actions {
  display: flex;
  gap: 10px;
}

.cashback-page-btn {
  min-width: 110px;
  height: 38px;
  border-radius: 12px;
}

.cashback-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.cashback-table {
  width: 100%;
  border-collapse: collapse;
}

.cashback-table thead th {
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6c7d73;
  border-bottom: 1px solid #e5ede7;
  background: rgba(252, 254, 253, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cashback-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf2ee;
  vertical-align: top;
  color: #2c3449;
  font-size: 13px;
}

.cashback-name-cell,
.cashback-type-cell,
.cashback-period-cell {
  display: grid;
  gap: 4px;
}

.cashback-name-cell strong,
.cashback-type-cell strong,
.cashback-period-cell strong {
  font-size: 14px;
  color: #1f2940;
}

.cashback-name-cell small,
.cashback-type-cell small,
.cashback-period-cell small {
  color: #6b7690;
  line-height: 1.5;
}

.cashback-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cashback-table-btn {
  min-width: 0;
  padding: 0 12px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.cashback-table-btn.danger {
  border-color: #f1d4d4;
  color: #c14545;
  background: linear-gradient(180deg, #fffafa, #fff2f2);
}

.cashback-type-badge,
.cashback-status-badge,
.cashback-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cashback-type-badge.percent {
  color: #8d4b07;
  background: #fff2df;
  border-color: #ffd5aa;
}

.cashback-type-badge.nominal {
  color: #1b6b4b;
  background: #ecfbf2;
  border-color: #cdecd9;
}

.cashback-method-badge.instant {
  color: #9a4c0a;
  background: #fff4e6;
  border-color: #ffd7b2;
}

.cashback-method-badge.wallet {
  color: #197049;
  background: #ebfbf1;
  border-color: #c6ead1;
}

.cashback-status-badge.active {
  color: #197049;
  background: #ebfbf1;
  border-color: #c6ead1;
}

.cashback-status-badge.draft {
  color: #9a6a0d;
  background: #fff8e8;
  border-color: #ffe0aa;
}

.cashback-status-badge.inactive {
  color: #586174;
  background: #eff2f7;
  border-color: #d6dce8;
}

.cashback-guide-list,
.cashback-detail-list,
.cashback-usage-list {
  display: grid;
  gap: 12px;
}

.cashback-guide-list div {
  border-radius: 18px;
  border: 1px solid #e5ece7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.95));
  padding: 14px;
  display: grid;
  gap: 6px;
}

.cashback-guide-list strong {
  font-size: 14px;
  color: #223227;
}

.cashback-guide-list span {
  color: #66728b;
  font-size: 13px;
  line-height: 1.6;
}

.cashback-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cashback-form-dialog,
.cashback-detail-dialog {
  width: min(980px, calc(100vw - 36px));
}

.cashback-form-meta,
.cashback-detail-meta {
  margin: 6px 0 0;
  color: #69758f;
  font-size: 13px;
  line-height: 1.5;
}

.cashback-form {
  padding: 18px 22px 22px;
  display: grid;
  gap: 18px;
  max-height: min(80vh, 920px);
  overflow: auto;
}

.cashback-form-section,
.cashback-detail-card {
  border-radius: 20px;
  border: 1px solid #e5ece7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.95));
  padding: 18px;
  display: grid;
  gap: 14px;
}

.cashback-form-section-head h4,
.cashback-detail-card h4 {
  margin: 0;
  font-size: 17px;
  color: #203128;
}

.cashback-form-section-head p,
.cashback-detail-card p {
  margin: 5px 0 0;
  color: #6a7690;
  font-size: 13px;
  line-height: 1.5;
}

.cashback-form-grid,
.cashback-detail-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cashback-form .date-field textarea,
.cashback-form .date-field input,
.cashback-form .date-field select {
  width: 100%;
}

.cashback-form .date-field textarea {
  min-height: 108px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #d7deec;
  padding: 12px 14px;
  font: 500 15px/1.5 inherit;
  color: #232b3f;
  background: #fff;
}

.cashback-form .date-field textarea:focus {
  outline: 0;
  border-color: #8fd8aa;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.cashback-form-span-2 {
  grid-column: span 2;
}

.cashback-target-box {
  border-radius: 18px;
  border: 1px solid #dde8e0;
  background: linear-gradient(180deg, #fcfefd, #f6faf7);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.cashback-target-box.hidden {
  display: none;
}

.cashback-target-head strong {
  display: block;
  color: #243048;
}

.cashback-target-head small {
  display: block;
  margin-top: 4px;
  color: #6c7791;
  line-height: 1.5;
}

.cashback-target-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow: auto;
}

.cashback-target-options .setting-check {
  margin: 0;
  border-radius: 14px;
  border: 1px solid #e3ebe5;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  min-height: 56px;
  align-items: flex-start;
}

.cashback-target-options .setting-check span {
  display: grid;
  gap: 3px;
}

.cashback-target-options .setting-check small {
  color: #72809a;
  font-size: 11px;
}

.cashback-form-preview {
  border-radius: 16px;
  border: 1px solid #d7e8de;
  background: linear-gradient(180deg, #f8fffa, #f0faf3);
  padding: 12px 14px;
  color: #2f4c3b;
  font-size: 13px;
  line-height: 1.6;
}

.cashback-form-actions {
  padding: 0 22px 22px;
}

.cashback-detail-body {
  padding: 18px 22px 12px;
  max-height: min(72vh, 780px);
  overflow: auto;
}

.cashback-detail-content {
  display: grid;
  gap: 18px;
}

.cashback-detail-stat {
  border-radius: 18px;
  border: 1px solid #e3ebe5;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.cashback-detail-stat small {
  color: #748099;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 700;
}

.cashback-detail-stat strong {
  color: #202b42;
  font-size: 18px;
}

.cashback-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
}

.cashback-detail-list div {
  display: grid;
  gap: 4px;
}

.cashback-detail-list strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7a849d;
}

.cashback-detail-list span {
  color: #243048;
  font-size: 14px;
  line-height: 1.6;
}

.cashback-usage-item {
  border-radius: 18px;
  border: 1px solid #e3ebe5;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cashback-usage-item strong {
  color: #202b42;
  font-size: 14px;
}

.cashback-usage-item p,
.cashback-usage-item small {
  margin: 4px 0 0;
  color: #6a7690;
  font-size: 12px;
  line-height: 1.6;
}

.cashback-usage-side {
  text-align: right;
  display: grid;
  gap: 4px;
}

.cashback-usage-side b {
  color: #1fa457;
  font-size: 14px;
}

.promo-bundle-panel {
  display: grid;
  gap: 20px;
}

.promo-bundle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.promo-bundle-title-wrap h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.promo-bundle-title-wrap p {
  margin: 8px 0 0;
  max-width: 860px;
  color: #67748f;
  line-height: 1.7;
}

.promo-bundle-head-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.promo-bundle-head-actions .ghost-btn,
.promo-bundle-head-actions .solid-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--promo-bundle-head-btn-border, rgba(148, 163, 184, 0.28));
  background: var(--promo-bundle-head-btn-bg, rgb(248, 250, 252));
  color: var(--promo-bundle-head-btn-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--promo-bundle-head-btn-shadow, rgba(15, 23, 42, 0.06));
  font-weight: 400;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.promo-bundle-head-actions .ghost-btn {
  border-width: 1px;
}

.promo-bundle-head-actions .solid-btn {
  border-width: 1px;
}

.promo-bundle-head-actions .ghost-btn:focus-visible,
.promo-bundle-head-actions .solid-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

@media (hover: hover) {
  .promo-bundle-head-actions .ghost-btn:hover,
  .promo-bundle-head-actions .solid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--promo-bundle-head-btn-hover-shadow, rgba(15, 23, 42, 0.12));
  }

  .promo-bundle-head-actions .solid-btn:hover {
    filter: none;
  }
}

.promo-bundle-head-actions #promoBundleRefreshBtn {
  --promo-bundle-head-btn-bg: rgb(238, 246, 255);
  --promo-bundle-head-btn-text: rgb(37, 99, 235);
  --promo-bundle-head-btn-border: rgba(59, 130, 246, 0.28);
  --promo-bundle-head-btn-shadow: rgba(59, 130, 246, 0.12);
  --promo-bundle-head-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.promo-bundle-head-actions #addPromoBundleBtn {
  --promo-bundle-head-btn-bg: rgb(255, 245, 235);
  --promo-bundle-head-btn-text: rgb(234, 88, 12);
  --promo-bundle-head-btn-border: rgba(251, 146, 60, 0.34);
  --promo-bundle-head-btn-shadow: rgba(251, 146, 60, 0.12);
  --promo-bundle-head-btn-hover-shadow: rgba(251, 146, 60, 0.2);
}

.promo-bundle-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.promo-bundle-stat-card {
  border-radius: 22px;
  border: 1px solid #e6e9f1;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.promo-bundle-stat-card small {
  color: #7c87a0;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 700;
}

.promo-bundle-stat-card strong {
  color: #202b42;
  font-size: 30px;
  line-height: 1;
}

.promo-bundle-stat-card span {
  color: #6e7890;
  font-size: 12px;
  line-height: 1.6;
}

.promo-bundle-stat-card.accent-active {
  background: linear-gradient(180deg, #fff7ee, #fff2e2);
  border-color: #ffd6b3;
}

.promo-bundle-stat-card.accent-upcoming {
  background: linear-gradient(180deg, #fffef1, #fff8d8);
  border-color: #efe2a4;
}

.promo-bundle-stat-card.accent-expired {
  background: linear-gradient(180deg, #fff5f1, #ffe7dc);
  border-color: #f3cdbb;
}

.promo-bundle-toolbar {
  display: grid;
  grid-template-columns: 220px 220px minmax(280px, 1fr);
  gap: 14px;
  align-items: end;
}

.promo-bundle-search {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  border-color: #d6d9e3;
  background: #fff;
  padding: 0 10px;
  gap: 10px;
  box-shadow: none;
}

.promo-bundle-search svg {
  width: 17px;
  height: 17px;
  fill: #78839c;
}

.promo-bundle-search input {
  width: 100%;
}

.promo-bundle-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.promo-bundle-table-card,
.promo-bundle-guide-card,
.promo-bundle-preview-panel,
.promo-bundle-detail-card {
  border-radius: 24px;
  border: 1px solid #e5e9f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.95));
  box-shadow: 0 18px 36px rgba(29, 39, 60, 0.06);
}

.promo-bundle-table-card,
.promo-bundle-guide-card {
  padding: 18px;
}

.promo-bundle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.promo-bundle-card-head.compact {
  margin-bottom: 12px;
}

.promo-bundle-card-head h4 {
  margin: 0;
  font-size: 18px;
  color: #202a40;
}

.promo-bundle-card-head p {
  margin: 6px 0 0;
  color: #6b7690;
  font-size: 13px;
  line-height: 1.6;
}

.promo-bundle-table-wrap {
  margin-top: 2px;
}

.promo-bundle-table {
  width: 100%;
  border-collapse: collapse;
}

.promo-bundle-table thead th {
  text-align: left;
  padding: 12px 14px;
  color: #73809a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #e6ebf3;
}

.promo-bundle-table tbody td {
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid #edf1f6;
  color: #243048;
  font-size: 13px;
  line-height: 1.55;
}

.promo-bundle-name-cell,
.promo-bundle-products-cell,
.promo-bundle-price-cell,
.promo-bundle-period-cell {
  display: grid;
  gap: 4px;
}

.promo-bundle-name-cell strong,
.promo-bundle-products-cell strong,
.promo-bundle-price-cell strong,
.promo-bundle-period-cell strong {
  color: #1f2b43;
  font-size: 14px;
  line-height: 1.35;
}

.promo-bundle-period-range {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.promo-bundle-period-range span:first-child,
.promo-bundle-period-range span:last-child {
  white-space: nowrap;
}

.promo-bundle-period-range span:nth-child(2) {
  color: #5f6a84;
}

.promo-bundle-name-cell small,
.promo-bundle-products-cell small,
.promo-bundle-price-cell small,
.promo-bundle-period-cell small,
.promo-bundle-inline-subtext {
  color: #73809a;
  font-size: 12px;
}

.promo-bundle-table-actions {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 8px;
  min-width: 80px;
}

.promo-bundle-table-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.promo-bundle-table-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.promo-bundle-table-btn.toggle-on {
  color: #1c7a52;
  border-color: #bee4d4;
  background: #eefaf4;
}

.promo-bundle-table-btn.toggle-off {
  color: #8a6a00;
  border-color: #eadc9f;
  background: #fff8dd;
}

.promo-bundle-table-btn.danger {
  color: #d13f3f;
  border-color: #f0c7c7;
  background: #fff5f5;
}

.promo-bundle-type-badge,
.promo-bundle-status-badge,
.promo-bundle-item-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dfe5f0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.promo-bundle-type-badge.fixed_price {
  color: #b65f00;
  border-color: #ffd3a8;
  background: #fff3e4;
}

.promo-bundle-type-badge.discount_percent {
  color: #1c7a52;
  border-color: #bee4d4;
  background: #eefaf4;
}

.promo-bundle-type-badge.discount_nominal {
  color: #8d4c17;
  border-color: #f0d3b4;
  background: #fff7ef;
}

.promo-bundle-status-badge.active {
  color: #1c7a52;
  border-color: #bee4d4;
  background: #eefaf4;
}

.promo-bundle-status-badge.inactive {
  color: #657189;
  border-color: #d7dde8;
  background: #f5f7fb;
}

.promo-bundle-status-badge.upcoming {
  color: #8a6a00;
  border-color: #eadc9f;
  background: #fff8dd;
}

.promo-bundle-status-badge.expired {
  color: #b3471d;
  border-color: #f0c2ae;
  background: #fff0ea;
}

.promo-bundle-guide-list {
  display: grid;
  gap: 14px;
}

.promo-bundle-guide-list div {
  display: grid;
  gap: 4px;
}

.promo-bundle-guide-list strong {
  color: #202b42;
  font-size: 13px;
}

.promo-bundle-guide-list span {
  color: #69748d;
  font-size: 13px;
  line-height: 1.7;
}

.promo-bundle-status-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-bundle-form-dialog,
.promo-bundle-detail-dialog {
  width: min(1180px, calc(100vw - 36px));
}

.promo-bundle-form-head,
.promo-bundle-detail-head {
  align-items: flex-start;
}

.promo-bundle-form-meta,
.promo-bundle-detail-meta {
  margin: 6px 0 0;
  color: #69758f;
  font-size: 13px;
  line-height: 1.5;
}

.promo-bundle-form {
  display: grid;
  gap: 18px;
}

.promo-bundle-form-layout {
  padding: 18px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .78fr);
  gap: 18px;
  max-height: min(80vh, 960px);
  overflow: auto;
}

.promo-bundle-form-main {
  display: grid;
  gap: 18px;
}

.promo-bundle-form-section {
  border-radius: 22px;
  border: 1px solid #e5e9f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.95));
  padding: 18px;
  display: grid;
  gap: 14px;
}

.promo-bundle-form-section-head h4 {
  margin: 0;
  font-size: 17px;
  color: #202a40;
}

.promo-bundle-form-section-head p {
  margin: 5px 0 0;
  color: #6a7690;
  font-size: 13px;
  line-height: 1.6;
}

.promo-bundle-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-bundle-form-span-2 {
  grid-column: span 2;
}

.promo-bundle-form .date-field input,
.promo-bundle-form .date-field select,
.promo-bundle-form .date-field textarea {
  width: 100%;
}

.promo-bundle-form .date-field textarea {
  min-height: 108px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #d7deec;
  padding: 12px 14px;
  font: 500 15px/1.5 inherit;
  color: #232b3f;
  background: #fff;
}

.promo-bundle-form .date-field textarea:focus {
  outline: 0;
  border-color: #ffb782;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

.promo-bundle-product-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.promo-bundle-product-search {
  width: 100%;
}

.promo-bundle-items-wrap {
  border-radius: 18px;
  border: 1px solid #e7ebf3;
}

.promo-bundle-items-table {
  width: 100%;
  border-collapse: collapse;
}

.promo-bundle-items-table th,
.promo-bundle-items-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
}

.promo-bundle-items-table th {
  color: #75829c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.promo-bundle-qty-input,
.promo-bundle-item-role {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d8dfea;
  padding: 0 10px;
  font: 600 14px/1 inherit;
  color: #263047;
  background: #fff;
}

.promo-bundle-pricing-hint {
  border-radius: 16px;
  border: 1px solid #ffe1c0;
  background: #fff8f0;
  padding: 12px 14px;
  color: #8a5c21;
  font-size: 12px;
  line-height: 1.6;
}

.promo-bundle-inline-preview,
.promo-bundle-preview-box,
.promo-bundle-validation-box {
  border-radius: 18px;
  border: 1px solid #dfe5f0;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
}

.promo-bundle-inline-preview {
  padding: 14px;
  color: #31405e;
  font-size: 13px;
  line-height: 1.7;
}

.promo-bundle-preview-panel {
  padding: 18px;
  align-self: start;
}

.promo-bundle-preview-sticky {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.promo-bundle-preview-head h4 {
  margin: 0;
  font-size: 18px;
  color: #1f2940;
}

.promo-bundle-preview-head p {
  margin: 6px 0 0;
  color: #6c7891;
  font-size: 13px;
  line-height: 1.6;
}

.promo-bundle-preview-box {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.promo-bundle-preview-stat {
  border-radius: 16px;
  border: 1px solid #e4e9f2;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.promo-bundle-preview-stat.accent {
  border-color: #ffd9b9;
  background: linear-gradient(180deg, #fff8f1, #fff1e4);
}

.promo-bundle-preview-stat small {
  color: #758099;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 700;
}

.promo-bundle-preview-stat strong {
  color: #202b42;
  font-size: 20px;
}

.promo-bundle-preview-list {
  display: grid;
  gap: 8px;
}

.promo-bundle-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid #e5eaf2;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  color: #31405e;
  font-size: 13px;
}

.promo-bundle-preview-row strong {
  color: #1f2a42;
}

.promo-bundle-preview-empty {
  color: #75819a;
  font-size: 13px;
  line-height: 1.6;
}

.promo-bundle-validation-box {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.promo-bundle-validation-box strong {
  color: #212c44;
  font-size: 14px;
}

.promo-bundle-validation-list {
  display: grid;
  gap: 10px;
}

.promo-bundle-validation-item {
  border-radius: 16px;
  border: 1px solid #e4e9f2;
  padding: 12px 13px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.promo-bundle-validation-item.ok {
  border-color: #cbe8d9;
  background: #f2fbf6;
}

.promo-bundle-validation-item.warn {
  border-color: #f3cfbf;
  background: #fff5f0;
}

.promo-bundle-validation-item strong {
  font-size: 13px;
}

.promo-bundle-validation-item span {
  color: #6d7891;
  font-size: 12px;
  line-height: 1.6;
}

.promo-bundle-form-actions {
  padding: 0 22px 22px;
}

.promo-bundle-detail-body {
  padding: 18px 22px 12px;
  max-height: min(72vh, 780px);
  overflow: auto;
}

.promo-bundle-detail-content {
  display: grid;
  gap: 18px;
}

.promo-bundle-detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.promo-bundle-detail-stat {
  border-radius: 18px;
  border: 1px solid #e3e8f2;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.promo-bundle-detail-stat small {
  color: #748099;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 700;
}

.promo-bundle-detail-stat strong {
  color: #202b42;
  font-size: 18px;
}

.promo-bundle-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.promo-bundle-detail-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.promo-bundle-detail-card h4 {
  margin: 0;
  font-size: 18px;
  color: #232d43;
}

.promo-bundle-detail-card p {
  margin: 0;
  color: #68748d;
  font-size: 13px;
  line-height: 1.6;
}

.promo-bundle-detail-list,
.promo-bundle-detail-items {
  display: grid;
  gap: 12px;
}

.promo-bundle-detail-list div {
  display: grid;
  gap: 4px;
}

.promo-bundle-detail-list strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7a849d;
}

.promo-bundle-detail-list span {
  color: #243048;
  font-size: 14px;
  line-height: 1.6;
}

.promo-bundle-detail-item {
  border-radius: 18px;
  border: 1px solid #e3e8f2;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.promo-bundle-detail-item strong {
  color: #202b42;
  font-size: 14px;
}

.promo-bundle-detail-item p {
  margin: 4px 0 0;
  color: #6a7690;
  font-size: 12px;
  line-height: 1.6;
}

.promo-bundle-item-tag.required {
  color: #1c7a52;
  border-color: #bee4d4;
  background: #eefaf4;
}

.promo-bundle-item-tag.optional {
  color: #7a5c00;
  border-color: #ecdca5;
  background: #fff8df;
}

.transaction-summary-grid {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.transaction-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dde4f0;
  background: linear-gradient(180deg, #fbfcff, #f5f8fd);
  color: #33405f;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .voucher-summary,
  .voucher-detail-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashback-summary,
  .cashback-detail-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voucher-toolbar,
  .voucher-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashback-toolbar,
  .cashback-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voucher-board,
  .voucher-detail-grid {
    grid-template-columns: 1fr;
  }

  .cashback-board,
  .cashback-detail-grid {
    grid-template-columns: 1fr;
  }

  .promo-bundle-summary,
  .promo-bundle-detail-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-bundle-toolbar,
  .promo-bundle-form-grid,
  .promo-bundle-detail-grid,
  .promo-bundle-board,
  .promo-bundle-form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .voucher-head,
  .voucher-card-head,
  .voucher-head-actions,
  .voucher-form-actions,
  .voucher-usage-item {
    flex-direction: column;
    align-items: stretch;
  }

  .voucher-summary,
  .voucher-toolbar,
  .voucher-target-options,
  .voucher-detail-overview,
  .voucher-form-grid {
    grid-template-columns: 1fr;
  }

  .cashback-head,
  .cashback-card-head,
  .cashback-head-actions,
  .cashback-form-actions,
  .cashback-usage-item {
    flex-direction: column;
    align-items: stretch;
  }

  .cashback-summary,
  .cashback-toolbar,
  .cashback-target-options,
  .cashback-detail-overview,
  .cashback-form-grid {
    grid-template-columns: 1fr;
  }

  .voucher-form-span-2 {
    grid-column: span 1;
  }

  .cashback-form-span-2 {
    grid-column: span 1;
  }

  .voucher-inline-note {
    max-width: none;
  }

  .cashback-inline-note {
    max-width: none;
  }

  .voucher-input-row,
  .voucher-form-inline {
    grid-template-columns: 1fr;
  }

  .cashback-table-actions {
    flex-direction: column;
  }

  .voucher-head-actions .ghost-btn,
  .voucher-head-actions .solid-btn,
  .voucher-inline-btn,
  .voucher-form-inline-btn {
    width: 100%;
  }

  .cashback-table-btn,
  .cashback-head-actions .ghost-btn,
  .cashback-head-actions .solid-btn {
    width: 100%;
  }

  .promo-bundle-head,
  .promo-bundle-card-head,
  .promo-bundle-head-actions,
  .promo-bundle-form-actions,
  .promo-bundle-detail-item {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-bundle-summary,
  .promo-bundle-toolbar,
  .promo-bundle-detail-overview,
  .promo-bundle-form-grid {
    grid-template-columns: 1fr;
  }

  .promo-bundle-form-span-2 {
    grid-column: span 1;
  }

  .promo-bundle-product-add {
    grid-template-columns: 1fr;
  }

  .promo-bundle-table-actions,
  .promo-bundle-head-actions {
    max-width: none;
  }

  .promo-bundle-head-actions .ghost-btn,
  .promo-bundle-head-actions .solid-btn {
    width: 100%;
  }
}

.affiliate-head {
  align-items: flex-start;
}

.affiliate-title-wrap p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.affiliate-feature-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.affiliate-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  border-width: 1px;
  border-style: solid;
  border-color: var(--affiliate-btn-border, rgba(148, 163, 184, 0.28));
  background: var(--affiliate-btn-bg, rgb(248, 250, 252));
  color: var(--affiliate-btn-text, rgb(71, 85, 105));
  box-shadow: 0 4px 12px var(--affiliate-btn-shadow, rgba(15, 23, 42, 0.06));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.affiliate-feature-nav .affiliate-feature-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--affiliate-btn-hover-shadow, rgba(15, 23, 42, 0.12));
}

.affiliate-feature-btn:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

.affiliate-feature-nav .ghost-btn.affiliate-feature-btn {
  border-width: 1px;
}

.affiliate-feature-nav .solid-btn.affiliate-feature-btn {
  border-width: 1px;
}

.affiliate-feature-nav .affiliate-feature-btn:nth-child(1) {
  --affiliate-btn-bg: rgb(255, 245, 235);
  --affiliate-btn-text: rgb(234, 88, 12);
  --affiliate-btn-border: rgba(251, 146, 60, 0.34);
  --affiliate-btn-shadow: rgba(251, 146, 60, 0.12);
  --affiliate-btn-hover-shadow: rgba(251, 146, 60, 0.2);
}

.affiliate-feature-nav .affiliate-feature-btn:nth-child(2) {
  --affiliate-btn-bg: rgb(238, 246, 255);
  --affiliate-btn-text: rgb(37, 99, 235);
  --affiliate-btn-border: rgba(59, 130, 246, 0.28);
  --affiliate-btn-shadow: rgba(59, 130, 246, 0.12);
  --affiliate-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.affiliate-feature-nav .affiliate-feature-btn:nth-child(3) {
  --affiliate-btn-bg: rgb(238, 242, 255);
  --affiliate-btn-text: rgb(79, 70, 229);
  --affiliate-btn-border: rgba(99, 102, 241, 0.28);
  --affiliate-btn-shadow: rgba(99, 102, 241, 0.11);
  --affiliate-btn-hover-shadow: rgba(99, 102, 241, 0.17);
}

.affiliate-feature-nav .affiliate-feature-btn:nth-child(4) {
  --affiliate-btn-bg: rgb(236, 253, 245);
  --affiliate-btn-text: rgb(5, 150, 105);
  --affiliate-btn-border: rgba(16, 185, 129, 0.28);
  --affiliate-btn-shadow: rgba(16, 185, 129, 0.12);
  --affiliate-btn-hover-shadow: rgba(16, 185, 129, 0.18);
}

.affiliate-summary {
  margin-top: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.affiliate-stat-card {
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 122, 0, 0.06));
  display: grid;
  gap: 6px;
}

.affiliate-stat-card small {
  color: var(--muted);
}

.affiliate-stat-card strong {
  font-size: 24px;
}

.affiliate-stat-card span {
  font-size: 12px;
  color: var(--muted);
}

.affiliate-stat-card.accent-pending {
  border-color: rgba(247, 183, 51, 0.35);
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.98), rgba(247, 183, 51, 0.14));
}

.affiliate-stat-card.accent-clicks {
  border-color: rgba(57, 186, 255, 0.3);
  background: linear-gradient(145deg, rgba(245, 252, 255, 0.98), rgba(57, 186, 255, 0.14));
}

.affiliate-stat-card.accent-orders {
  border-color: rgba(39, 174, 96, 0.3);
  background: linear-gradient(145deg, rgba(242, 255, 247, 0.98), rgba(39, 174, 96, 0.14));
}

.affiliate-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

.affiliate-card-head h4 {
  margin: 0;
}

.affiliate-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-card-head-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-reg-trigger {
  border: 1px dashed rgba(251, 146, 60, 0.45);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.95), rgba(255, 255, 255, 0.98));
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.affiliate-reg-trigger-copy {
  display: grid;
  gap: 4px;
}

.affiliate-reg-trigger-copy strong {
  font-size: 14px;
  color: #1d263a;
}

.affiliate-reg-trigger-copy span {
  font-size: 12px;
  color: var(--muted);
}

.affiliate-referral-trigger {
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.affiliate-referral-trigger-btn {
  min-width: 168px;
  --affiliate-btn-bg: rgb(238, 246, 255);
  --affiliate-btn-text: rgb(37, 99, 235);
  --affiliate-btn-border: rgba(59, 130, 246, 0.28);
  --affiliate-btn-shadow: rgba(59, 130, 246, 0.12);
  --affiliate-btn-hover-shadow: rgba(59, 130, 246, 0.18);
}

.affiliate-referral-trigger-meta {
  margin: 10px 0 0;
}

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

.affiliate-reg-modal .receipt-dialog {
  width: min(780px, calc(100vw - 30px));
}

.affiliate-reg-modal-form {
  padding: 12px 14px 2px;
  gap: 12px;
}

.affiliate-reg-modal-actions {
  border-top: 0;
  padding: 4px 0 0;
}

.affiliate-referral-modal .receipt-dialog {
  width: min(920px, calc(100vw - 30px));
}

.affiliate-referral-modal-body {
  padding: 12px 14px 2px;
  display: grid;
  gap: 10px;
}

.affiliate-referral-modal-actions {
  border-top: 0;
  padding: 4px 0 0;
}

.affiliate-payout-modal .receipt-dialog {
  width: min(980px, calc(100vw - 30px));
}

.affiliate-payout-modal-body {
  padding: 12px 14px 2px;
  display: grid;
  gap: 10px;
}

.affiliate-payout-modal-actions {
  border-top: 0;
  padding: 4px 0 0;
}

.affiliate-admin-modal .receipt-dialog {
  width: min(980px, calc(100vw - 30px));
}

.affiliate-admin-modal-body {
  padding: 12px 14px 2px;
  display: grid;
  gap: 10px;
}

.affiliate-admin-modal-actions {
  border-top: 0;
  padding: 4px 0 0;
}

.affiliate-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.affiliate-referral-form {
  display: grid;
  gap: 10px;
}

.affiliate-share-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.affiliate-tracking-box {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.affiliate-inline-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  gap: 8px;
}

.affiliate-table-wrap {
  margin-top: 8px;
}

.affiliate-table-wrap.compact {
  margin-top: 12px;
}

.affiliate-commission-pagination {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.affiliate-commission-pagination small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.affiliate-commission-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.affiliate-commission-page-info {
  font-size: 12px;
  font-weight: 700;
  color: #55637f;
  min-width: 94px;
  text-align: center;
}

.affiliate-table th,
.affiliate-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

.affiliate-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.affiliate-status-badge.pending {
  color: #8a6200;
  background: rgba(247, 183, 51, 0.2);
}

.affiliate-status-badge.approved {
  color: #1f7a42;
  background: rgba(39, 174, 96, 0.18);
}

.affiliate-status-badge.cancel {
  color: #b42318;
  background: rgba(217, 45, 32, 0.14);
}

.affiliate-status-badge.paid {
  color: #0f6cbd;
  background: rgba(15, 108, 189, 0.14);
}

.affiliate-status-badge.requested {
  color: #8a6200;
  background: rgba(247, 183, 51, 0.2);
}

.affiliate-payout-balance {
  border: 1px solid rgba(39, 174, 96, 0.3);
  background: linear-gradient(145deg, rgba(242, 255, 247, 0.95), rgba(39, 174, 96, 0.1));
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.affiliate-payout-balance small {
  color: var(--muted);
}

.affiliate-payout-balance strong {
  font-size: 24px;
}

.affiliate-payout-balance span {
  font-size: 12px;
  color: var(--muted);
}

.affiliate-admin-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.affiliate-row-actions {
  display: flex;
  gap: 6px;
}

.affiliate-row-actions .ghost-btn,
.affiliate-row-actions .solid-btn {
  min-height: 34px;
  padding: 6px 10px;
}

@media (max-width: 1080px) {
  .affiliate-summary,
  .affiliate-grid,
  .affiliate-form-grid,
  .affiliate-admin-settings,
  .affiliate-share-actions {
    grid-template-columns: 1fr;
  }

  .affiliate-tracking-box {
    grid-template-columns: 1fr;
  }

  .affiliate-feature-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-feature-btn {
    width: 100%;
  }

  .affiliate-inline-filters {
    grid-template-columns: 1fr;
  }

  .affiliate-commission-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .affiliate-commission-pagination-actions {
    justify-content: flex-start;
  }

  .affiliate-reg-trigger {
    align-items: stretch;
    flex-direction: column;
  }

.affiliate-referral-trigger-btn {
  width: 100%;
}
}

.settings-marketing-shell {
  display: grid;
  gap: 18px;
}

.settings-marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.settings-marketing-hero-copy,
.settings-marketing-metric-card,
.settings-marketing-panel,
.settings-marketing-card {
  border: 1px solid #eaeaea;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.settings-marketing-hero-copy {
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff, #fbfbfc);
}

.settings-marketing-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  color: #d46200;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-marketing-badge.subtle {
  background: rgba(255, 122, 0, 0.06);
}

.settings-marketing-hero-copy h5,
.settings-marketing-panel-head h5 {
  margin: 0;
  color: #101828;
  letter-spacing: -0.03em;
}

.settings-marketing-hero-copy h5 {
  font-size: 24px;
  line-height: 1.25;
}

.settings-marketing-hero-copy p,
.settings-marketing-panel-head p,
.settings-marketing-card-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.settings-marketing-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-marketing-metric-card,
.settings-marketing-kpi-card {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.settings-marketing-metric-card small,
.settings-marketing-kpi-card small {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-marketing-metric-card strong,
.settings-marketing-kpi-card strong {
  color: #1d2939;
  font-size: 23px;
  line-height: 1.2;
}

.settings-marketing-metric-card span,
.settings-marketing-kpi-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.settings-marketing-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid #eaeaea;
  border-radius: 22px;
  background: #fff;
}

.settings-marketing-tab {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #667085;
  font: 500 13px/1.35 "Poppins", "Inter", sans-serif;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.settings-marketing-tab.active,
.settings-marketing-tab:hover {
  color: #ff7a00;
  border-color: rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
}

.settings-marketing-panels {
  display: grid;
}

.settings-marketing-panel {
  display: none;
  border-radius: 26px;
  padding: 22px;
  gap: 18px;
}

.settings-marketing-panel.active {
  display: grid;
}

.settings-marketing-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.settings-marketing-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-marketing-card {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.settings-marketing-span-2 {
  grid-column: span 2;
}

.settings-marketing-card-head {
  display: grid;
  gap: 4px;
}

.settings-marketing-card-head h6 {
  margin: 0;
  color: #101828;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.settings-marketing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-marketing-shell .date-field {
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
  box-shadow: none;
}

.settings-marketing-shell .date-field > span {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.settings-marketing-shell .date-field input,
.settings-marketing-shell .date-field select,
.settings-marketing-shell .date-field textarea {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #101828;
  font: 500 14px/1.5 "Poppins", "Inter", sans-serif;
}

.settings-marketing-shell .date-field textarea {
  min-height: 110px;
}

.settings-marketing-shell .date-field input:focus,
.settings-marketing-shell .date-field select:focus,
.settings-marketing-shell .date-field textarea:focus {
  border-color: rgba(255, 122, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.settings-marketing-toggle {
  min-height: 58px !important;
  padding: 0 16px !important;
  border: 1px solid #eaeaea !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff, #fbfbfc) !important;
  color: #344054 !important;
  box-shadow: none !important;
}

.settings-marketing-toggle input[type="checkbox"] {
  accent-color: #ff7a00 !important;
}

.settings-marketing-chip-grid,
.settings-marketing-kpi-grid {
  display: grid;
  gap: 14px;
}

.settings-marketing-chip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-marketing-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #eaeaea;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
}

.settings-marketing-chip.active {
  border-color: rgba(255, 122, 0, 0.2);
  background: rgba(255, 122, 0, 0.08);
  color: #d46200;
}

.settings-marketing-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-marketing-kpi-card {
  border: 1px solid #eaeaea;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #fcfcfd);
}

.report-finance-modal {
  backdrop-filter: blur(10px);
}

.report-finance-dialog {
  width: min(1180px, calc(100vw - 32px));
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.96) 48%, rgba(243, 246, 250, 0.98)),
    linear-gradient(180deg, #ffffff, #f8f9fb);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.2);
}

.report-finance-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #eaeaea;
  background:
    radial-gradient(140% 160% at 100% 0%, rgba(255, 122, 0, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.95));
}

.report-finance-headline {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.report-finance-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  color: #cf6200;
  font: 700 11px/1 "Poppins", "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-finance-headline h3 {
  margin: 0;
  color: #101828;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.report-finance-headline p {
  margin: 0;
  color: #667085;
  font: 500 15px/1.6 "Poppins", "Inter", sans-serif;
}

.report-finance-body {
  display: grid;
  gap: 20px;
  padding: 24px 30px 18px;
  background: #f8f9fb;
}

.report-finance-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.report-finance-hero-copy,
.report-finance-summary,
.report-finance-workspace,
.report-finance-table-shell {
  border: 1px solid #eaeaea;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.report-finance-hero-copy {
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff, #fcfcfd);
}

.report-finance-hero-copy small,
.report-finance-table-headline small,
.report-finance-stat small {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

.report-finance-hero-copy strong,
.report-finance-table-headline strong {
  color: #1d2939;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.report-finance-hero-copy span,
.report-finance-table-meta,
.report-finance-stat span {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.report-finance-summary {
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.report-finance-stat {
  border-radius: 20px;
  border: 1px solid #eceef2;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #fcfcfd);
  padding: 14px 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
  overflow: hidden;
}

.report-finance-stat strong {
  color: #101828;
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.report-finance-workspace {
  border-radius: 26px;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.report-finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-finance-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #667085;
  font: 600 13px/1 "Poppins", "Inter", sans-serif;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.report-finance-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.18);
  color: #ff7a00;
}

.report-finance-tabs button.active {
  border-color: rgba(255, 122, 0, 0.2);
  background: rgba(255, 122, 0, 0.08);
  color: #ff7a00;
  box-shadow: 0 10px 18px rgba(255, 122, 0, 0.1);
}

.report-finance-table-shell {
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.report-finance-table-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-finance-table-wrap {
  max-height: min(48vh, 520px);
  border: 1px solid #eef1f4;
  border-radius: 20px;
  background: #fff;
}

.report-finance-table {
  width: 100%;
  border-collapse: collapse;
}

.report-finance-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.98), rgba(252, 245, 237, 0.96));
  border-bottom: 1px solid #eceef2;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.report-finance-table tbody td {
  padding: 18px;
  border-bottom: 1px solid #eff2f6;
  color: #1d2939;
  font-size: 14px;
  vertical-align: top;
}

.report-finance-table tbody tr:hover td {
  background: rgba(255, 122, 0, 0.03);
}

.report-finance-table tbody tr:last-child td {
  border-bottom: 0;
}

.report-finance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 30px 24px;
  border-top: 1px solid #eaeaea;
  background: rgba(248, 249, 251, 0.95);
  backdrop-filter: blur(16px);
}

.report-finance-download-btn,
.report-finance-close-btn {
  min-height: 50px;
  border-radius: 16px;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
}

.report-finance-download-btn {
  min-width: 220px;
  border-color: #d9e2f2;
  background: linear-gradient(180deg, #ffffff, #f6f8fd);
  color: #475467;
}

.report-finance-close-btn {
  min-width: 120px;
  border: 1px solid #ff7a00;
  background: linear-gradient(180deg, #ff8f26, #ff7a00);
  box-shadow: 0 14px 30px rgba(255, 122, 0, 0.2);
}

@media (max-width: 980px) {
  .report-finance-dialog {
    width: calc(100vw - 20px);
  }

  .report-finance-body,
  .report-finance-head,
  .report-finance-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .report-finance-hero,
  .report-finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) {
  .report-finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .report-finance-hero,
  .report-finance-summary {
    grid-template-columns: 1fr;
  }

  .report-finance-actions {
    flex-direction: column-reverse;
  }

  .report-finance-download-btn,
  .report-finance-close-btn {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .settings-marketing-hero,
  .settings-marketing-grid,
  .settings-marketing-kpi-grid,
  .settings-marketing-tabs,
  .settings-marketing-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .settings-marketing-hero,
  .settings-marketing-grid,
  .settings-marketing-kpi-grid,
  .settings-marketing-tabs,
  .settings-marketing-hero-metrics,
  .settings-marketing-chip-grid,
  .settings-marketing-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-marketing-span-2 {
    grid-column: auto;
  }
}
