* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
button,
input,
select,
textarea,
.dashboard-hero h1,
.dashboard-card h2,
.dashboard-card h3,
.stat-card-value,
.snapshot-card-value {
  font-family: "Anuphan", sans-serif;
}

:root {
  --bg: #fcf7f0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 252, 247, 0.94);
  --text: #34251d;
  --muted: #77675d;
  --line: #e8d7c3;
  --accent: #9a603f;
  --accent-soft: #f5e6d6;
  --accent-pale: #efe1d2;
  --accent-dark: #6f4027;
  --brand-coral: #dd987f;
  --brand-gold: #d4b06e;
  --brand-cream: #fffaf4;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  min-height: 100vh;
  font-family: "Anuphan", sans-serif;
  background: var(--bg);
  color: var(--text);
  scrollbar-width: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.dashboard-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px 24px;
  border-right: 1px solid var(--line);
  background: #fbf4eb;
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  overflow: auto;
  scrollbar-width: none;
}

.dashboard-sidebar::-webkit-scrollbar {
  display: none;
}

.dashboard-brand {
  display: flex;
  justify-content: center;
}

.dashboard-brand img {
  width: auto;
  height: 108px;
  object-fit: contain;
  margin: 0 auto;
}

.dashboard-admin-card,
.panel-card,
.metric-card,
.access-gate-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.dashboard-admin-card {
  padding: 20px;
}

.dashboard-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-admin-card h1,
.dashboard-topbar h2,
.panel-card h3,
.access-gate-card h2 {
  margin: 8px 0 10px;
  font-family: "Mitr", sans-serif;
  font-weight: 400;
}

.dashboard-admin-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 4px 0;
}

.dashboard-nav a {
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.dashboard-nav a:hover {
  background: rgba(255, 248, 241, 0.94);
  border-color: rgba(154, 96, 63, 0.12);
  color: var(--accent);
}

.dashboard-nav a.is-active {
  background: #f5e6d6;
  border-color: rgba(154, 96, 63, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}

.dashboard-nav a[href="dashboard-content.html"],
.dashboard-nav a[href="dashboard-reports.html"],
.dashboard-nav a[href="dashboard-product-editor.html"] {
  display: none !important;
}

.dashboard-side-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}

.dashboard-side-footer .ghost-button {
  width: 100%;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-main {
  position: relative;
  padding: 20px 24px 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.dashboard-main > * {
  position: relative;
  z-index: 1;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 2px 2px;
}

.dashboard-topbar h2 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.dashboard-topbar-copy {
  max-width: 720px;
}

.dashboard-topbar-copy .dashboard-kicker {
  margin-bottom: 12px;
}

.dashboard-topbar-note {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.72;
}

.dashboard-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.dashboard-user-card strong,
.dashboard-user-card span {
  display: block;
}

.dashboard-user-card div span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.access-gate {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.access-gate-card {
  width: min(100%, 520px);
  padding: 28px;
  text-align: center;
}

.access-gate-card p {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-access-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-access-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 245, 236, 0.9);
  color: var(--accent);
  font-size: 1.3rem;
}

.dashboard-access-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f3ddc4;
}

.dashboard-access-badge img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.dashboard-admin-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.dashboard-admin-submit {
  width: 100%;
  justify-content: center;
}

.access-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.dashboard-app {
  display: grid;
  gap: 16px;
  align-content: start;
}

.auth-hidden {
  display: none !important;
}

.metric-grid,
.dashboard-grid,
.report-grid {
  display: grid;
  gap: 16px;
}

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

.dashboard-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  align-items: start;
}

.orders-panel-card {
  width: min(100%, 1040px);
  padding: 24px;
}

.orders-delivered-card {
  display: grid;
  gap: 16px;
  align-self: start;
  min-width: 0;
}

.members-dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.95fr);
}

.dashboard-members-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 14px;
}

.dashboard-members-toolbar input {
  flex: 1 1 auto;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
}

.dashboard-orders-toolbar select {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  color: var(--text);
}

.dashboard-orders-toolbar .ghost-button {
  min-height: 52px;
  padding: 0 20px;
}

.dashboard-member-list,
.dashboard-member-mini-list,
.dashboard-member-sections,
.dashboard-member-profile-grid {
  display: grid;
  gap: 12px;
}

.dashboard-member-row,
.dashboard-mini-card,
.dashboard-member-hero,
.dashboard-member-action-form,
.dashboard-member-detail {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.dashboard-member-row:hover {
  border-color: rgba(140, 90, 60, 0.18);
  background: rgba(255, 248, 241, 0.92);
}

.dashboard-member-row strong,
.dashboard-mini-card strong {
  display: block;
}

.dashboard-member-row strong {
  font-size: 1.02rem;
}

.dashboard-member-row span,
.dashboard-member-row small,
.dashboard-mini-card span,
.dashboard-mini-card small {
  color: var(--muted);
}

.dashboard-member-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-member-row > div:first-child span {
  line-height: 1.6;
}

.dashboard-member-row.is-active {
  background: var(--accent-soft);
  border-color: rgba(140, 90, 60, 0.18);
}

.dashboard-member-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex-shrink: 0;
}

