@font-face {
  font-family: "Ayman UI";
  src: local("Tahoma"), local("Arial");
}

:root {
  --navy: #172f6a;
  --navy-dark: #102452;
  --navy-soft: #edf2fb;
  --ink: #152035;
  --muted: #667085;
  --line: #d9dfeb;
  --line-strong: #c4ccda;
  --surface: #ffffff;
  --background: #f4f6fa;
  --success: #18794e;
  --danger: #b42318;
  --shadow: 0 12px 32px rgba(17, 39, 84, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Ayman UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  z-index: 1000;
  inset-inline-start: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 17px;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 36px rgba(14, 27, 52, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: var(--danger);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    linear-gradient(140deg, rgba(23, 47, 106, 0.96), rgba(16, 36, 82, 0.98)),
    var(--navy);
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(4, 16, 43, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand--auth {
  padding-bottom: 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  letter-spacing: -1px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-heading h1,
.page-heading h1 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
}

.auth-heading p,
.page-heading p,
.section-heading p,
.info-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.signature-field__head > span {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field small,
.signature-field small,
.signature-field__head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.field input,
.field select,
.search-field input {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms, box-shadow 150ms;
}

.field input:focus,
.field select:focus,
.search-field input:focus,
.items-table input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 47, 106, 0.1);
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: 150ms ease;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button--primary {
  color: #fff;
  background: var(--navy);
}

.button--primary:hover {
  background: var(--navy-dark);
}

.button--secondary {
  color: var(--navy);
  border-color: var(--line-strong);
  background: #fff;
}

.button--secondary:hover,
.button--quiet:hover {
  background: var(--navy-soft);
}

.button--quiet {
  min-height: 37px;
  padding-inline: 13px;
  color: var(--navy);
  background: transparent;
}

.button--wide {
  width: 100%;
}

.link-button,
.back-link {
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.signature-field {
  display: grid;
  gap: 8px;
}

.signature-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signature-pad {
  width: 100%;
  height: 135px;
  display: block;
  border: 1px dashed #98a2b3;
  border-radius: 11px;
  background:
    linear-gradient(transparent 89%, rgba(23, 47, 106, 0.15) 89%, rgba(23, 47, 106, 0.15) 90%, transparent 90%),
    #fbfcfe;
  touch-action: none;
  cursor: crosshair;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  inset-inline: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar .brand__mark {
  width: 40px;
  height: 40px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-menu__text {
  text-align: left;
}

.user-menu__text strong,
.user-menu__text span {
  display: block;
}

.user-menu__text strong {
  font-size: 13px;
}

.user-menu__text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.menu-button {
  display: none;
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: 72px;
  right: 0;
  bottom: 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 25px 16px 18px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.sidebar__title {
  padding: 0 10px 12px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  min-height: 47px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: #475467;
  background: transparent;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.nav-item:hover {
  background: #f7f8fb;
}

.nav-item.is-active {
  color: var(--navy);
  background: var(--navy-soft);
}

.nav-item__symbol {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

.nav-item.is-active .nav-item__symbol {
  color: var(--navy);
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--navy);
  font-size: 10px;
}

.sidebar__footer {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
  color: #98a2b3;
  font-size: 10px;
}

.workspace {
  min-height: 100vh;
  margin-right: 248px;
  padding: 108px clamp(22px, 4vw, 52px) 45px;
}

.view {
  max-width: 1280px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.page-heading--compact {
  align-items: center;
}

.page-heading--compact h1 {
  font-size: clamp(23px, 2.6vw, 30px);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 17px;
}

.stat-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 7px 22px rgba(17, 39, 84, 0.045);
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card > strong {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 36px;
}

.stat-card > small,
.stat-card--primary span {
  color: var(--muted);
  font-size: 11px;
}

.stat-card--primary {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 17px;
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.stat-card--primary strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.stat-card--primary span {
  color: rgba(255, 255, 255, 0.74);
}

.stat-card__icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  font-size: 27px;
  font-weight: 300;
}

.info-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #cfe1d8;
  border-radius: 13px;
  background: #f4fbf7;
}

.info-strip__check {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-weight: 800;
}

.info-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.info-strip p {
  font-size: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 39, 84, 0.035);
}

.order-form {
  display: grid;
  gap: 17px;
}

.order-meta {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(175px, 0.55fr) minmax(240px, 0.9fr);
  align-items: end;
  gap: 17px;
  padding: 21px;
}

.approval-toggle {
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  transition: 150ms;
}

.approval-toggle:has(input:checked) {
  border-color: var(--success);
  background: #f3fbf6;
}

.approval-toggle input {
  position: absolute;
  opacity: 0;
}

.approval-toggle__check {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #aab4c3;
  border-radius: 8px;
  color: transparent;
  background: #fff;
  font-weight: 800;
}

.approval-toggle input:checked + .approval-toggle__check {
  color: #fff;
  border-color: var(--success);
  background: var(--success);
}

.approval-toggle strong,
.approval-toggle small {
  display: block;
}

.approval-toggle strong {
  color: var(--ink);
  font-size: 13px;
}

.approval-toggle small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.signature-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--success);
  background: #f4fbf7;
  font-size: 12px;
}

.signature-preview span {
  color: var(--muted);
}

.signature-preview div {
  margin-right: auto;
  font-size: 11px;
}

.items-panel {
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.section-heading p {
  font-size: 11px;
}

.items-table-wrap {
  overflow-x: auto;
}

.items-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.items-table th {
  padding: 11px 7px;
  color: #475467;
  background: #f8f9fb;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

.items-table th:first-child {
  width: 43px;
}

.items-table .product-column {
  width: 250px;
}

.items-table th:last-child {
  width: 48px;
}

.items-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #edf0f5;
  text-align: center;
}

.items-table tr:last-child td {
  border-bottom: 0;
}

.items-table input {
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  text-align: center;
}

.items-table input:hover {
  border-color: var(--line);
  background: #fff;
}

.items-table input[data-field="productName"] {
  text-align: right;
}

.items-table input[data-field="productCode"] {
  direction: ltr;
}

.items-table input[readonly] {
  cursor: default;
  color: var(--navy);
  background: var(--navy-soft);
  font-weight: 800;
}

.row-number {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.remove-row {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 7px;
  color: #98a2b3;
  background: transparent;
  font-size: 18px;
}

.remove-row:hover {
  color: var(--danger);
  background: #fff1f0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 10px;
}

.order-chip {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--navy);
  background: var(--navy-soft);
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
}

.list-panel {
  min-height: 360px;
  overflow: hidden;
}

.list-toolbar {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.search-field input {
  max-width: 390px;
  min-height: 41px;
  background: #fafbfc;
  font-size: 12px;
}

.orders-list,
.users-list {
  display: grid;
}

.order-row,
.user-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(190px, 1.4fr) 0.7fr 0.65fr auto;
  align-items: center;
  gap: 15px;
  min-height: 78px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f5;
}

.order-row:last-child,
.user-row:last-child {
  border-bottom: 0;
}

.order-row:hover,
.user-row:hover {
  background: #fbfcfe;
}

.order-row__number {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}

.order-row__supplier strong,
.order-row__supplier span,
.order-row__meta strong,
.order-row__meta span,
.user-row strong,
.user-row span {
  display: block;
}

.order-row__supplier strong,
.user-row strong {
  font-size: 13px;
}

.order-row__supplier span,
.order-row__meta span,
.user-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.order-row__meta strong {
  font-size: 12px;
  font-weight: 700;
}

.order-row__actions,
.user-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.table-action {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.table-action:hover {
  border-color: var(--navy);
}

.table-action--primary {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.status-pill {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--success);
  background: #ecf8f1;
  font-size: 10px;
  font-weight: 800;
}

.status-pill--inactive {
  color: #667085;
  background: #f2f4f7;
}

.empty-state,
.loading-state {
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.user-row {
  grid-template-columns: 1.3fr 0.8fr 0.7fr 0.6fr auto;
}

.signature-status {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.signature-status.is-missing {
  color: var(--danger);
}

.dialog {
  width: min(94vw, 560px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: auto;
  background: transparent;
  box-shadow: 0 28px 80px rgba(8, 19, 43, 0.28);
}

.dialog::backdrop {
  background: rgba(8, 19, 43, 0.56);
  backdrop-filter: blur(3px);
}

.dialog__card {
  display: grid;
  gap: 20px;
  padding: 25px;
  background: #fff;
}

.dialog__card--small {
  max-width: 440px;
}

.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog__head h2 {
  margin: 4px 0 0;
  font-size: 21px;
}

.dialog__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: #f4f6f8;
  font-size: 22px;
}

.dialog__message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 3px;
}

.dialog__actions--stack {
  display: grid;
}

.send-summary {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--navy-soft);
}

.send-summary strong,
.send-summary span {
  display: block;
}

.send-summary strong {
  color: var(--navy);
  font-size: 12px;
  direction: ltr;
  text-align: right;
}

.send-summary span {
  margin-top: 5px;
  font-size: 13px;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .order-meta {
    grid-template-columns: 1fr 0.6fr;
  }

  .approval-toggle {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card--primary {
    grid-column: 1 / -1;
  }

  .order-row {
    grid-template-columns: 0.8fr 1.4fr 0.7fr auto;
  }

  .order-row__meta:nth-of-type(4) {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 14px;
  }

  .topbar .brand span,
  .user-menu__text,
  .topbar .button--quiet {
    display: none;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: var(--navy-soft);
  }

  .menu-button span {
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
  }

  .sidebar {
    z-index: 50;
    top: 0;
    width: min(82vw, 290px);
    padding-top: 24px;
    transform: translateX(105%);
    transition: transform 190ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    background: rgba(8, 19, 43, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    margin-right: 0;
    padding: 88px 14px 30px;
  }

  .page-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .page-heading:not(.page-heading--compact) {
    display: grid;
  }

  .page-heading .button {
    width: 100%;
  }

  .page-heading--compact {
    align-items: flex-end;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .stat-card {
    min-height: 133px;
    padding: 18px;
  }

  .stat-card--primary {
    min-height: 112px;
  }

  .stat-card > strong {
    font-size: 29px;
  }

  .info-strip {
    align-items: flex-start;
  }

  .order-meta {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .approval-toggle {
    grid-column: auto;
  }

  .signature-preview {
    grid-column: auto;
    display: grid;
    gap: 4px;
  }

  .signature-preview div {
    margin: 0;
  }

  .section-heading {
    align-items: flex-start;
    padding: 17px 16px 13px;
  }

  .section-heading p {
    display: none;
  }

  .section-heading .button {
    min-height: 38px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .items-table-wrap {
    overflow: visible;
    padding: 13px;
    background: #f8f9fb;
  }

  .items-table,
  .items-table tbody,
  .items-table tr,
  .items-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .items-table thead {
    display: none;
  }

  .items-table tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding: 39px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .items-table tr:last-child {
    margin-bottom: 0;
  }

  .items-table td {
    padding: 0;
    border: 0;
    text-align: right;
  }

  .items-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }

  .items-table td:first-child {
    position: absolute;
    top: 12px;
    right: 13px;
    width: auto;
  }

  .items-table td:first-child::before,
  .items-table td:last-child::before {
    display: none;
  }

  .items-table td:nth-child(2),
  .items-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .items-table td:last-child {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
  }

  .items-table input {
    min-height: 40px;
    border-color: var(--line);
    background: #fff;
    text-align: right;
  }

  .row-number::before {
    content: "صنف ";
  }

  .form-actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    padding: 10px;
    margin-inline: -14px;
    border-top: 1px solid var(--line);
    background: rgba(244, 246, 250, 0.95);
    backdrop-filter: blur(8px);
  }

  .form-actions .button--primary {
    flex: 1;
  }

  .order-row,
  .user-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
  }

  .order-row__number,
  .order-row__supplier,
  .order-row__meta,
  .user-row > div {
    grid-column: 1;
  }

  .order-row__actions,
  .user-row__actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    flex-direction: column;
    align-self: center;
  }

  .order-row__meta:nth-of-type(4) {
    display: block;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dialog {
    width: calc(100vw - 22px);
  }

  .dialog__card {
    padding: 20px 17px;
  }

  .auth-card {
    padding: 27px 20px;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card--primary {
    grid-column: auto;
  }

  .page-heading--compact {
    display: grid;
  }

  .page-heading--compact .button {
    width: 100%;
  }
}

/* COMPANY_LOGO_1 */
.brand__mark.brand__mark--logo {
  width: 100px;
  height: 50px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

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

.topbar .brand__mark.brand__mark--logo {
  width: 96px;
  height: 46px;
}

.brand--auth .brand__mark.brand__mark--logo {
  width: 120px;
  height: 60px;
}

@media (max-width: 760px) {
  .topbar .brand__mark.brand__mark--logo {
    width: 82px;
    height: 40px;
  }
}

/* COMPANY_LOGO_SQUARE */
.brand__mark.brand__mark--logo{width:44px!important;height:44px!important;padding:3px!important;border-radius:11px!important}
.topbar .brand__mark.brand__mark--logo{width:40px!important;height:40px!important}
.brand__mark--logo img{width:100%!important;height:100%!important;object-fit:contain!important}
