:root {
  --admin-bg: #F7F7F7;
  --admin-surface: #ffffff;
  --admin-surface-soft: #F6FBF8;
  --admin-border: #D6D6D6;
  --admin-border-soft: #E7E7E7;
  --admin-text: #212121;
  --admin-muted: #606060;
  --admin-primary: #FF0033;
  --admin-primary-dark: #CC0028;
  --admin-danger: #8f2017;
  --admin-shadow: 0 8px 20px rgba(33, 33, 33, 0.1);
  --admin-radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--admin-text);
  background:
    radial-gradient(circle at top left, rgba(255, 0, 51, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 67, 50, 0.08), transparent 24%),
    linear-gradient(180deg, #FFFFFF 0%, var(--admin-bg) 100%);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #114f9a;
  outline-offset: 2px;
}

.admin-app {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.admin-shell,
.admin-main {
  width: 100%;
  min-width: 0;
}

.admin-main {
  display: grid;
  gap: 22px;
}

.card.admin-page-header {
  display: grid;
  gap: 16px;
  padding: 24px 26px;
  border-color: rgba(205, 218, 210, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 248, 0.98) 62%, rgba(255, 244, 238, 0.98) 100%);
  box-shadow: 0 22px 38px rgba(33, 33, 33, 0.08);
}

.admin-page-header h1,
.admin-page-header h2,
.admin-page-header p,
.admin-section h2,
.admin-section h3,
.section-head p,
.section-head h3 {
  margin: 0;
}

.admin-page-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.admin-page-header p,
.admin-section p,
.order-card__body p,
.detail-grid p,
.detail-row p,
.detail-table td,
.detail-table th,
.helper-list,
.form-row label,
.button,
.pill-link,
.select,
.input {
  font-size: 1rem;
}

.admin-kicker {
  color: var(--admin-primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page-header__copy {
  display: grid;
  gap: 8px;
}

.admin-page-header__actions,
.admin-actions,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 32, 25, 0.08);
  color: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.button--primary .nav-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.admin-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-sidebar__brand,
.admin-sidebar__nav,
.admin-sidebar__tools {
  display: grid;
  gap: 12px;
}

.card.admin-sidebar__brand {
  padding: 22px 20px;
  border-color: #213028;
  background: linear-gradient(160deg, #0f1915 0%, #223229 100%);
  box-shadow: 0 22px 34px rgba(16, 25, 21, 0.26);
}

.admin-sidebar__brand h2,
.admin-sidebar__brand p {
  margin: 0;
}

.admin-sidebar__brand h2,
.admin-sidebar__brand p {
  color: #ffffff;
}

.admin-sidebar__brand .admin-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar__brand .muted {
  color: rgba(255, 255, 255, 0.78);
}

.card.admin-sidebar__nav {
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.admin-sidebar__link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(214, 214, 214, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 32, 25, 0.06);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-sidebar__link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 0, 51, 0.28);
}

.admin-sidebar__link.is-active {
  border-color: #B80024;
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 30px rgba(255, 0, 51, 0.14);
}

.admin-sidebar__link.is-priority {
  border-color: rgba(184, 0, 36, 0.26);
  background: linear-gradient(180deg, rgba(255, 246, 248, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(255, 0, 51, 0.1);
}

.admin-sidebar__link.is-priority .admin-sidebar__copy strong {
  color: #8d001f;
}

.admin-sidebar__link.is-priority .admin-sidebar__badge {
  background: linear-gradient(180deg, #ff0033 0%, #d9002b 100%);
  color: #ffffff;
}

.admin-sidebar__link.is-priority.is-active {
  box-shadow: 0 18px 34px rgba(255, 0, 51, 0.16);
}

.admin-sidebar__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(111, 133, 120, 0.32);
  background: #ffffff;
  color: #22322c;
}

.admin-sidebar__link.is-active .admin-sidebar__icon {
  border-color: #B80024;
  background: linear-gradient(180deg, var(--admin-primary) 0%, #D9002B 100%);
  color: #ffffff;
}

.admin-sidebar__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar__copy strong,
.admin-sidebar__copy small {
  display: block;
}

.admin-sidebar__copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.admin-sidebar__copy small {
  color: var(--admin-muted);
  font-size: 0.86rem;
  line-height: 1.2;
}

.admin-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 32, 25, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.card.admin-sidebar__tools {
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.admin-sidebar__tool-group {
  display: grid;
  gap: 10px;
}

.admin-sidebar__tools .button,
.admin-sidebar__tools .pill-link {
  width: 100%;
}

.admin-section {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(209, 220, 214, 0.95);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.98) 100%);
  box-shadow: 0 16px 28px rgba(22, 36, 30, 0.06);
  scroll-margin-top: 20px;
}

.admin-section__header {
  display: grid;
  gap: 8px;
}

.button,
.pill-link,
.select,
.input {
  border: 2px solid var(--admin-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 32, 25, 0.08);
  color: var(--admin-text);
}

.button,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover,
.pill-link:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 0, 36, 0.28);
  box-shadow: 0 12px 24px rgba(15, 32, 25, 0.1);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--admin-primary) 0%, #D9002B 100%);
  border-color: #8E3E17;
}

