@font-face {
  font-family: "Vazir";
  src:
    local("Vazir"),
    local("Vazirmatn"),
    url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src:
    local("Vazir Bold"),
    local("Vazirmatn Bold"),
    url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: "Vazir", "Vazirmatn", "IRANSans", "Shabnam", "Segoe UI", Tahoma, Arial, sans-serif;
  --bg-a: #0f1721;
  --bg-b: #0f1721;
  --surface: #17212b;
  --surface-strong: #1f2c38;
  --ink: #eef3f8;
  --muted: #8f9ba8;
  --line: rgba(255, 255, 255, 0.08);
  --glass: #17212b;
  --glass-strong: #1f2c38;
  --sidebar-glass: rgba(23, 33, 43, 0.72);
  --sidebar-line: rgba(255, 255, 255, 0.12);
  --field: #111b24;
  --card: #182533;
  --accent: #2aabee;
  --accent-soft: rgba(42, 171, 238, 0.14);
  --amber: #d9a441;
  --green: #4fb477;
  --danger: #e05d5d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] {
  --bg-a: #f3f6f8;
  --bg-b: #f3f6f8;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #17212b;
  --muted: #667684;
  --line: rgba(23, 33, 43, 0.1);
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --sidebar-glass: rgba(255, 255, 255, 0.72);
  --sidebar-line: rgba(23, 33, 43, 0.12);
  --field: #f5f7f9;
  --card: #f8fafb;
  --accent: #229ed9;
  --accent-soft: rgba(34, 158, 217, 0.12);
  --amber: #9a761f;
  --green: #258b55;
  --danger: #c74343;
  --shadow: 0 10px 26px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--bg-a);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