.order-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.order-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 96, 63, 0.12);
  background: #fffaf4;
  color: var(--muted);
  font-size: 0.84rem;
}

.order-summary-chip.is-total {
  color: var(--accent-dark);
  font-weight: 600;
}

.dashboard-member-detail-card {
  align-self: start;
}

.dashboard-member-detail {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.dashboard-order-detail {
  display: grid;
  gap: 16px;
}

.order-detail-modal-card {
  width: min(980px, 100%);
}

.member-detail-modal-card {
  width: min(980px, 100%);
}

.dashboard-member-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.dashboard-member-hero p,
.dashboard-member-hero small {
  color: var(--muted);
}

.dashboard-member-hero-stats {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.dashboard-member-hero-stats strong {
  font-size: 1.4rem;
}

.dashboard-member-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-member-action-form {
  padding: 16px;
}

.dashboard-member-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-member-section h4 {
  margin-bottom: 12px;
}

.dashboard-mini-card {
  padding: 14px;
}

.dashboard-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-coupon-item > div {
  min-width: 0;
}

.dashboard-empty-state {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: #fffdf9;
}

.dashboard-empty-state strong {
  color: var(--text);
  font-family: "Mitr", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
}

.dashboard-empty-state p {
  line-height: 1.7;
}

.panel-card {
  padding: 20px;
  background: #fffaf4;
}

.panel-card-wide {
  min-width: 0;
}

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

.panel-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  background: #fffaf4;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.metric-card span,
.report-card span,
.dashboard-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong,
.report-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: "Mitr", sans-serif;
  font-weight: 400;
  color: var(--accent-dark);
}

.metric-card p,
.panel-message,
.dashboard-order-card p,
.order-focus p {
  color: var(--muted);
  line-height: 1.65;
}

.panel-message {
  min-height: 22px;
  margin-bottom: 12px;
}

.orders-panel-card .panel-head {
  margin-bottom: 4px;
}

.orders-panel-card .panel-head h3 {
  margin-bottom: 8px;
}

#ordersSearchMessage {
  min-height: 26px;
  display: flex;
  align-items: center;
}

.dashboard-form,
.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-field {
  display: grid;
  gap: 8px;
}

.dashboard-field input,
.dashboard-field select,
.dashboard-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  outline: none;
}

.dashboard-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1.5px dashed #d9c3ae;
  border-radius: 24px;
  background: #fffaf4;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.dashboard-dropzone:hover,
.dashboard-dropzone.is-active {
  border-color: var(--accent);
  background: #f7ede1;
}

.dashboard-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-dropzone-copy {
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.dashboard-dropzone-copy strong {
  font-size: 1rem;
}

.dashboard-dropzone-copy p,
.dashboard-dropzone-copy small {
  color: var(--muted);
}

.dashboard-field:has(input[name="uploadPreset"]) {
  display: none;
}

.dashboard-field textarea {
  resize: vertical;
}

.form-actions,
.account-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.account-field-full {
  grid-column: 1 / -1;
}

.primary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: #9a603f;
  color: #fff;
  font-weight: 700;
}

.ghost-button,
.link-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.dashboard-list,
.dashboard-orders {
  display: grid;
  gap: 12px;
}

.dashboard-orders {
  gap: 14px;
  margin-top: 8px;
}

.orders-delivered-summary,
.orders-delivered-list {
  display: grid;
  gap: 12px;
}

.orders-delivered-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-delivered-stat,
.orders-delivered-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.orders-delivered-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.orders-delivered-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.orders-delivered-stat strong {
  color: var(--accent-dark);
  font-family: "Mitr", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.orders-delivered-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.orders-delivered-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orders-delivered-item p {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-product-card,
.dashboard-order-card,
.order-focus {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.84);
}

.dashboard-product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.dashboard-product-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
}

.dashboard-product-card strong,
.dashboard-order-card strong,
.order-focus strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-product-card span,
.dashboard-product-card small,
.dashboard-order-card span,
.order-focus span {
  display: block;
  color: var(--muted);
}

.product-card-actions {
  display: grid;
  gap: 8px;
}

.dashboard-product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dashboard-stock-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-section-break {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 195, 174, 0.75);
}

.dashboard-stock-alert-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e6c8ba;
  border-radius: 18px;
  background: #fff7f0;
}