.button--ghost {
  background: #ffffff;
}

.toolbar,
.catalog-secondary,
.order-card__actions,
.detail-grid {
  display: grid;
  gap: 12px;
}

.card {
  padding: 20px;
  border: 1px solid rgba(212, 222, 216, 0.95);
  border-radius: 20px;
  background: var(--admin-surface);
  box-shadow: 0 12px 24px rgba(22, 36, 30, 0.08);
}

.admin-shortcuts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.card.shortcut-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

.card.shortcut-card--priority {
  border-color: rgba(184, 0, 36, 0.22);
  background: linear-gradient(135deg, rgba(255, 246, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(255, 0, 51, 0.1);
}

.shortcut-card h3,
.shortcut-card p {
  margin: 0;
}

.shortcut-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.shortcut-card__actions .button,
.shortcut-card__actions .pill-link {
  width: 100%;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-weight: 800;
}

.select,
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
}

.order-card__actions .select {
  min-height: 42px;
  width: fit-content;
  min-width: 180px;
  max-width: 220px;
  padding: 8px 36px 8px 14px;
}

.order-card__actions .form-row {
  gap: 6px;
}

.order-card__actions .form-row label {
  font-size: 0.94rem;
}

.order-card__actions .inline-form > .button,
.order-card__actions .inline-form > .pill-link {
  min-height: 42px;
  min-width: 0;
  width: fit-content;
  padding: 8px 18px;
}

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

.card.stat {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.15;
  color: #183027;
}

.stat span {
  color: var(--admin-muted);
  font-weight: 700;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0033 0%, #ff7a59 100%);
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message {
  padding: 14px 16px;
  border: 2px solid currentcolor;
  border-radius: 14px;
  font-weight: 700;
}

.message--success {
  background: #e9f8ee;
  color: #165b2d;
}

.message--error {
  background: #fdeeee;
  color: var(--admin-danger);
}

.catalog-import-alert {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 2px solid rgba(184, 126, 0, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 246, 214, 0.98) 100%);
  box-shadow: 0 16px 28px rgba(184, 126, 0, 0.12);
}

.catalog-import-alert h2,
.catalog-import-alert p {
  margin: 0;
}

.catalog-import-alert__copy {
  display: grid;
  gap: 8px;
}

.catalog-import-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-grid {
  display: grid;
  gap: 14px;
}

.orders-grid > .card {
  height: 100%;
}

.order-card__top,
.order-meta,
.detail-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-card__top {
  align-items: flex-start;
}

.order-card__top > div:first-child {
  display: grid;
  gap: 6px;
}

.order-card__top h2,
.order-card__top h3,
.order-card__top p,
.order-card__body p,
.detail-row p,
.detail-grid p,
.detail-grid h3 {
  margin: 0;
}

.order-meta {
  color: var(--admin-muted);
  font-weight: 700;
  justify-content: flex-start;
  gap: 18px;
  font-size: 0.94rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge--pending { background: #fff3cd; color: #7a5600; }
.status-badge--confirmed { background: #e8f8ee; color: #165b2d; }
.status-badge--preparing { background: #dff6f2; color: #0c5c54; }
.status-badge--delivered { background: #e7f0ff; color: #184e95; }
.status-badge--cancelled { background: #fdeeee; color: var(--admin-danger); }

.muted {
  color: var(--admin-muted);
  font-weight: 600;
}

.order-card__actions {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
  justify-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border-soft);
}

.order-card__actions .button,
.order-card__actions .pill-link {
  min-height: 52px;
}

.order-card__actions .button--primary {
  box-shadow: 0 5px 14px rgba(255, 0, 51, 0.24);
}

.order-card__actions .button--ghost {
  background: #FFFFFF;
}

.order-card__actions .link-row {
  width: 100%;
}

.order-card__actions .link-row .button,
.order-card__actions .link-row .pill-link {
  width: 100%;
}

.inline-form {
  display: grid;
  gap: 12px;
}

.inline-form > .button,
.inline-form > .pill-link {
  width: auto;
}

.order-card__actions .inline-form > .button,
.order-card__actions .inline-form > .pill-link {
  justify-self: start;
  min-width: 0;
  width: fit-content;
  padding-inline: 18px;
}

.order-card__actions .inline-form {
  max-width: 260px;
}

.order-card__actions .form-row {
  max-width: 260px;
}

.inline-form--compact {
  display: inline-flex;
}

.menu-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.menu-state--enabled {
  background: #e9f8ee;
  color: #165b2d;
}

.menu-state--disabled {
  background: #eef2ef;
  color: #42544b;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9f8ee;
  color: #165b2d;
  font-weight: 800;
  white-space: nowrap;
}

.offer-cell__category {
  margin-top: 6px;
}

.detail-table--offers {
  min-width: 1040px;
}

.detail-table--offers th:last-child,
.detail-table--offers td:last-child {
  text-align: left;
}

.detail-table--catalog-images {
  min-width: 1380px;
}

.detail-table--catalog-images th:last-child,
.detail-table--catalog-images td:last-child {
  text-align: left;
}

.catalog-product-row--focus,
.catalog-product-row--focus:nth-child(even) {
  background: linear-gradient(90deg, rgba(255, 245, 212, 0.96), rgba(255, 255, 255, 0.98));
}

.catalog-image-cell {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.catalog-image-thumb {
  width: 92px;
  height: 70px;
  display: block;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--admin-border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.98));
}

.catalog-image-thumb--empty {
  display: grid;
  place-items: center;
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.catalog-image-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.catalog-image-state--ok {
  background: rgba(27, 106, 54, 0.12);
  color: #1b6a36;
}

.catalog-image-state--empty {
  background: rgba(15, 32, 25, 0.08);
  color: #435a4f;
}

.catalog-image-state--warning {
  background: rgba(255, 185, 0, 0.18);
  color: #7a5200;
}

.catalog-image-path-cell code {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-image-form {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.catalog-image-form .button {
  width: 100%;
}

.detail-table tbody tr.offer-row--active,
.detail-table tbody tr.offer-row--active:nth-child(even) {
  background: linear-gradient(90deg, rgba(233, 248, 238, 0.9), rgba(255, 255, 255, 0.98));
}

.inline-form--offer {
  display: grid;
  grid-template-columns: minmax(0, 170px) auto;
  align-items: center;
  gap: 10px;
}

.input--compact {
  min-height: 42px;
}

.input--price {
  max-width: 170px;
  text-align: right;
}

.link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--admin-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.detail-table th,
.detail-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--admin-border-soft);
  text-align: left;
}

.detail-table th {
  background: #e8efea;
  color: #182b23;
  font-weight: 800;
}

.detail-table tbody tr:nth-child(even) {
  background: #f7faf8;
}

.detail-table tbody tr:hover {
  background: #eef6f1;
}

.detail-table th:last-child,
.detail-table td:last-child {
  text-align: right;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.pagination__spacer {
  flex: 1;
}

.catalog-tools {
  display: grid;
  gap: 16px;
}

.import-card,
.preview-card {
  display: grid;
  gap: 16px;
}

.section-head {
  display: grid;
  gap: 8px;
}

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

.upload-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.branding-preview {
  display: grid;
  gap: 14px;
}

.branding-preview__media {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 2px dashed var(--admin-border);
  border-radius: 20px;
  background: #f8fbff;
  overflow: hidden;
}

.branding-preview__media img {
  display: block;
  max-width: 100%;
  height: auto;
}

.branding-preview__media--logo img {
  max-height: 94px;
  object-fit: contain;
}

.branding-preview__media--banner {
  padding: 10px;
  min-height: 190px;
  background: linear-gradient(180deg, #fff9ef 0%, #f8fbff 100%);
}

.branding-preview__media--banner img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.branding-preview__media--banner-mobile {
  max-width: 420px;
}

.branding-preview__empty {
  color: var(--admin-muted);
  font-weight: 700;
  text-align: center;
}

.branding-preview__meta {
  display: grid;
  gap: 6px;
}

.branding-preview__meta p {
  margin: 0;
}

.input--file {
  border-radius: 16px;
  padding: 12px;
}

.helper-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 2px solid var(--admin-border-soft);
}

.helper-list p {
  margin: 0;
  line-height: 1.5;
}

.helper-list code,
.detail-table code {
  padding: 2px 7px;
  border: 1px solid var(--admin-border-soft);
  border-radius: 999px;
  background: #f0f5f2;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92rem;
}

.detail-table--compact {
  min-width: 620px;
}

.admin-section--priority {
  border-color: rgba(184, 0, 36, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-orders-hero {
  display: grid;
  gap: 18px;
  border-color: rgba(184, 0, 36, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 0, 51, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 246, 248, 0.99) 100%);
}

.admin-orders-hero h3,
.admin-orders-hero p {
  margin: 0;
}

.admin-orders-hero__copy {
  display: grid;
  gap: 8px;
}

.admin-orders-hero__metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-orders-hero__metric {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(184, 0, 36, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-orders-hero__metric strong {
  font-size: 1.6rem;
  line-height: 1.1;
  color: #8d001f;
}

.admin-orders-hero__metric span {
  color: var(--admin-muted);
  font-weight: 700;
}

.admin-orders-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 720px) {
  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

.toolbar__row {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.8fr;
    align-items: end;
    gap: 12px;
  }

  .toolbar__row--catalog-images {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

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

  .stats-grid--catalog {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .shortcut-card--priority {
    grid-column: span 2;
  }

  .order-card__actions {
    grid-template-columns: minmax(0, 260px) 180px;
    align-items: end;
    justify-content: start;
    column-gap: 18px;
  }

  .order-card__actions .link-row {
    justify-content: flex-start;
  }

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

  .admin-orders-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .admin-orders-hero__actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .admin-app {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .admin-sidebar {
    position: sticky;
    top: 18px;
  }
}

@media (min-width: 860px) {
  .catalog-tools {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }

  .inline-form--offer {
    grid-template-columns: minmax(0, 150px) auto;
  }
}

@media (min-width: 980px) {
  .admin-section__header {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: end;
  }
}

.admin-auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-auth-card {
  width: min(100%, 420px);
}

.admin-auth-card h1,
.admin-auth-card p {
  margin-top: 0;
}

.admin-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.button--wide {
  width: 100%;
}

.input--auth {
  border-radius: 16px;
}
@media (max-width: 859px) {
  .inline-form--offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .inline-form--offer > .button {
    width: fit-content;
  }
}

@media (max-width: 1079px) {
  .admin-sidebar__nav {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .admin-sidebar__tools {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 639px) {
  .admin-app {
    width: min(100%, calc(100% - 16px));
    padding: 16px 0 32px;
  }

  .admin-page-header,
  .admin-section,
  .card {
    padding: 16px;
  }

  .admin-sidebar__link {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .admin-sidebar__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

.admin-auth-card--wide {
  width: min(100%, 960px);
}

.admin-auth-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-auth-grid .admin-auth-form {
  margin-top: 0;
}

.admin-auth-recovery {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .admin-auth-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .catalog-tools--security {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}
.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.inline-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.input--qty {
  max-width: 96px;
}

.combo-table__summary {
  margin-top: 4px;
}

.detail-table--combo-editor {
  min-width: 760px;
}

.detail-table--combo-editor .select,
.detail-table--combo-editor .input {
  width: 100%;
}

.detail-table--combo-editor td:last-child,
.detail-table--combo-editor th:last-child {
  text-align: left;
}

.detail-table--combo-list td:last-child,
.detail-table--combo-list th:last-child {
  text-align: right;
}

.order-card__totals {
  margin: 0;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--admin-border-soft);
  border-radius: 16px;
  background: var(--admin-surface-soft);
}

.order-card__body {
  display: grid;
  gap: 10px;
}

.detail-grid > div,
.detail-row > div {
  padding: 14px 16px;
  border: 1px solid var(--admin-border-soft);
  border-radius: 16px;
  background: #ffffff;
}

