@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
:root {
  --page: #f5f7fa;
  --surface: #fff;
  --text: #182b3a;
  --muted: #627584;
  --line: #e1e7ed;
  --primary: #15695f;
  --primary-hover: #10574f;
  --primary-soft: #eaf5f1;
  --blue: #235e91;
  --blue-soft: #eef5fb;
  --success: #176349;
  --success-soft: #e9f6ed;
  --warning: #8a5705;
  --warning-soft: #fff5df;
  --danger: #a62c3a;
  --danger-soft: #fff0f2;
  --focus: #11857a;
  --radius: 12px;
  --shadow: 0 8px 30px #213e5410;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 12px;
  color: var(--text);
  width: 100%;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #7b8b97;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
  margin: 0;
}
input[type="number"] {
  direction: ltr;
  text-align: right;
}
input[readonly] {
  background: var(--page);
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  right: 16px;
  z-index: 100;
  background: var(--text);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  font-weight: 750;
  line-height: 1.65;
}
h2 {
  font-size: 18px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.centered {
  text-align: center;
}
.ltr {
  direction: ltr;
  unicode-bidi: plaintext;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.icon {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.75;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.icon-button:hover {
  background: var(--page);
  border-color: var(--line);
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: white;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--page);
  border-color: #a7b9c6;
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button.primary:hover {
  background: var(--primary-hover);
}
.button.soft {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}
.button.danger {
  color: var(--danger);
  border-color: #edc6cc;
}
.button.small {
  min-height: 40px;
  padding: 7px 12px;
}
.button.text {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
  padding-inline: 8px;
}
.button .icon {
  opacity: 1;
}
.button.primary .icon {
  filter: brightness(0) invert(1);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 4px;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-content: center;
}
.brand-mark i {
  background: var(--primary);
  border-radius: 3px;
}
.brand-mark i:nth-child(2) {
  opacity: 0.4;
}
.brand-mark i:nth-child(3) {
  opacity: 0.7;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 28px 18px 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar > .brand {
  padding-inline: 8px;
  margin-bottom: 34px;
}
.workspace-label {
  color: #748693;
  font-size: 11px;
  padding: 0 14px;
  margin-bottom: 8px;
}
nav {
  display: grid;
  gap: 4px;
}
nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 10px 14px;
  color: #4d6374;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
}
nav > a:hover {
  background: var(--page);
}
nav > a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 750;
  box-shadow: inset -3px 0 var(--primary);
}
nav > a.active .icon {
  opacity: 1;
  filter: invert(26%) sepia(41%) saturate(1078%) hue-rotate(124deg)
    brightness(91%);
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 15px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.support-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.support-link small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.support-link > span:last-child {
  margin-right: auto;
  font-size: 20px;
  color: var(--muted);
}
.account {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
  padding-block: 18px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #e6eef3;
  color: #314f65;
  font-size: 14px;
  font-weight: 700;
}
.account strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.account .icon-button {
  margin-right: auto;
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.work-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  gap: 16px;
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-picker {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}
.site-picker > .icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
}
.site-picker select {
  padding-right: 42px;
  border-color: var(--line);
  background: var(--page);
  font-size: 12px;
}
.menu-toggle {
  display: none;
}
main {
  padding: 28px 34px 40px;
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
  min-height: calc(100dvh - 140px);
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 16px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-body {
  padding: 22px;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.welcome-strip {
  border-bottom: 1px solid var(--line);
  padding: 6px 0 23px;
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.welcome-strip p {
  color: var(--muted);
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 26px;
  overflow: hidden;
}
.stat {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.stat:last-child {
  border-left: 0;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat strong {
  font-size: 32px;
  line-height: 1.8;
  font-weight: 650;
  display: block;
  margin-block: 5px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat.actionable strong {
  color: var(--primary);
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: start;
}
.site-health-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 21px;
  border-top: 1px solid var(--line);
}
.site-health-row strong {
  display: block;
  font-size: 13px;
}
.site-health-row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.list-count {
  font-size: 12px;
  background: var(--page);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 500;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 12px;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #f8fafc;
  border-block: 1px solid var(--line);
  padding: 12px 20px;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfd;
}
td strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.table-main {
  min-width: 170px;
  max-width: 320px;
}
.table-main strong {
  overflow-wrap: anywhere;
}
.table-actions {
  text-align: left;
  white-space: nowrap;
}
.order-number {
  font-family: inherit;
  font-size: 11px;
  direction: ltr;
  display: inline-block;
  color: var(--muted);
}
.site-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #48657c;
  white-space: nowrap;
  font-size: 11px;
}
.site-tag::before {
  content: "";
  height: 6px;
  width: 6px;
  background: #6b9db9;
  border-radius: 50%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eef1f5;
  color: #586a79;
  white-space: nowrap;
}
.badge.success {
  background: var(--success-soft);
  color: var(--success);
}
.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge.info {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.dot::before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-field {
  position: relative;
  min-width: 210px;
  max-width: 380px;
  flex: 1;
}
.search-field img {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
}
.search-field input {
  padding-right: 42px;
  background: #fff;
  font-size: 12px;
}
.toolbar-group {
  display: flex;
  gap: 10px;
  align-items: end;
}
.toolbar label > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.toolbar select {
  font-size: 12px;
  min-width: 150px;
}
.tabs {
  display: flex;
  gap: 23px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  min-height: 52px;
  padding: 13px 0 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.tab span {
  background: var(--page);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
  color: var(--muted);
}
.empty-state {
  padding: 54px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
  opacity: 0.4;
  margin-bottom: 4px;
}
.empty-state h3 {
  font-size: 15px;
}
.empty-state p {
  font-size: 12px;
  max-width: 450px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: start;
  gap: 11px;
  padding: 14px 17px;
  margin-bottom: 18px;
  border: 1px solid #cce3ec;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #305b78;
  font-size: 12px;
}
.notice.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: #eddab0;
}
.notice.danger,
.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f0cad0;
}
.notice.success {
  background: var(--success-soft);
  color: var(--success);
  border-color: #cce4d3;
}
.notice p + p {
  margin-top: 5px;
}
.notice strong {
  font-weight: 650;
}
.notice .button {
  margin-right: auto;
  min-height: 34px;
  background: transparent;
}
.form-error {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  margin-block: 12px;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination span {
  min-width: 70px;
  text-align: center;
}
.app-footer {
  padding: 12px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  margin-top: auto;
}
.app-footer > span:last-child {
  text-align: left;
}
.detail-dialog {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(680px, 95vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0;
  color: var(--text);
  box-shadow: var(--shadow);
  background: #fff;
}
.detail-dialog::backdrop,
.confirm-dialog::backdrop {
  background: #18374966;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  position: sticky;
  top: 0;
  background: #fffffffa;
  z-index: 1;
}
.dialog-header h2 {
  font-size: 18px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.dialog-header .muted {
  font-size: 11px;
}
.dialog-body {
  padding: 24px 27px 36px;
}
.dialog-body .panel {
  border-radius: 9px;
}
.detail-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.detail-section:last-child {
  border-bottom: 0;
}
.detail-section h3 {
  margin-bottom: 14px;
  font-size: 14px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.detail-value span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.detail-value strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.detail-value.wide {
  grid-column: 1/-1;
}
.status-line {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: block;
}
.field > span,
.field > label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 6px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.field.wide {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  cursor: pointer;
}
.check-field input {
  flex: 0 0 18px;
}
.field-actions,
.dialog-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.variant-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 12px;
  overflow: hidden;
}
.variant-card summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 15px 17px;
  min-height: 56px;
  font-size: 13px;
  font-weight: 600;
}
.variant-card summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
}
.variant-card[open] summary::after {
  content: "−";
}
.variant-card[open] summary {
  border-bottom: 1px solid var(--line);
}
.variant-card summary small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.variant-body {
  padding: 18px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid #d8e2ea;
  margin-right: 5px;
}
.timeline li {
  position: relative;
  padding: 0 18px 19px 0;
  font-size: 12px;
}
.timeline li::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: #9cb2c4;
  border-radius: 50%;
  box-shadow: 0 0 0 4px white;
}
.timeline small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.confirm-dialog {
  width: min(480px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.confirm-dialog h2 {
  margin-bottom: 14px;
}
.confirm-dialog p {
  font-size: 13px;
  color: var(--muted);
}
.change-list {
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.change-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.change-row:last-child {
  border: 0;
}
.change-row span:first-child {
  color: var(--muted);
}
.change-row del {
  color: #8b5b60;
  text-decoration: line-through;
  overflow-wrap: anywhere;
}
.change-row strong {
  color: var(--primary);
  overflow-wrap: anywhere;
}
.permission-group {
  margin-bottom: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.permission-group legend {
  padding-inline: 7px;
  font-weight: 600;
  font-size: 13px;
}
.permissions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.permissions .check-field {
  font-size: 11px;
}
.members-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sync-time {
  font-size: 11px;
  color: var(--muted);
}
.operation-message {
  max-width: 330px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.skeleton {
  height: 16px;
  background: #e9eef2;
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-row {
  padding: 23px 20px;
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.skeleton-row .skeleton {
  flex: 1;
}
.skeleton-row .skeleton:first-child {
  flex: 2;
}
.loading-label {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  box-shadow: 0 8px 28px #182b3a30;
  font-size: 13px;
}
.toast.error {
  background: var(--danger);
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: var(--muted);
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-intro {
  background: #edf3f5;
  padding: 48px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  min-height: 100dvh;
}
.auth-intro h1 {
  font-size: 40px;
  line-height: 1.8;
  color: #173d45;
  font-weight: 700;
}
.auth-intro p {
  max-width: 400px;
  font-size: 15px;
  color: #486673;
  line-height: 2.2;
  margin-top: 20px;
}
.auth-intro .auth-footnote {
  font-size: 11px;
  margin: 0;
}
.auth-form-wrap {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 40px 24px;
}
.auth-form-wrap h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.auth-form-wrap .subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-form-wrap .field {
  margin-bottom: 16px;
}
.auth-form-wrap .button {
  width: 100%;
  margin-top: 8px;
}
.auth-form-wrap .muted {
  font-size: 11px;
  margin-top: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0;
  color: var(--muted);
  font-size: 11px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  min-height: 44px;
  padding-inline: 8px;
}
.pending-panel {
  max-width: 640px;
  margin: 70px auto;
  background: white;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pending-panel h2 {
  margin-bottom: 14px;
}
.pending-panel p {
  color: var(--muted);
  font-size: 13px;
}
.pending-panel .button {
  margin-top: 22px;
}
.stock-chip {
  font-size: 11px;
  color: var(--muted);
}
.mobile-only {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1600px) {
  main {
    padding-inline: 48px;
  }
  .topbar {
    padding-inline: 48px;
  }
  .sidebar {
    padding-top: 29px;
  }
  .app-shell {
    grid-template-columns: 258px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar > .brand {
    padding-inline: 3px;
    font-size: 16px;
  }
  .sidebar nav > a {
    padding-inline: 11px;
    font-size: 12px;
  }
  main,
  .topbar {
    padding-inline: 24px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 18px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat strong {
    font-size: 28px;
  }
  .auth-intro {
    padding-inline: 10%;
  }
  .auth-intro h1 {
    font-size: 32px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    right: 0;
    width: 252px;
    transform: translateX(100%);
    transition: transform 0.2s;
    box-shadow: -10px 0 50px #182b3a20;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 70px;
    padding-inline: 17px;
  }
  .site-picker {
    min-width: 190px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-left: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat {
    padding: 17px 22px;
  }
  .page-heading {
    align-items: start;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    display: none;
  }
  .auth-form-wrap {
    padding-block: 56px;
  }
  main {
    padding: 22px 19px 30px;
  }
  .app-footer {
    padding-inline: 19px;
  }
  .details-grid,
  .form-grid {
    gap: 14px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
  }
  .table-main {
    min-width: 160px;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 22px;
  }
  .topbar {
    gap: 8px;
    padding-inline: 10px;
  }
  .topbar-title {
    font-size: 11px;
  }
  .topbar-tools {
    gap: 0;
  }
  .site-picker {
    min-width: 0;
    width: 180px;
  }
  .site-picker select {
    font-size: 11px;
  }
  .topbar-tools > .icon-button {
    width: 37px;
    flex-basis: 37px;
  }
  .page-heading {
    margin-bottom: 19px;
    flex-wrap: wrap;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .page-actions {
    width: 100%;
  }
  .page-actions > .button {
    flex: 1;
  }
  .welcome-strip {
    align-items: start;
    flex-direction: column;
    gap: 13px;
  }
  .welcome-strip h1 {
    font-size: 22px;
  }
  .welcome-strip p {
    font-size: 12px;
  }
  .stats {
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 10px;
  }
  .section-heading {
    padding: 17px 15px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading .button {
    padding-inline: 9px;
    font-size: 11px;
  }
  .panel-body {
    padding: 16px;
  }
  .toolbar {
    padding: 15px;
    gap: 12px;
  }
  .toolbar-group {
    width: 100%;
    flex-wrap: wrap;
  }
  .toolbar-group > .field {
    flex: 1;
  }
  .search-field {
    min-width: 100%;
    width: 100%;
  }
  .toolbar select {
    min-width: 120px;
  }
  .tabs {
    padding-inline: 15px;
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .table-scroll {
    overflow-x: auto;
  }
  th,
  td {
    padding: 13px 14px;
  }
  .panel-footer {
    padding: 13px 15px;
    flex-wrap: wrap;
  }
  .app-footer {
    font-size: 9px;
  }
  .detail-dialog {
    width: 100vw;
    border: 0;
  }
  .dialog-header {
    padding: 18px;
  }
  .dialog-body {
    padding: 21px 18px;
  }
  .form-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
  .field.wide,
  .detail-value.wide {
    grid-column: auto;
  }
  .permissions {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    flex-direction: column;
  }
  .dialog-actions > .button {
    width: 100%;
  }
  .change-row {
    font-size: 11px;
  }
  .pending-panel {
    margin: 20px auto;
    padding: 24px;
  }
  .toast {
    bottom: 16px;
    left: 16px;
  }
  .mobile-only {
    display: block;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .toolbar input,
  .toolbar select {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.support-link {
  width: 100%;
  background: transparent;
  border-inline: 0;
  border-bottom: 0;
  text-align: right;
  font-family: inherit;
}
.currency {
  display: inline !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  color: var(--muted);
  margin: 0 !important;
}
.delivery-form {
  margin-top: 20px;
}
.permission-heading {
  margin-bottom: 18px;
}
.preserve-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.detail-section > .muted {
  margin-top: 14px;
}