.aurora {
  display: none;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  border-radius: 8px;
  padding: 34px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 10px;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%238f9ba8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[dir="rtl"] select {
  padding-left: 48px;
  background-position: left 16px center;
}

html[dir="ltr"] select {
  padding-right: 48px;
  background-position: right 16px center;
}

textarea {
  min-height: 86px;
  resize: vertical;
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.primary,
.ghost,
.small {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}

.primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.ghost,
.small {
  background: var(--card);
  border-color: var(--line);
}

.icon-only {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.error {
  min-height: 22px;
  color: var(--danger);
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  direction: ltr;
  gap: 18px;
  padding: 18px;
  align-items: start;
}

html[dir="ltr"] .app-shell {
  flex-direction: row;
}

html[dir="rtl"] .app-shell {
  flex-direction: row;
}

html[dir="ltr"] .sidebar {
  order: 1;
  direction: ltr;
}

html[dir="ltr"] .content {
  order: 2;
  direction: ltr;
}

html[dir="rtl"] .sidebar {
  order: 2;
  direction: rtl;
}

html[dir="rtl"] .content {
  order: 1;
  direction: rtl;
}

.sidebar {
  width: 280px;
  flex: 0 0 280px;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  background: var(--sidebar-glass);
  border-color: var(--sidebar-line);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 18px;
  overflow: auto;
  align-self: start;
}

.menu-toggle,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.topbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.menu-open {
  overflow: hidden;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-brand strong,
.side-brand span {
  display: block;
}

.side-brand span {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
}

html[dir="rtl"] .nav-link {
  flex-direction: row;
  text-align: right;
}

html[dir="ltr"] .nav-link {
  flex-direction: row;
  text-align: left;
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}

.side-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

html[dir="rtl"] .side-actions {
  justify-content: flex-end;
}

.content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  border-radius: 8px;
  min-height: 92px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.bot-state {
  color: var(--green);
  background: rgba(79, 180, 119, 0.12);
  border: 1px solid rgba(79, 180, 119, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  white-space: nowrap;
}

.bot-state.off {
  color: var(--amber);
  background: rgba(217, 164, 65, 0.12);
  border-color: rgba(217, 164, 65, 0.22);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.revenue-panel {
  min-height: 98px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.revenue-panel h3 {
  font-size: 30px;
}

.revenue-panel svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.sales-chart-panel {
  margin-top: 18px;
}

.sales-chart {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 12px 4px 0;
}

.chart-column {
  height: 205px;
  display: grid;
  grid-template-rows: 24px 1fr 24px;
  gap: 7px;
  text-align: center;
  color: var(--muted);
}

.chart-track {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.chart-track span {
  width: 100%;
  min-height: 0;
  background: var(--accent);
  transition: height 240ms ease;
}

.protocol-chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.protocol-chart h4 {
  width: 100%;
}

.protocol-chart span {
  display: inline-flex;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.stat {
  min-height: 122px;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

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

.stat strong {
  font-size: 30px;
}

.panel {
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}

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

.panel-title.compact {
  margin: 10px 0 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

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

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

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

.toggle input {
  width: 18px;
  min-height: 18px;
}

.field-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.check-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.check-card input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.check-card > span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

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

.check-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  direction: ltr;
  text-align: left;
  border-radius: 8px;
}

.mini-input::-webkit-outer-spin-button,
.mini-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.plans-list,
.order-list {
  display: grid;
  gap: 12px;
}

.plan-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card);
}

.plan-card header,
.order-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--card);
  color: var(--muted);
}

.badge.pending {
  color: var(--amber);
  background: rgba(217, 164, 65, 0.12);
}

.badge.approved,
.badge.delivered,
.badge.open,
.badge.active {
  color: var(--green);
  background: rgba(79, 180, 119, 0.12);
}

.order-card > header > .badge {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: flex-start;
}

.order-card.status-delivered {
  border-inline-start: 3px solid var(--green);
}

.renewal-config {
  margin-top: 12px;
}

.renewal-config > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.backup-section {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.backup-section p {
  color: var(--muted);
  line-height: 1.8;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.restore-picker {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.restore-picker input {
  display: none;
}

.badge.rejected,
.badge.closed,
.badge.inactive {
  color: var(--danger);
  background: rgba(224, 93, 93, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.actions .small {
  min-width: 0;
}

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

.receipt {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.receipt-preview-link {
  display: inline-block;
  margin: 6px 0 10px;
}

.receipt-preview {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
}

.bot-text-section {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
}

.bot-textarea {
  min-height: 108px;
}

.config-preview {
  margin: 12px 0 0;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}

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

.ticket-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--glass);
}

.ticket-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.ticket-card h3 {
  font-size: 15px;
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.ticket-message {
  width: fit-content;
  max-width: min(620px, 78%);
  border: 0;
  border-radius: 18px;
  padding: 7px 11px 6px;
  background: var(--surface-strong);
  box-shadow: none;
}

.ticket-message.from-admin {
  margin-inline-start: auto;
  color: #ffffff;
  background: var(--accent);
}

.ticket-message span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.8;
}

.ticket-message.from-admin span {
  color: rgba(255, 255, 255, 0.78);
}

.ticket-message p {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
}

.ticket-message.from-admin p {
  color: #ffffff;
}

.ticket-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
}

.ticket-reply textarea {
  min-height: 42px;
  max-height: 96px;
  border-radius: 8px;
  resize: vertical;
}

.ticket-reply .actions {
  margin-top: 0;
  gap: 6px;
  flex-wrap: nowrap;
}

.ticket-reply .small {
  min-height: 42px;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.broadcast-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.broadcast-form textarea {
  min-height: 48px;
  max-height: 120px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.customers-table {
  min-width: 760px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  inset-inline: 24px auto;
  bottom: 24px;
  max-width: 360px;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.delivery-dialog {
  width: min(620px, calc(100vw - 28px));
  color: var(--ink);
  border-radius: 8px;
  padding: 18px;
}

.delivery-dialog::backdrop {
  background: rgba(2, 8, 18, 0.62);
  backdrop-filter: blur(8px);
}

.config-input {
  min-height: 180px;
  direction: ltr;
  text-align: left;
}

@media (max-width: 980px) {
  .app-shell,
  html[dir="ltr"] .app-shell,
  html[dir="rtl"] .app-shell {
    display: block;
    padding: 12px;
    min-height: 100vh;
  }

  .sidebar {
    width: min(330px, 88vw);
    height: 100dvh;
    max-height: none;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1001;
    margin: 0;
    border-radius: 0;
    padding: 18px;
    overflow-y: auto;
    gap: 14px;
    transition: transform 0.22s ease;
  }

  .content {
    width: 100%;
    min-width: 0;
  }

  html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    transform: translateX(105%);
  }

  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-105%);
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .menu-toggle,
  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
  }

  .side-brand {
    padding-inline-end: 48px;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .sidebar-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 10px 12px;
  }

  html[dir="rtl"] .nav-link {
    justify-content: flex-start;
    flex-direction: row;
    text-align: right;
  }

  html[dir="ltr"] .nav-link {
    justify-content: flex-start;
    flex-direction: row;
    text-align: left;
  }

  .nav-link span {
    display: inline;
  }

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

  .side-actions,
  html[dir="rtl"] .side-actions {
    justify-content: flex-start;
  }

  html[dir="rtl"] .side-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .sidebar,
  .panel {
    padding: 14px;
  }

  .side-brand {
    align-items: flex-start;
  }

  .nav-link {
    min-height: 48px;
    border-color: var(--line);
    background: var(--card);
  }

  .stats-grid,
  .split,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .sales-chart {
    gap: 7px;
    overflow-x: auto;
  }

  .chart-column {
    min-width: 38px;
  }

  .stat {
    min-height: 92px;
    padding: 14px;
  }

  .stat strong,
  .revenue-panel h3 {
    font-size: 24px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

  .panel-title,
  .plan-card header,
  .order-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    min-height: 72px;
    padding: 14px;
    align-items: center;
    flex-direction: row;
  }

  .topbar-main {
    flex: 1 1 auto;
  }

  .topbar-main > div {
    min-width: 0;
  }

  .topbar h2 {
    overflow-wrap: anywhere;
  }

  .bot-state {
    max-width: 42%;
    white-space: normal;
    text-align: center;
  }

  .ticket-message {
    max-width: 88%;
  }

  .ticket-reply {
    grid-template-columns: 1fr;
  }

  .ticket-reply .actions {
    flex-wrap: wrap;
  }

  .broadcast-form {
    grid-template-columns: 1fr;
  }

  .customers-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .customers-table thead {
    display: none;
  }

  .customers-table,
  .customers-table tbody,
  .customers-table tr,
  .customers-table td {
    display: block;
    width: 100%;
  }

  .customers-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    overflow: hidden;
  }

  .customers-table tr.empty-row {
    background: transparent;
  }

  .customers-table td {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(96px, 0.4fr) minmax(0, 0.6fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
  }

  .customers-table td:last-child {
    border-bottom: 0;
  }

  .customers-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .customers-table .empty-row td {
    display: block;
    text-align: center;
  }

  .customers-table .empty-row td::before {
    content: "";
  }

  .customers-table .table-actions {
    justify-content: stretch;
  }

  .customers-table .table-actions .small {
    flex: 1 1 130px;
  }

  .actions .small,
  .actions .primary {
    flex: 1 1 140px;
  }

  .ticket-card,
  .plan-card,
  .order-card {
    padding: 12px;
  }

  .receipt-preview {
    width: 100%;
  }

  .toast {
    inset-inline: 10px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding: 8px;
  }

  .sidebar,
  .panel {
    padding: 12px;
  }

  .topbar {
    padding: 12px;
  }

  input,
  textarea,
  select {
    font-size: 14px;
  }
}