.dashboard-stock-alert-item strong,
.dashboard-stock-alert-item span,
.dashboard-stock-alert-item small {
  display: block;
}

.dashboard-stock-alert-item span,
.dashboard-stock-alert-item small {
  color: var(--muted);
}

.dashboard-stock-alert-item small {
  line-height: 1.7;
}

.dashboard-stock-alert-actions {
  display: flex;
  justify-content: flex-start;
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.stock-chip.is-low {
  background: #fce6de;
  color: #b45c3f;
}

.stock-chip.is-ok {
  background: #eef4e9;
  color: #5f7b48;
}

.stock-chip.is-out {
  background: #f3e6df;
  color: #9f6045;
}

.tiny-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.dashboard-order-card {
  display: grid;
  gap: 14px;
}

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

.order-detail-grid div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.order-detail-grid div span {
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-items-stack {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.order-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.order-item-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.order-item-copy {
  min-width: 0;
}

.order-item-row strong,
.order-item-row span {
  display: block;
}

.order-item-row span {
  color: var(--muted);
}

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

.report-card {
  padding: 18px;
  border: 1px solid rgba(154, 96, 63, 0.1);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.82);
  display: grid;
  gap: 8px;
}

.order-focus {
  background: rgba(255, 252, 247, 0.9);
}

.order-focus strong {
  color: var(--accent-dark);
}

.promotion-stack {
  display: grid;
  gap: 12px;
}

.promotion-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.82);
}

.promotion-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.promotion-item strong,
.promotion-item span,
.promotion-item small {
  display: block;
}

.promotion-item span,
.promotion-item small {
  color: var(--muted);
}

.promotion-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.promotion-mini-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.promotion-delete {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e6c8ba;
  background: rgba(255, 255, 255, 0.88);
  color: #b05842;
  cursor: pointer;
}

.category-summary-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.category-summary-panel {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 6px;
}

.category-panel-head {
  margin-bottom: 0;
}

.category-manager-button {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

.category-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.82);
}

.category-summary-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.category-summary-trigger:hover {
  border-color: #d9c3ae;
  background: rgba(255, 249, 243, 0.95);
}

.category-summary-item strong,
.category-summary-item span {
  display: block;
}

.category-summary-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.category-summary-meta {
  min-width: 0;
}

.category-summary-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.category-summary-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #efe3d6;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-summary-item em {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.category-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-modal.auth-hidden {
  display: none;
}

.dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 39, 28, 0.32);
  backdrop-filter: blur(6px);
}

.dashboard-modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  scrollbar-width: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.98);
}

.dashboard-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.dashboard-modal-section {
  margin-top: 18px;
}

.category-modal-toolbar {
  margin-bottom: 6px;
}

.category-modal-toolbar-actions {
  justify-content: flex-end;
}

.category-modal-toolbar-actions .ghost-button {
  align-self: flex-start;
}

.category-modal-products {
  display: grid;
  gap: 10px;
}

.category-modal-product-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.category-modal-product-item strong,
.category-modal-product-item span,
.category-modal-product-item small {
  display: block;
}

.category-modal-product-item span,
.category-modal-product-item small {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .orders-panel-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 14px 12px 18px;
  }

  .dashboard-sidebar {
    padding: 20px 14px;
  }

  .dashboard-topbar,
  .panel-head,
  .dashboard-side-footer,
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid,
  .report-grid,
  .field-grid.two-col,
  .field-grid.three-col,
  .order-detail-grid,
  .dashboard-member-profile-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-product-card {
    grid-template-columns: 1fr;
  }

  .dashboard-product-card img {
    width: 100%;
    height: 220px;
  }

  .dashboard-member-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-member-row-meta {
    width: 100%;
    justify-items: start;
  }
}

body,
button,
input,
select,
textarea,
p,
span,
a,
label,
small,
li {
  font-family: "Anuphan", sans-serif !important;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Mitr", sans-serif !important;
  font-weight: 500 !important;
}

strong,
b {
  font-weight: 600;
}

.dashboard-nav a.is-active,
.primary-button,
.promotion-mini-chip {
  font-weight: 500;
}

.role-chip,
.category-summary-item em {
  font-weight: 600;
}

.category-summary-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.category-summary-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.category-summary-count {
  margin: 0;
}

.category-summary-item .tiny-button,
.category-summary-count {
  min-width: 92px;
  justify-content: center;
}

.category-summary-item .tiny-button {
  text-align: center;
}

.category-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.category-summary-meta small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-summary-meta small,
.category-summary-count {
  display: none !important;
}

.category-summary-meta strong,
.category-summary-meta span,
.category-summary-meta small {
  line-height: 1.35;
}

.category-summary-item .tiny-button {
  min-height: 34px;
  padding: 0 12px;
}
