﻿:root {
  --bg: #f3f5fb;
  --bg-accent: #eef1f8;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --text: #141926;
  --muted: #6e7688;
  --muted-strong: #4d5566;
  --primary: #d91c1c;
  --primary-dark: #b31217;
  --primary-soft: #fdeceb;
  --border: #e7ebf3;
  --shadow-sm: 0 8px 24px rgba(20, 25, 38, 0.06);
  --shadow-md: 0 20px 48px rgba(20, 25, 38, 0.08);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 7px;
  --font-title: "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", Tahoma, sans-serif;
  --sidebar-width: 294px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 28, 28, 0.08), transparent 18%),
    linear-gradient(180deg, #f7f8fc 0%, #f1f4fa 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg path,
svg circle,
svg rect,
svg line,
svg polyline,
svg polygon {
  fill: none;
  stroke: currentColor;
}

.admin-auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.panel-card,
.admin-main,
.sidebar,
.admin-header-card,
.stat-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(231, 235, 243, 0.92);
  box-shadow: var(--shadow-sm);
}

.login-card {
  width: min(460px, 100%);
  padding: 36px;
  border-radius: 8px;
  display: grid;
  gap: 14px;
}

.login-card h1,
.page-head h1,
.dashboard-hero h1,
.panel-card h2,
.modal-head h2 {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: -0.03em;
}

.login-card p,
.page-head p,
.dashboard-hero p,
.modal-head p,
.section-heading p,
.placeholder-note {
  margin: 0;
  color: var(--muted);
}

.login-card input,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-card input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: rgba(217, 28, 28, 0.35);
  box-shadow: 0 0 0 4px rgba(217, 28, 28, 0.12);
}

.form-grid label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 14px 30px rgba(217, 28, 28, 0.22);
}

.btn-full {
  width: 100%;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff2f1;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert-success {
  color: #157347;
  background: #edf9f0;
  border-color: #cfead6;
}

.alert-error {
  color: #b42318;
  background: #fff1f1;
  border-color: #ffd0d5;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sidebar-scroll {
  padding: 0 22px 24px;
}

.brand-card {
  margin: 0 -22px;
  padding: 26px 22px 24px;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, #c20f15, #da171d 58%, #f59a30);
}

.brand-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.brand-card__icon svg {
  width: 28px;
  height: 28px;
}

.brand-mark {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  font-family: var(--font-title);
}

.brand-card p {
  margin: 6px 0 0;
  opacity: 0.9;
  font-weight: 600;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding-top: 24px;
}

.sidebar-nav a,
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-footer a:hover {
  background: #fff4f4;
  color: var(--primary);
}

.sidebar-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 16px 32px rgba(217, 28, 28, 0.2);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.nav-plan-badge {
  position: relative;
  top: -0.32em;
  color: #a7afbd;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-nav a.is-active .nav-plan-badge {
  color: rgba(255, 255, 255, 0.74);
}

.crm-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.crm-summary-card,
.crm-install-note {
    border: 1px solid rgba(35, 209, 139, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(35, 209, 139, 0.18), transparent 35%),
        linear-gradient(145deg, rgba(12, 26, 32, 0.94), rgba(7, 13, 18, 0.98));
    padding: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.crm-summary-card span,
.crm-summary-card small {
    display: block;
    color: rgba(238, 247, 244, 0.68);
}

.crm-summary-card strong {
    display: block;
    color: #f4fffb;
    font-size: 34px;
    line-height: 1;
    margin: 10px 0 8px;
}

.crm-summary-card.is-amber { border-color: rgba(245, 158, 11, 0.24); }
.crm-summary-card.is-blue { border-color: rgba(42, 167, 255, 0.24); }
.crm-summary-card.is-green { border-color: rgba(20, 230, 146, 0.28); }

.crm-board {
    display: grid;
    grid-template-columns: minmax(310px, 0.9fr) minmax(420px, 1.6fr) minmax(290px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.crm-filters,
.crm-test-form,
.crm-settings-form,
.crm-inline-test {
    display: grid;
    gap: 10px;
}

.crm-filters {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
}

.crm-filters input,
.crm-filters select,
.crm-reply-box textarea,
.crm-test-form input,
.crm-test-form textarea,
.crm-settings-form input,
.crm-settings-form textarea,
.crm-settings-form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(4, 12, 17, 0.82);
    color: #eef7f4;
    padding: 12px 13px;
    outline: none;
}

.crm-filters button {
    grid-column: span 2;
}

.crm-conversation-list,
.crm-log-list {
    display: grid;
    gap: 10px;
}

.crm-conversation-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.crm-conversation-item.is-active,
.crm-conversation-item:hover {
    border-color: rgba(35, 209, 139, 0.65);
    background: linear-gradient(135deg, rgba(35, 209, 139, 0.16), rgba(10, 25, 31, 0.78));
}

.crm-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0dbb7a, #075a47);
    color: #eafff7;
    font-weight: 800;
}

.crm-conversation-item__body,
.crm-conversation-item__meta {
    min-width: 0;
}

.crm-conversation-item__body strong,
.crm-conversation-item__body small,
.crm-conversation-item__meta small {
    display: block;
}

.crm-conversation-item__body small {
    color: rgba(238, 247, 244, 0.62);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-pill,
.crm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(35, 209, 139, 0.14);
    color: #50f0ad;
    font-size: 12px;
    font-style: normal;
}

.crm-badge.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.crm-badge.is-success {
    background: rgba(20, 230, 146, 0.16);
    color: #44f4ad;
}

.crm-chat {
    padding: 0;
    overflow: hidden;
}

.crm-chat-head,
.crm-reply-box {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-chat-head strong,
.crm-chat-head span {
    display: block;
}

.crm-chat-head span {
    color: rgba(238, 247, 244, 0.66);
}

.crm-chat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.crm-message-stream {
    min-height: 520px;
    max-height: 620px;
    overflow: auto;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 15%, rgba(35, 209, 139, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(2, 8, 12, 0.76), rgba(5, 13, 18, 0.94));
}

.crm-message {
    display: grid;
    gap: 6px;
    max-width: 78%;
    margin-bottom: 12px;
}

.crm-message span {
    padding: 12px 14px;
    border-radius: 16px;
    color: #f4fffb;
    background: rgba(255, 255, 255, 0.08);
}

.crm-message small {
    color: rgba(238, 247, 244, 0.48);
}

.crm-message.is-out {
    margin-left: auto;
}

.crm-message.is-out span {
    background: linear-gradient(135deg, #079462, #075b47);
}

.crm-reply-box {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
}

.crm-reply-box textarea {
    min-height: 48px;
    resize: vertical;
}

.crm-side {
    display: grid;
    gap: 16px;
}

.crm-details {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 12px;
    margin: 0;
}

.crm-details dt {
    color: rgba(238, 247, 244, 0.55);
}

.crm-details dd {
    margin: 0;
    color: #f4fffb;
}

.crm-test-form + .crm-test-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-status-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-status-form label {
    display: grid;
    gap: 7px;
    color: rgba(238, 247, 244, 0.66);
}

.crm-status-form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(4, 12, 17, 0.82);
    color: #eef7f4;
    padding: 12px 13px;
    outline: none;
}

.crm-result-box {
    max-height: 260px;
    overflow: auto;
    margin-top: 14px;
    border: 1px solid rgba(35, 209, 139, 0.18);
    border-radius: 14px;
    background: rgba(2, 8, 12, 0.88);
    color: #d9fff1;
    padding: 14px;
    white-space: pre-wrap;
}

.crm-settings-grid {
    display: grid;
    grid-template-columns: minmax(480px, 1.4fr) minmax(280px, 0.7fr);
    gap: 18px;
}

.crm-switch-row,
.crm-actions-row,
.crm-inline-test {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.crm-last-error {
    margin: 12px 0 0;
    color: rgba(238, 247, 244, 0.62);
}

.crm-last-error strong {
    color: #f4fffb;
}

.crm-switch-row label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(238, 247, 244, 0.82);
}

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

.crm-form-grid label {
    display: grid;
    gap: 7px;
    color: rgba(238, 247, 244, 0.66);
}

.crm-log-list article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.crm-log-list span,
.crm-log-list small {
    color: rgba(238, 247, 244, 0.58);
}

.crm-log-list em {
    color: #ff9a9a;
    font-style: normal;
}

.crm-empty-chat {
    min-height: 420px;
    display: grid;
    place-items: center;
    color: rgba(238, 247, 244, 0.58);
}

.crm-leads-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.crm-filters.is-wide {
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
}

.crm-filters.is-wide button {
    grid-column: auto;
}

.crm-kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.crm-kanban-column {
    min-height: 560px;
    border: 1px solid rgba(35, 209, 139, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 21, 26, 0.94), rgba(4, 11, 16, 0.96));
    padding: 12px;
}

.crm-kanban-column.is-amber {
    border-color: rgba(245, 158, 11, 0.36);
}

.crm-kanban-column.is-blue {
    border-color: rgba(42, 167, 255, 0.36);
}

.crm-kanban-column header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.crm-kanban-column header span,
.crm-funnel-list i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #23d18b;
}

.crm-kanban-column.is-amber header span,
.crm-funnel-list i.is-amber {
    background: #f59e0b;
}

.crm-kanban-column.is-blue header span,
.crm-funnel-list i.is-blue {
    background: #2aa7ff;
}

.crm-kanban-column header strong {
    flex: 1;
    color: #f4fffb;
}

.crm-kanban-column header em {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(238, 247, 244, 0.8);
    font-style: normal;
    padding: 4px 9px;
}

.crm-lead-card-list {
    display: grid;
    gap: 10px;
}

.crm-lead-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(35, 209, 139, 0.1), transparent 35%),
        rgba(255, 255, 255, 0.035);
    padding: 12px;
}

.crm-lead-card__head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.crm-lead-card__head strong,
.crm-lead-card__head small,
.crm-lead-card__meta span,
.crm-lead-card__foot small {
    display: block;
}

.crm-lead-card__head small,
.crm-lead-card__meta,
.crm-lead-card__foot small {
    color: rgba(238, 247, 244, 0.58);
}

.crm-lead-card__meta {
    display: grid;
    gap: 5px;
    font-size: 13px;
}

.crm-lead-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.crm-lead-card__foot a {
    color: #3af0a7;
    font-weight: 700;
}

.crm-funnel-list {
    display: grid;
    gap: 12px;
}

.crm-funnel-list span {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 10px;
    align-items: center;
    color: rgba(238, 247, 244, 0.72);
}

.crm-funnel-list strong {
    color: #f4fffb;
}

@media (max-width: 1280px) {
    .crm-board,
    .crm-settings-grid,
    .crm-leads-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .crm-summary-row,
    .crm-form-grid,
    .crm-filters,
    .crm-filters.is-wide,
    .crm-kanban {
        grid-template-columns: 1fr;
    }

    .crm-filters button {
        grid-column: auto;
    }

    .crm-chat-head,
    .crm-reply-box {
        align-items: stretch;
        flex-direction: column;
    }
}

.sidebar-group {
  display: grid;
  gap: 6px;
}

.sidebar-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-group__toggle:hover {
  background: #fff4f4;
  color: var(--primary);
}

.sidebar-group.is-active > .sidebar-group__toggle,
.sidebar-group.is-open > .sidebar-group__toggle {
  background: #fff6f6;
  color: var(--primary);
}

.sidebar-group__caret {
  margin-left: auto;
  color: #9aa3b2;
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-group.is-open .sidebar-group__caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.sidebar-group__menu {
  display: none;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(218, 223, 232, 0.85);
}

.sidebar-group.is-open .sidebar-group__menu {
  display: grid;
  gap: 6px;
}

.sidebar-group__link {
  min-height: 44px;
  padding: 11px 14px !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.sidebar-group__link .nav-icon,
.sidebar-group__link .nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-group__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 14px 28px rgba(217, 28, 28, 0.18);
}

.sidebar-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.admin-main {
  margin: 18px 18px 18px 0;
  border-radius: 8px;
  padding: 24px 24px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.topbar-left,
.topbar-right,
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-switcher-menu {
  position: relative;
}

.store-switcher {
  min-width: 300px;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(20, 25, 38, 0.04);
  cursor: pointer;
  text-align: left;
}

.store-switcher-menu.is-open .store-switcher {
  border-color: rgba(217, 28, 28, 0.18);
  box-shadow: 0 16px 32px rgba(20, 25, 38, 0.08);
}

.store-switcher__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd7d7, #fff0d6);
  color: var(--primary);
  font-weight: 900;
}

.store-switcher__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-switcher__text {
  display: grid;
  gap: 4px;
}

.store-switcher__text small {
  color: var(--muted);
}

.store-switcher__text strong {
  font-size: 1.05rem;
}

.store-switcher__caret {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-switcher-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(20, 25, 38, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.store-switcher-menu.is-open .store-switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.store-switcher-dropdown a,
.store-switcher-dropdown button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.store-switcher-dropdown a:hover,
.store-switcher-dropdown button:hover {
  background: #fff4f4;
}

.store-switcher-dropdown__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}

.store-switcher-dropdown__icon svg {
  width: 18px;
  height: 18px;
}

.store-switcher-dropdown strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.store-switcher-dropdown small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.topbar-notification {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.topbar-notification svg {
  width: 22px;
  height: 22px;
}

.topbar-notification__dot {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
}

.topbar-cta {
  min-width: 220px;
}

.topbar-profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #f05a5a);
  color: #fff;
  font-weight: 900;
}

.topbar-profile__meta {
  display: grid;
  gap: 3px;
}

.topbar-profile__meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 8px;
}

.admin-content {
  padding-top: 28px;
}

.page-head,
.admin-header-card,
.section-heading--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-head {
  margin-bottom: 24px;
}

.page-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 2.2rem;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dashboard-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.dashboard-hero p {
  margin-top: 8px;
  font-size: 1.08rem;
}

.dashboard-hero__cta {
  flex-shrink: 0;
}

.section-block {
  margin-bottom: 28px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.section-heading--inline {
  margin-bottom: 22px;
}

.section-heading--inline h2 {
  font-size: 1.65rem;
}

.section-heading--inline a {
  color: var(--primary);
  font-weight: 800;
}

.stats-grid,
.panel-grid,
.crud-grid,
.quick-actions-grid,
.dashboard-content-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats {
  margin-bottom: 28px;
}

.stat-card,
.panel-card {
  border-radius: 8px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  padding: 24px 22px;
  display: grid;
  gap: 10px;
}

.stat-card--rose { background: linear-gradient(180deg, #fff3f3 0%, #ffe9e8 100%); }
.stat-card--amber { background: linear-gradient(180deg, #fff8e5 0%, #fff1cd 100%); }
.stat-card--mint { background: linear-gradient(180deg, #eefcf2 0%, #e3f8e8 100%); }
.stat-card--lavender { background: linear-gradient(180deg, #f2efff 0%, #ebe5ff 100%); }

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
}

.stat-card__icon svg {
  width: 25px;
  height: 25px;
}

.stat-card__label {
  font-size: 1.06rem;
  font-weight: 700;
}

.stat-card strong {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
}

.stat-card small {
  color: #23945f;
  font-size: 1rem;
  font-weight: 700;
}

.quick-actions-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-action {
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action__icon {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: currentColor;
  color: #fff;
}

.quick-action__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.quick-action--red { color: #df2525; }
.quick-action--amber { color: #eb7a12; }
.quick-action--violet { color: #7c3aed; }
.quick-action--green { color: #16a34a; }
.quick-action--blue { color: #2563eb; }

.dashboard-content-grid {
  grid-template-columns: 1.1fr 1fr;
}

.dashboard-list-card,
.dashboard-story-card {
  padding: 24px;
}

.recent-product-list {
  display: grid;
  gap: 16px;
}

.recent-product-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
}

.recent-product-item__media {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.recent-product-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-product-item__content {
  display: grid;
  gap: 4px;
}

.recent-product-item__content strong {
  font-size: 1.02rem;
}

.recent-product-item__content span {
  color: var(--muted);
}

.recent-product-item__content small {
  font-size: 1.02rem;
  font-weight: 800;
}

.story-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.story-preview-item {
  position: relative;
  min-height: 268px;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

.story-preview-item img,
.story-preview-item__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-preview-item img {
  object-fit: cover;
}

.story-preview-item__overlay {
  background: linear-gradient(180deg, rgba(14, 17, 25, 0.08) 0%, rgba(14, 17, 25, 0.86) 100%);
}

.story-preview-item__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
}

.story-preview-item__content strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.story-preview-item__content small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.panel-card {
  padding: 24px;
}

.panel-card h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.crud-grid {
  grid-template-columns: minmax(340px, 390px) 1fr;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 7px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions a,
.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: #fff2f2;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.actions form {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-badge--success {
  background: #e9f8ee;
  color: #1f8f52;
}

.status-badge--muted {
  background: #eef1f5;
  color: #667085;
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.quick-links {
  display: grid;
  gap: 12px;
}

.quick-links a {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-weight: 700;
}

.content-action-button {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #c20f15 0%, #d91c1c 58%, #ff7a32 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 22px 46px rgba(217, 28, 28, 0.28);
}

.content-action-plus {
  font-size: 4rem;
  line-height: 1;
  font-weight: 300;
}

.content-action-label {
  font-size: 1.24rem;
  font-weight: 800;
}

.story-page-head {
  margin-bottom: 12px;
}

.story-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.story-tabs a,
.story-tabs span {
  padding: 10px 2px;
  font-weight: 800;
  color: var(--muted);
}

.story-tabs .is-active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.story-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}

.story-management-grid .story-panel {
  height: 100%;
}

.story-selected-panel {
  margin-top: 20px;
}

.story-layout__left,
.story-layout__right {
  display: grid;
  gap: 20px;
}

.story-panel {
  padding: 22px;
}

.story-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.story-panel__header h2 {
  margin-bottom: 6px;
}

.story-panel__header--soft {
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff6f4 0%, #fff8f7 100%);
}

.story-outline-button {
  border: 1.5px solid #7c3aed;
  background: #f7f1ff;
  color: #6d28d9;
}

.story-highlight-form {
  display: none;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.story-highlight-form.is-visible {
  display: block;
}

.highlight-icon-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.highlight-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.highlight-icon-option__box {
  min-height: 88px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.highlight-icon-option__symbol {
  font-size: 1.35rem;
  line-height: 1;
}

.highlight-icon-option__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.highlight-icon-option input:checked + .highlight-icon-option__box {
  border-color: rgba(217, 28, 28, 0.4);
  box-shadow: 0 0 0 3px rgba(217, 28, 28, 0.12);
  transform: translateY(-1px);
}

.story-highlight-list {
  display: grid;
  gap: 12px;
}

.story-highlight-list--divided {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(23, 25, 35, 0.045);
}

.story-highlight-card {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(231, 235, 243, 0.96);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-highlight-list--divided .story-highlight-card {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.story-highlight-list--divided .story-highlight-card:last-child {
  border-bottom: 0;
}

.story-highlight-list--divided .story-highlight-card:hover {
  transform: none;
  box-shadow: none;
  background: #fafbfe;
}

.story-highlight-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.story-highlight-card.is-dragging {
  opacity: 0.7;
}

.story-highlight-card--rose { background: linear-gradient(180deg, #fff6f4 0%, #fff4f1 100%); }
.story-highlight-card--amber { background: linear-gradient(180deg, #fff9ee 0%, #fff6e6 100%); }
.story-highlight-card--mint { background: linear-gradient(180deg, #f3fbf6 0%, #eef8f2 100%); }
.story-highlight-card--lavender { background: linear-gradient(180deg, #f5f2ff 0%, #f1eeff 100%); }

.story-highlight-card__drag {
  width: 34px;
  height: 54px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f7f8fc;
  border: 1px solid rgba(231, 235, 243, 0.9);
  cursor: grab;
}

.story-highlight-card__drag span {
  width: 4px;
  height: 4px;
  display: block;
  margin: 2px auto;
  border-radius: 50%;
  background: #667085;
}

.story-highlight-card__thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 28, 28, 0.09), rgba(245, 158, 11, 0.08)),
    #fff;
  border: 1px solid rgba(231, 235, 243, 0.94);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.story-highlight-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-highlight-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.story-highlight-icon--rose { background: #ffe1d9; color: #ef4f2f; }
.story-highlight-icon--amber { background: #ffe8b0; color: #d97706; }
.story-highlight-icon--mint { background: #d8f4e2; color: #16a34a; }
.story-highlight-icon--lavender { background: #e7dcff; color: #7c3aed; }

.story-highlight-card__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.story-highlight-card__body strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-highlight-card__body small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.story-highlight-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-highlight-card__actions a,
.story-highlight-card__actions button {
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.story-highlight-list--divided .story-highlight-card__actions a,
.story-highlight-list--divided .story-highlight-card__actions button {
  background: var(--surface-soft);
}

.story-highlight-card__actions form {
  margin: 0;
}

.story-highlight-cover-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.story-highlight-cover-field img,
.story-highlight-cover-field span {
  width: 100%;
  height: 156px;
  border-radius: 8px;
}

.story-highlight-cover-field img {
  object-fit: cover;
}

.story-highlight-cover-field span {
  display: grid;
  place-items: center;
  border: 1px dashed #cfd7e6;
  color: var(--muted);
  font-weight: 800;
  background: #fff;
}

.story-highlight-cover-field input[type="file"] {
  padding: 12px;
  border-radius: 7px;
  background: #fff;
}

.story-highlight-modal__card {
  width: min(560px, calc(100vw - 32px));
}

.story-highlight-modal__form {
  gap: 15px;
}

.story-tip-box,
.story-info-box {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 8px;
}

.story-tip-box {
  margin-top: 18px;
  background: #f3edff;
  color: #5b3ec8;
}

.story-info-box {
  background: #edf6ff;
  color: #355071;
}

.story-publish-form {
  gap: 16px;
}

.field-optional {
  color: var(--muted);
  font-weight: 600;
}

.story-upload-zone {
  display: block;
  cursor: pointer;
}

.story-upload-zone input[type="file"] {
  display: none;
}

.story-upload-zone__preview {
  min-height: 220px;
  overflow: hidden;
  border: 1.5px dashed #cfd7e6;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
}

.story-upload-zone.is-dragover .story-upload-zone__preview {
  border-color: rgba(217, 28, 28, 0.45);
  background: linear-gradient(180deg, #fff7f7 0%, #fff2f2 100%);
}

.story-upload-zone__preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.story-upload-zone__placeholder {
  min-height: 220px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}

.story-upload-zone__placeholder strong {
  color: var(--text);
}

.story-upload-zone__icon {
  font-size: 2rem;
  letter-spacing: -0.1em;
  color: #667085;
}

.story-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}

.story-form-actions--compact {
  justify-content: flex-start;
}

.story-published-panel .section-heading--inline {
  margin-bottom: 18px;
}

.story-published-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.story-published-panel--with-list .story-published-grid {
  margin-bottom: 18px;
}

.story-published-card {
  position: relative;
  min-height: 258px;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

.story-published-card img,
.story-published-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-published-card img {
  object-fit: cover;
}

.story-published-card__overlay {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.06) 0%, rgba(16, 24, 40, 0.9) 100%);
}

.story-published-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
}

.story-published-card__content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.story-published-card__content small {
  color: rgba(255, 255, 255, 0.86);
}

.story-active-block {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.story-active-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.story-active-block__head strong {
  font-size: 1rem;
}

.story-active-block__head span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.story-active-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.story-active-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.story-active-item:last-child {
  border-bottom: 0;
}

.story-active-item__media {
  width: 58px;
  height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-soft);
}

.story-active-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-active-item__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.story-active-item__body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-active-item__body span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.story-active-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-active-item__actions a,
.story-active-item__actions button {
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}

.story-active-item__actions form {
  margin: 0;
}

.story-inline-form {
  margin-bottom: 22px;
}

.story-linked-items {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.story-linked-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.story-linked-item:last-child {
  border-bottom: 0;
}

.story-linked-item__media {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}

.story-linked-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-linked-item__body {
  display: grid;
  gap: 8px;
}

.story-linked-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-linked-item__actions a,
.story-linked-item__actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
}

.story-linked-item__actions form {
  margin: 0;
}

.store-page-head {
  margin-bottom: 14px;
}

.store-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.store-tabs a {
  padding: 10px 4px;
  color: var(--muted);
  font-weight: 800;
}

.store-tabs a.is-active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.store-settings-layout {
  display: grid;
  gap: 20px;
  width: 100%;
}

.store-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.store-section-card {
  padding: 24px;
}

.store-section-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.store-section-card__header h2 {
  margin: 0 0 6px;
}

.store-form-grid {
  gap: 18px;
}

.store-field-group {
  display: grid;
  gap: 8px;
}

.store-field-group--slug {
  gap: 10px;
}

.store-slug-builder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.store-slug-builder__prefix {
  min-height: 50px;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  background: #f7f9fc;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-slug-builder input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.store-slug-builder__copy {
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.store-field-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.store-field-help strong {
  color: var(--muted-strong);
}

.store-media-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.store-media-card,
.store-color-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fcfcfe 0%, #f6f8fc 100%);
  border: 1px solid var(--border);
}

.store-media-card__label {
  font-weight: 800;
  color: var(--muted-strong);
}

.store-media-preview {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.store-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-media-preview--logo {
  aspect-ratio: 1 / 1;
  max-width: 170px;
}

.store-media-preview--banner {
  aspect-ratio: 16 / 6;
  max-width: 420px;
}

.store-upload-button {
  position: relative;
  width: fit-content;
  min-width: 170px;
  min-height: 48px;
}

.store-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.store-color-picker {
  display: grid;
  grid-template-columns: 52px 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.store-color-picker input[type="color"] {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}

.store-color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(20, 25, 38, 0.08);
}

.store-color-picker strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.store-status-card {
  margin-bottom: 10px;
}

.products-page-head {
  margin-bottom: 24px;
}

.products-stats-grid {
  margin-bottom: 22px;
}

.product-stat-card {
  min-height: 170px;
}

.products-list-panel,
.product-form-panel {
  padding: 18px;
}

.products-list-panel {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-list-head {
  margin-bottom: 14px;
}

.products-list-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(180px, 0.7fr));
  gap: 12px;
  margin-bottom: 18px;
}

.products-toolbar__search {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.products-toolbar__search span {
  color: var(--muted);
  font-weight: 800;
}

.products-toolbar__search input,
.products-toolbar select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.products-toolbar__search input {
  padding: 0;
  border: 0;
}

.products-toolbar__search input:focus {
  outline: none;
  box-shadow: none;
}

.products-table-modern {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.products-table-body {
  display: grid;
  gap: 0;
}

.products-table-head,
.products-row {
  display: grid;
  grid-template-columns: 52px minmax(280px, 1.8fr) minmax(130px, 0.8fr) minmax(110px, 0.6fr) minmax(120px, 0.7fr) 70px;
  gap: 12px;
  align-items: center;
}

.products-table-head {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7f8fc;
  border-bottom: 1px solid var(--border);
}

.products-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.products-row:hover {
  background: transparent;
}

.products-row:last-child {
  border-bottom: 0;
}

.products-row__check {
  display: grid;
  place-items: center;
}

.products-row__main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.products-row__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f6fb;
}

.products-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-row__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.products-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.products-row__title strong {
  overflow: hidden;
  font-size: 1.05rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.products-row__content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.products-row__price-line {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
}

.product-featured-badge,
.product-category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.product-featured-badge {
  background: #fff4d8;
  color: #b56b00;
}

.product-category-tag {
  background: #f3f5fb;
  color: #51607a;
}

.products-row__price {
  font-size: 1.08rem;
  font-weight: 800;
}

.products-row__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.products-row__right form {
  margin: 0;
}

.products-row__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 900;
}

.products-row__action-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.products-row__action-link--danger {
  color: #d92d20;
}

.status-badge--danger {
  background: #fff0f1;
  color: #d92d20;
}

.product-actions-menu {
  position: relative;
}

.product-actions-menu__trigger {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #f4f6fb;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.product-actions-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  min-width: 140px;
  padding: 8px;
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.product-actions-menu.is-open .product-actions-menu__dropdown {
  display: grid;
  gap: 6px;
}

.product-actions-menu__dropdown a,
.product-actions-menu__dropdown button {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: #f8f9fc;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}

.product-actions-menu__dropdown form {
  margin: 0;
}

.delivery-regions-table__head,
.delivery-region-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 150px 110px 120px 88px;
  gap: 16px;
  align-items: center;
}

.delivery-region-row {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.delivery-region-row__main strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.delivery-region-row__fee,
.delivery-region-row__order {
  display: grid;
  gap: 2px;
}

.delivery-region-row__fee small,
.delivery-region-row__order small {
  display: none;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.delivery-region-row__fee strong,
.delivery-region-row__order strong {
  font-size: 0.95rem;
}

.delivery-region-row__mobile-actions {
  display: none;
}

.delivery-region-empty {
  padding: 20px;
}

.customers-filter-panel {
  margin-bottom: 18px;
}

.customers-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.customers-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 900;
}

.customers-tabs a.is-active {
  background: var(--primary);
  color: #fff;
}

.customers-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.customers-filter-form .store-field-group {
  flex: 1;
}

.customers-table__head,
.customer-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 120px 70px 105px 100px minmax(170px, 1.15fr) minmax(170px, 1.15fr) 110px 70px;
  gap: 12px;
  align-items: center;
}

.customer-row {
  padding: 18px 16px;
  border-top: 1px solid var(--border);
}

.customers-report-table__head,
.customer-report-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 140px 130px 140px;
  gap: 16px;
  align-items: center;
}

.customer-report-row {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.customer-row__main,
.customer-row__metric,
.customer-row__phone,
.customer-row__address,
.customer-row__last,
.customer-row__actions {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-row__main strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.customer-row__main span,
.customer-row__metric span,
.customer-row__phone span,
.customer-row__address span,
.customer-row__last span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.customer-row__address span {
  overflow-wrap: anywhere;
}

.customer-row__actions {
  justify-content: start;
}

.customer-row__metric small,
.customer-row__main small,
.customer-row__phone small,
.customer-row__address small,
.customer-row__last small {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-row__metric strong,
.customer-row__last strong {
  font-size: 0.96rem;
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.customers-empty {
  padding: 20px;
}

.customer-detail-modal {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-detail-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.customer-detail-modal__card {
  width: min(960px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
}

.customer-detail-form {
  display: grid;
  gap: 18px;
}

.customer-detail-grid,
.customer-detail-addresses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-detail-addresses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-detail-addresses fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.customer-detail-addresses legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.customer-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-detail-summary span {
  display: inline-flex;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f6f7fb;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-detail-summary strong {
  color: var(--ink);
}

.admin-options-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.admin-options-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-options-actions,
.admin-page-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: -4px 0 22px;
}

.admin-page-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-options-action,
.admin-page-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(217, 28, 28, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 14px 30px rgba(217, 28, 28, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-page-action {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

button.admin-page-action {
  font: inherit;
}

.admin-options-action:hover,
.admin-page-action:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 28, 28, 0.25);
  box-shadow: 0 18px 38px rgba(217, 28, 28, 0.24);
}

.admin-options-action__icon,
.admin-page-action__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.admin-options-action__icon svg,
.admin-page-action__icon svg {
  width: 22px;
  height: 22px;
}

.admin-options-action span:last-child,
.admin-page-action span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-options-action strong,
.admin-page-action strong {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.admin-options-action small,
.admin-page-action small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.admin-options-action--group {
  background: linear-gradient(135deg, var(--primary), #f05a3f);
}

.admin-options-action--item {
  background: linear-gradient(135deg, #b90f16, var(--primary));
}

.option-group-modal,
.option-item-modal {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.delivery-region-modal {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.option-group-modal .modal-backdrop,
.option-item-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.delivery-region-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.option-group-modal__card,
.option-item-modal__card {
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.delivery-region-modal__card {
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.option-group-modal__form,
.option-item-modal__form {
  gap: 16px;
}

.delivery-region-modal__form {
  gap: 16px;
}

.option-groups-list {
  display: grid;
  gap: 18px;
}

.option-group-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: var(--shadow-sm);
}

.option-group-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.option-group-card__header h3 {
  margin: 8px 0 6px;
  font-size: 1.16rem;
}

.option-group-card__header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.option-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.option-type-badge--required {
  color: #b42318;
  background: #fff0f0;
}

.option-type-badge--optional {
  color: #157347;
  background: #eaf8ef;
}

.option-group-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.option-group-card__actions a,
.option-group-card__actions button,
.option-item-row a,
.option-item-row button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.option-items-list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.option-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fd;
}

.option-item-row div {
  display: grid;
  gap: 3px;
}

.option-item-row small {
  color: var(--muted);
  font-weight: 700;
}

.option-item-row > span {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.product-option-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.product-option-picker__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-option-picker__item:hover {
  border-color: rgba(198, 4, 16, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.product-option-picker__item input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.product-option-picker__item span {
  display: grid;
  gap: 4px;
}

.product-option-picker__item strong {
  color: var(--text);
  font-size: 0.94rem;
}

.product-option-picker__item small,
.product-option-picker__empty {
  color: var(--muted);
  font-weight: 700;
}

.product-option-picker__empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #cfd6e3;
  border-radius: 8px;
  background: #fff;
}

.product-option-picker__empty a {
  color: var(--primary);
  font-weight: 900;
}

.product-options-accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  overflow: hidden;
}

.product-options-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.product-options-accordion summary::-webkit-details-marker {
  display: none;
}

.product-options-accordion summary::after {
  content: "v";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 900;
  transition: transform 0.18s ease;
}

.product-options-accordion[open] summary::after {
  transform: rotate(180deg);
}

.product-options-accordion summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-options-accordion summary strong {
  font-size: 0.98rem;
}

.product-options-accordion summary small {
  color: var(--muted);
  font-weight: 700;
}

.product-options-accordion summary em {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: #7a2430;
  background: #fff0f1;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.product-options-accordion .product-option-picker {
  margin: 0;
  padding: 0 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-options-accordion .product-option-picker__item {
  min-height: 58px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-options-accordion .product-option-picker__item:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.product-options-accordion .product-option-picker__item input {
  width: 18px;
  height: 18px;
}

.product-options-accordion .product-option-picker__item strong {
  font-size: 0.9rem;
}

.product-options-accordion .product-option-picker__item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-options-accordion .product-option-picker__item:has(input:checked) strong {
  color: var(--primary);
}

.product-options-accordion .product-option-picker__empty {
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.products-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 6px 2px;
  color: var(--muted);
}

.products-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-pagination button,
.products-pagination__numbers button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.products-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-pagination__numbers button.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.product-tip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff1f1 0%, #ffe9e9 100%);
  color: #7a2430;
}

.promotions-page-head {
  margin-bottom: 24px;
}

.promotions-stats-grid {
  margin-bottom: 22px;
}

.promotion-stat-card {
  min-height: 170px;
}

.promotions-list-panel {
  padding: 20px;
  margin-bottom: 22px;
}

.promotion-form-modal__card {
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.promotion-form-modal__form {
  gap: 16px;
}

.banner-form-modal,
.promotion-form-modal {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.banner-form-modal .modal-backdrop,
.promotion-form-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.banner-form-modal__card {
  width: min(820px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.banner-form-modal__form {
  gap: 16px;
}

.promotion-form-modal .promotion-product-picker {
  max-height: 320px;
  overflow: auto;
  padding: 0 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.promotion-products-accordion {
  margin: 0;
}

.promotion-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 12px;
  border-top: 1px solid var(--border);
}

.promotion-product-actions button {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.promotion-product-actions button:hover {
  border-color: rgba(217, 28, 28, 0.24);
  color: var(--primary);
  background: var(--primary-soft);
}

.promotion-product-category-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
  color: var(--muted-strong);
}

.promotion-product-category-label strong {
  font-size: 0.9rem;
}

.promotion-product-category-label small {
  color: var(--muted);
  font-weight: 800;
}

.promotions-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(180px, 0.7fr));
  gap: 12px;
  margin-bottom: 18px;
}

.promotions-toolbar select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.promotions-table-head,
.promotions-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) 70px;
  gap: 12px;
  align-items: center;
}

.promotions-row {
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.promotions-row:hover {
  background: #fbfcff;
}

.promotions-table-modern {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.promotions-table-modern .products-table-head {
  border-bottom: 1px solid var(--border);
  background: #f8f9fd;
}

.promotions-row .products-row__content {
  min-width: 0;
}

.promotions-row .products-row__title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotions-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.promotions-row__header {
  display: grid;
  gap: 5px;
}

.promotions-row__header .products-row__title strong {
  font-size: 1rem;
}

.promotions-row:last-child {
  border-bottom: 0;
}

.promotions-row__main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.promotions-row__period {
  font-weight: 700;
  color: var(--muted-strong);
}

.banners-table-modern .banner-row,
.banners-table-modern .banners-table-head {
  grid-template-columns: minmax(0, 1.8fr) minmax(118px, 0.74fr) minmax(100px, 0.58fr) minmax(112px, 0.62fr) 46px;
}

.banners-table-modern .banner-row {
  min-width: 0;
  padding: 12px 14px;
}

.banners-table-modern .promotions-row__main {
  min-width: 0;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
}

.banners-table-modern .products-row__thumb {
  width: 82px;
  height: 54px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-soft);
}

.banners-table-modern .products-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banners-table-modern .products-row__content {
  min-width: 0;
}

.banners-table-modern .promotions-row__period {
  overflow: hidden;
  text-overflow: ellipsis;
}

.banners-table-modern .promotion-type-badge,
.banners-table-modern .promotion-toggle {
  max-width: 100%;
}

.banner-row__mobile-actions {
  display: none;
}

.promotion-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.promotion-type-badge--combo {
  background: #efe7ff;
  color: #7c3aed;
}

.promotion-type-badge--discount {
  background: #fff1df;
  color: #dd6b20;
}

.promotion-type-badge--gift {
  background: #e8f1ff;
  color: #2563eb;
}

.promotion-type-badge--flash {
  background: #ffe7e7;
  color: #dc2626;
}

.promotion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted-strong);
}

.promotion-toggle-form {
  margin: 0;
}

.promotion-toggle__track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 8px;
  background: #d0d5dd;
}

.promotion-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 10px rgba(20, 25, 38, 0.12);
  transition: left 0.2s ease;
}

.promotion-toggle__label {
  font-size: 0.88rem;
}

.promotion-toggle.is-on {
  color: #16a34a;
}

.promotion-toggle.is-on .promotion-toggle__track {
  background: #22c55e;
}

.promotion-toggle.is-on .promotion-toggle__track::after {
  left: 21px;
}

.promotion-coupon-note {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.promotion-tip-card {
  margin-top: 2px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal-shell.is-visible {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(580px, calc(100vw - 24px));
  margin: 42px auto;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff2f2;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-card--wide {
  width: min(920px, calc(100vw - 32px));
}

.pro-upgrade-modal {
  z-index: 170;
  padding: 18px;
}

.pro-upgrade-modal__card {
  width: min(520px, calc(100vw - 28px));
  margin: min(12vh, 82px) auto 0;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
}

.pro-upgrade-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.pro-upgrade-modal__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff1f1;
  color: var(--primary);
}

.pro-upgrade-modal__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-upgrade-modal__card h2 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.12;
}

.pro-upgrade-modal__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.pro-upgrade-modal__card p strong {
  color: var(--text);
}

.pro-upgrade-modal__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.pro-upgrade-modal__features span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 900;
}

.pro-upgrade-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.product-form-modal {
  z-index: 140;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-form-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.product-form-modal__card {
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.product-form-modal__head {
  position: sticky;
  top: -28px;
  z-index: 2;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.94) 100%);
}

.product-form-modal__head h2 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.product-form-modal__head p {
  margin-top: 6px;
}

.product-form-modal .form-grid {
  padding-top: 4px;
}

.product-form-modal .product-option-picker {
  max-height: 260px;
  overflow-y: auto;
}

.crud-grid--single {
  grid-template-columns: 1fr;
}

.category-form-modal {
  z-index: 140;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.category-form-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.category-form-modal__card {
  width: min(520px, calc(100vw - 32px));
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.story-publish-modal {
  z-index: 140;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.story-publish-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.product-form-modal,
.category-form-modal,
.story-publish-modal,
.story-highlight-modal,
.banner-form-modal,
.option-group-modal,
.option-item-modal,
.delivery-region-modal,
.promotion-form-modal {
  z-index: 180;
}

.story-publish-modal__card {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.98));
}

.story-layout--single {
  grid-template-columns: 1fr;
}

.category-icon-preview {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #fff5d8;
  box-shadow: inset 0 0 0 1px rgba(181, 107, 0, 0.10);
  font-size: 1.1rem;
}

.category-icon-preview .category-icon-combo {
  position: relative;
  width: 24px;
  height: 20px;
  display: block;
  transform: translateY(1px);
}

.category-icon-preview .category-icon-combo span {
  position: absolute;
  display: block;
  line-height: 1;
}

.category-icon-preview .category-icon-combo span:first-child {
  left: 1px;
  top: 4px;
  z-index: 2;
}

.category-icon-preview .category-icon-combo span:last-child {
  right: 0;
  top: 0;
  z-index: 1;
  font-size: 0.76em;
}

.category-icon-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.category-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-icon-option > span {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-icon-option strong {
  font-size: 1.28rem;
  line-height: 1;
}

.category-icon-option .category-icon-combo {
  position: relative;
  width: 32px;
  height: 24px;
  display: block;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.category-icon-option .category-icon-combo span {
  position: absolute;
  line-height: 1;
  display: block;
}

.category-icon-option .category-icon-combo span:first-child {
  left: 2px;
  top: 4px;
  z-index: 2;
}

.category-icon-option .category-icon-combo span:last-child {
  right: 2px;
  top: 0;
  z-index: 1;
  font-size: 0.82em;
}

.category-icon-option small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.category-icon-option input:checked + span {
  border-color: rgba(198, 4, 16, 0.32);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(198, 4, 16, 0.08);
  transform: translateY(-1px);
}

.placeholder-note {
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .quick-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-published-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-regions-table__head,
  .delivery-region-row {
    grid-template-columns: minmax(0, 1.4fr) 120px 90px 110px 70px;
  }

  .customers-table__head,
  .customer-row {
    grid-template-columns: minmax(130px, 1fr) 105px 62px 92px 90px minmax(150px, 1fr) minmax(150px, 1fr) 95px 62px;
  }

  .customers-report-table__head,
  .customer-report-row {
    grid-template-columns: minmax(170px, 1fr) 90px 120px 110px 120px;
  }

  .customer-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-icon-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-top-grid {
    grid-template-columns: 1fr;
  }

  .store-media-grid {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotions-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-options-layout {
    grid-template-columns: 1fr;
  }

  .option-group-card__header {
    flex-direction: column;
  }

  .option-group-card__actions {
    justify-content: flex-start;
  }

  .option-item-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-option-picker {
    grid-template-columns: 1fr;
  }

  .product-option-picker__empty {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .stats-grid,
  .dashboard-content-grid,
  .panel-grid,
  .crud-grid,
  .form-grid.two-columns,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .store-hours-fields {
    grid-template-columns: 1fr;
  }

  .products-table-head,
  .products-row {
    grid-template-columns: 42px minmax(240px, 1.6fr) minmax(120px, 0.8fr) minmax(100px, 0.6fr) minmax(110px, 0.7fr) 60px;
  }

  .promotions-table-head,
  .promotions-row {
    grid-template-columns: 42px minmax(240px, 1.5fr) minmax(130px, 0.8fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) 60px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .store-slug-builder {
    grid-template-columns: 1fr;
  }

  .store-slug-builder__prefix,
  .store-slug-builder__copy {
    min-height: 42px;
    border: 0;
  }

  .store-slug-builder__prefix {
    border-bottom: 1px solid var(--border);
  }

  .store-slug-builder__copy {
    border-top: 1px solid var(--border);
  }
}

/* Final header structure override */
.platform-workspace-body .platform-shell {
  display: grid !important;
  grid-template-columns: 278px minmax(0, 1fr) !important;
  grid-template-rows: 64px minmax(0, 1fr) !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.platform-workspace-body .platform-topbar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mcq-border-2) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 30;
}

.platform-workspace-body .platform-topbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--mcq-heading) !important;
}

.platform-workspace-body .platform-topbar-brand__logo,
.platform-workspace-body .platform-topbar-brand__logo img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}

.platform-workspace-body .platform-topbar-brand__text {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.platform-workspace-body .platform-topbar-brand__text strong {
  color: var(--mcq-heading) !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.04em;
}

.platform-workspace-body .platform-topbar-brand__text small {
  color: var(--mcq-green) !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

.platform-workspace-body .platform-sidebar {
  grid-column: 1 !important;
  grid-row: 2 !important;
  top: 64px !important;
  height: calc(100vh - 64px) !important;
  padding-top: 10px !important;
  overflow-y: auto !important;
}

.platform-workspace-body .platform-sidebar__header {
  display: none !important;
}

.platform-workspace-body .platform-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-height: calc(100vh - 64px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Softer outlines */
.platform-workspace-body .platform-sidebar {
  border-right-color: #e4e0d9 !important;
}

.platform-workspace-body .platform-topbar {
  border-bottom-color: #e4e0d9 !important;
}

.platform-workspace-body .platform-panel,
.platform-workspace-body .panel-card,
.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .platform-record-card,
.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-stores-table-card,
.platform-workspace-body .platform-users-table-card,
.platform-workspace-body .platform-finance-table-card,
.platform-workspace-body .platform-plan-card,
.platform-workspace-body .platform-plan-form,
.platform-workspace-body .platform-plan-module-card,
.platform-workspace-body .crm-summary-card,
.platform-workspace-body .crm-kanban-column,
.platform-workspace-body .crm-lead-card,
.platform-workspace-body .crm-side > .platform-panel {
  border-color: rgba(228, 224, 217, 0.82) !important;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select,
.platform-workspace-body .platform-search,
.platform-workspace-body .btn-secondary,
.platform-workspace-body .platform-filter-more,
.platform-workspace-body .platform-bulk-button,
.platform-workspace-body .platform-page-button {
  border-color: #e4e0d9 !important;
}

/* Even lighter outlines */
.platform-workspace-body .platform-sidebar {
  border-right-color: #ebe8e2 !important;
}

.platform-workspace-body .platform-topbar {
  border-bottom-color: #ebe8e2 !important;
}

.platform-workspace-body .platform-panel,
.platform-workspace-body .panel-card,
.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .platform-record-card,
.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-stores-table-card,
.platform-workspace-body .platform-users-table-card,
.platform-workspace-body .platform-finance-table-card,
.platform-workspace-body .platform-plan-card,
.platform-workspace-body .platform-plan-form,
.platform-workspace-body .platform-plan-module-card,
.platform-workspace-body .crm-summary-card,
.platform-workspace-body .crm-kanban-column,
.platform-workspace-body .crm-lead-card,
.platform-workspace-body .crm-side > .platform-panel {
  border-color: rgba(235, 232, 226, 0.9) !important;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select,
.platform-workspace-body .platform-search,
.platform-workspace-body .btn-secondary,
.platform-workspace-body .platform-filter-more,
.platform-workspace-body .platform-bulk-button,
.platform-workspace-body .platform-page-button {
  border-color: #ebe8e2 !important;
}

.platform-workspace-body .platform-content {
  padding-top: 30px !important;
}

.platform-workspace-body .platform-topbar .platform-icon-button {
  border: 0 !important;
  background: transparent !important;
}

.platform-workspace-body .platform-topbar .platform-user-chip {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.platform-workspace-body .platform-page-head .platform-quick-button-wrap {
  display: inline-flex !important;
}

.platform-workspace-body .platform-page-head .platform-quick-menu {
  right: 0 !important;
  left: auto !important;
}

@media (max-width: 1100px) {
  .platform-workspace-body .platform-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .platform-workspace-body .platform-topbar {
    grid-row: 1 !important;
    padding: 0 16px !important;
  }

  .platform-workspace-body .platform-sidebar {
    grid-row: 2 !important;
    grid-column: 1 !important;
    top: auto !important;
    height: auto !important;
  }

  .platform-workspace-body .platform-main {
    grid-row: 3 !important;
    grid-column: 1 !important;
  }
}

/* Topbar full-width refinement */
.platform-workspace-body .platform-shell {
  grid-template-columns: 278px minmax(0, 1fr) !important;
  grid-template-rows: 64px minmax(0, 1fr) !important;
}

.platform-workspace-body .platform-topbar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 28px !important;
  border-bottom: 1px solid var(--mcq-border-2) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 20;
}

.platform-workspace-body .platform-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mcq-heading);
  text-decoration: none;
}

.platform-workspace-body .platform-topbar-brand__logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.platform-workspace-body .platform-topbar-brand__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.platform-workspace-body .platform-topbar-brand__text {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.platform-workspace-body .platform-topbar-brand__text strong {
  color: var(--mcq-heading) !important;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.platform-workspace-body .platform-topbar-brand__text small {
  color: var(--mcq-green) !important;
  font-size: 0.96rem;
  font-weight: 800;
}

.platform-workspace-body .platform-sidebar {
  grid-column: 1 !important;
  grid-row: 2 !important;
  height: calc(100vh - 64px) !important;
  top: 64px !important;
  padding-top: 10px !important;
}

.platform-workspace-body .platform-sidebar__header {
  display: none !important;
}

.platform-workspace-body .platform-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-height: calc(100vh - 64px);
}

.platform-workspace-body .platform-content {
  padding-top: 30px !important;
}

.platform-workspace-body .platform-topbar .platform-icon-button,
.platform-workspace-body .platform-topbar .platform-user-chip {
  border-radius: 999px !important;
}

.platform-workspace-body .platform-topbar .platform-user-chip {
  padding: 4px 8px 4px 4px !important;
}

.platform-workspace-body .platform-page-head .platform-quick-button-wrap {
  display: inline-flex;
}

.platform-workspace-body .platform-page-head .platform-quick-menu {
  right: 0;
  left: auto;
}

@media (max-width: 1100px) {
  .platform-workspace-body .platform-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .platform-workspace-body .platform-topbar {
    grid-row: 1 !important;
    padding: 0 16px !important;
  }

  .platform-workspace-body .platform-sidebar {
    grid-row: 2 !important;
    grid-column: 1 !important;
    height: auto !important;
    top: auto !important;
  }

  .platform-workspace-body .platform-main {
    grid-row: 3 !important;
    grid-column: 1 !important;
  }
}

/* Atendimento/CRM light workspace */
.mc-service-workspace {
  --mc-bg: #f6efe5;
  --mc-bg-2: #efe3d4;
  --mc-card: #fffaf3;
  --mc-card-soft: #fdf4ea;
  --mc-line: #ead8c5;
  --mc-text: #35251f;
  --mc-muted: #8b7465;
  --mc-red: #e8796f;
  --mc-red-strong: #c75249;
  --mc-red-soft: #ffe2dd;
  --mc-green: #719f73;
  --mc-green-soft: #e5f1df;
  --mc-blue: #7396b8;
  --mc-amber: #c79644;
  --mc-shadow: 0 18px 45px rgba(92, 55, 34, 0.12);
  min-height: calc(100vh - 112px);
  margin: -18px -22px -24px;
  padding: 24px;
  color: var(--mc-text);
  background:
    radial-gradient(circle at top left, rgba(232, 121, 111, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(113, 159, 115, 0.16), transparent 30%),
    linear-gradient(135deg, var(--mc-bg) 0%, #fbf5ec 52%, var(--mc-bg-2) 100%);
}

.mc-service-workspace .platform-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.mc-service-workspace .platform-page-head h1 {
  color: var(--mc-text);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.mc-service-workspace .platform-page-head p,
.mc-service-workspace .platform-panel__head p,
.mc-service-workspace .placeholder-note {
  color: var(--mc-muted);
}

.mc-service-workspace .platform-panel,
.mc-service-workspace .crm-summary-card,
.mc-service-workspace .crm-kanban-column,
.mc-service-workspace .crm-lead-card {
  border: 1px solid rgba(179, 130, 98, 0.22);
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--mc-shadow);
  backdrop-filter: blur(10px);
}

.mc-service-workspace .platform-panel {
  border-radius: 24px;
  padding: 18px;
}

.mc-service-workspace .platform-panel__head {
  margin-bottom: 14px;
}

.mc-service-workspace .platform-panel__head h2 {
  color: var(--mc-text);
  font-size: 1.08rem;
}

.mc-service-workspace .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--mc-red), var(--mc-red-strong));
  color: #fffaf7;
  box-shadow: 0 12px 24px rgba(199, 82, 73, 0.22);
}

.mc-service-workspace .btn-secondary {
  border: 1px solid rgba(199, 82, 73, 0.18);
  background: #fff7ef;
  color: var(--mc-red-strong);
  box-shadow: none;
}

.mc-service-workspace input,
.mc-service-workspace textarea,
.mc-service-workspace select,
.mc-service-workspace .crm-filters input,
.mc-service-workspace .crm-filters select,
.mc-service-workspace .crm-test-form input,
.mc-service-workspace .crm-test-form textarea,
.mc-service-workspace .crm-status-form select,
.mc-service-workspace .crm-reply-box textarea {
  border: 1px solid var(--mc-line);
  background: #fffdf8;
  color: var(--mc-text);
  border-radius: 14px;
}

.mc-service-workspace input::placeholder,
.mc-service-workspace textarea::placeholder {
  color: #b49a88;
}

.mc-service-workspace .crm-summary-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mc-service-workspace .crm-summary-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(255, 242, 230, 0.92));
}

.mc-service-workspace .crm-summary-card span,
.mc-service-workspace .crm-summary-card small {
  color: var(--mc-muted);
}

.mc-service-workspace .crm-summary-card strong {
  color: var(--mc-text);
  font-size: 2rem;
}

.mc-service-workspace .crm-board {
  grid-template-columns: minmax(280px, 0.9fr) minmax(460px, 1.55fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.mc-service-workspace .crm-conversations,
.mc-service-workspace .crm-chat,
.mc-service-workspace .crm-side > .platform-panel {
  min-height: 0;
}

.mc-service-workspace .crm-filters {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: var(--mc-card-soft);
  border: 1px solid rgba(179, 130, 98, 0.16);
}

.mc-service-workspace .crm-filters button {
  grid-column: auto;
}

.mc-service-workspace .crm-conversation-list {
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
}

.mc-service-workspace .crm-conversation-item {
  grid-template-columns: 42px 1fr;
  position: relative;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  padding: 12px;
}

.mc-service-workspace .crm-conversation-item:hover,
.mc-service-workspace .crm-conversation-item.is-active {
  border-color: rgba(232, 121, 111, 0.28);
  background: #fff5ec;
}

.mc-service-workspace .crm-conversation-item__meta {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.mc-service-workspace .crm-conversation-item__body strong {
  color: var(--mc-text);
}

.mc-service-workspace .crm-conversation-item__body small,
.mc-service-workspace .crm-conversation-item__meta small {
  color: var(--mc-muted);
}

.mc-service-workspace .crm-avatar {
  background: linear-gradient(135deg, var(--mc-red), #efaaa2);
  color: #fffaf7;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(199, 82, 73, 0.18);
}

.mc-service-workspace .crm-pill,
.mc-service-workspace .crm-badge {
  background: var(--mc-red-soft);
  color: var(--mc-red-strong);
}

.mc-service-workspace .crm-chat {
  border-radius: 26px;
  background: #f1e6d7;
  overflow: hidden;
}

.mc-service-workspace .crm-chat-head {
  border-bottom: 1px solid rgba(179, 130, 98, 0.16);
  background: rgba(255, 250, 243, 0.94);
  padding: 14px 16px;
}

.mc-service-workspace .crm-chat-head strong {
  color: var(--mc-text);
  font-size: 1.05rem;
}

.mc-service-workspace .crm-chat-head span {
  color: var(--mc-muted);
}

.mc-service-workspace .crm-chat-actions .btn {
  padding: 9px 12px;
}

.mc-service-workspace .crm-message-stream {
  min-height: 520px;
  max-height: 650px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%) 0 0 / 28px 28px,
    #efe2d0;
}

.mc-service-workspace .crm-message span {
  border: 1px solid rgba(179, 130, 98, 0.12);
  background: #fffdf8;
  color: var(--mc-text);
  box-shadow: 0 8px 18px rgba(92, 55, 34, 0.08);
}

.mc-service-workspace .crm-message.is-out span {
  background: #ffd8d1;
  color: #4b241f;
  border-color: rgba(232, 121, 111, 0.22);
}

.mc-service-workspace .crm-message small {
  color: rgba(76, 53, 45, 0.56);
}

.mc-service-workspace .crm-reply-box {
  border-top: 1px solid rgba(179, 130, 98, 0.18);
  background: rgba(255, 250, 243, 0.94);
  padding: 12px;
}

.mc-service-workspace .crm-reply-box textarea {
  border-radius: 18px;
  min-height: 46px;
}

.mc-service-workspace .crm-details {
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--mc-card-soft);
}

.mc-service-workspace .crm-details dt {
  color: var(--mc-muted);
}

.mc-service-workspace .crm-details dd {
  color: var(--mc-text);
}

.mc-service-workspace .crm-status-form,
.mc-service-workspace .crm-test-form + .crm-test-form {
  border-top-color: var(--mc-line);
}

.mc-service-workspace .crm-log-list article {
  background: #fff5ec;
  border: 1px solid rgba(179, 130, 98, 0.14);
}

.mc-service-workspace .crm-log-list span,
.mc-service-workspace .crm-log-list small {
  color: var(--mc-muted);
}

.mc-service-workspace--crm .crm-leads-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.mc-service-workspace--crm .crm-kanban {
  gap: 12px;
}

.mc-service-workspace--crm .crm-kanban-column {
  min-height: 520px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.72);
}

.mc-service-workspace--crm .crm-kanban-column header strong,
.mc-service-workspace--crm .crm-lead-card__head strong,
.mc-service-workspace--crm .crm-funnel-list strong {
  color: var(--mc-text);
}

.mc-service-workspace--crm .crm-kanban-column header em {
  background: var(--mc-red-soft);
  color: var(--mc-red-strong);
}

.mc-service-workspace--crm .crm-kanban-column header span,
.mc-service-workspace--crm .crm-funnel-list i {
  background: var(--mc-red);
}

.mc-service-workspace--crm .crm-kanban-column.is-amber header span,
.mc-service-workspace--crm .crm-funnel-list i.is-amber {
  background: var(--mc-amber);
}

.mc-service-workspace--crm .crm-kanban-column.is-blue header span,
.mc-service-workspace--crm .crm-funnel-list i.is-blue {
  background: var(--mc-blue);
}

.mc-service-workspace--crm .crm-lead-card {
  background: #fffdf8;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(92, 55, 34, 0.08);
}

.mc-service-workspace--crm .crm-lead-card__head small,
.mc-service-workspace--crm .crm-lead-card__meta,
.mc-service-workspace--crm .crm-lead-card__foot small,
.mc-service-workspace--crm .crm-funnel-list span {
  color: var(--mc-muted);
}

.mc-service-workspace--crm .crm-lead-card__foot a {
  color: var(--mc-red-strong);
}

@media (max-width: 1280px) {
  .mc-service-workspace .crm-board,
  .mc-service-workspace--crm .crm-leads-layout {
    grid-template-columns: 1fr;
  }

  .mc-service-workspace--crm .crm-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mc-service-workspace {
    margin: -14px;
    padding: 16px;
  }

  .mc-service-workspace .platform-page-head {
    flex-direction: column;
  }

  .mc-service-workspace .crm-summary-row,
  .mc-service-workspace--crm .crm-kanban {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: var(--shadow-md);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    margin: 12px;
    padding: 20px;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .store-switcher {
    min-width: 0;
    width: 100%;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
  }

  .topbar-right {
    justify-content: flex-start;
  }

  .topbar-cta {
    width: 100%;
    min-width: 0;
  }

  .quick-actions-grid,
  .stats-grid,
  .story-preview-grid {
    grid-template-columns: 1fr;
  }

  .delivery-regions-table__head,
  .delivery-region-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customers-filter-form,
  .customers-table__head,
  .customer-row,
  .customers-report-table__head,
  .customer-report-row,
  .customer-detail-grid,
  .customer-detail-addresses {
    grid-template-columns: 1fr;
  }

  .customers-filter-form {
    display: grid;
    align-items: stretch;
  }

  .customers-table__head,
  .customers-report-table__head {
    display: none;
  }

  .customer-row__main small,
  .customer-row__phone small,
  .customer-row__metric small,
  .customer-row__address small,
  .customer-row__last small {
    display: block;
  }

  .customer-row__actions {
    justify-content: stretch;
  }

  .customer-row__actions .btn {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .dashboard-hero,
  .page-head,
  .section-heading--inline,
  .topbar-profile,
  .story-panel__header,
  .story-form-actions,
  .store-section-card__header,
  .store-hours-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-product-item {
    grid-template-columns: 64px 1fr;
  }

  .recent-product-item .status-badge {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }

  .story-highlight-card,
  .story-linked-item {
    grid-template-columns: 1fr;
  }

  .story-published-grid {
    grid-template-columns: 1fr;
  }

  .products-toolbar,
  .promotions-toolbar,
  .products-table-head,
  .products-row,
  .products-table-footer {
    grid-template-columns: 1fr;
  }

  .promotions-table-head,
  .promotions-row {
    grid-template-columns: 1fr;
  }

  .products-table-head {
    display: none;
  }

  .products-row__actions {
    justify-self: end;
  }

  .products-table-footer {
    display: grid;
  }
}

@media (max-width: 380px) {
  .dashboard-premium-hero--compact .dashboard-premium-hero__content {
    padding-right: 118px;
  }

  .dashboard-premium-hero--compact .dashboard-hero__cta {
    min-width: 108px;
    padding: 0 9px;
    font-size: 0.62rem;
  }

  .dashboard-premium-hero--compact h1 {
    font-size: 1.05rem;
  }
}

/* Desktop consistency pass for admin inner pages */
@media (min-width: 641px) {
  .admin-content {
    max-width: 1480px;
    margin: 0 auto;
  }

  .admin-body--operation-wide .admin-main {
    margin-right: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .admin-body--operation-wide .admin-content {
    width: 100%;
    max-width: none;
    padding-top: 18px;
  }

  .admin-body--operation-wide .operation-kanban {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .page-head {
    min-height: 76px;
    margin-bottom: 20px;
    padding: 0 2px;
  }

  .page-head h1 {
    font-size: clamp(1.9rem, 2.2vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .page-head p {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .page-head .btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 7px;
  }

  .stats-grid:not(.dashboard-stats--premium) {
    gap: 14px;
    margin-bottom: 22px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card {
    min-height: 148px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card::after {
    content: "";
    position: absolute;
    inset: auto 16px 16px auto;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.04;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__label {
    font-size: 0.94rem;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card strong {
    font-size: clamp(1.8rem, 2vw, 2.35rem);
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card small {
    color: var(--muted);
    font-size: 0.86rem;
  }

  .panel-card,
  .products-list-panel,
  .product-form-panel,
  .promotions-list-panel,
  .story-panel,
  .store-section-card {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }

  .panel-card {
    padding: 22px;
  }

  .products-list-panel,
  .product-form-panel,
  .promotions-list-panel {
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2,
  .panel-card h2,
  .store-section-card__header h2 {
    font-size: clamp(1.24rem, 1.5vw, 1.55rem);
    letter-spacing: -0.045em;
  }

  .section-heading p,
  .store-section-card__header p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .section-heading--inline {
    margin-bottom: 18px;
  }

  .products-toolbar,
  .promotions-toolbar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .products-toolbar__search,
  .products-toolbar__search input,
  .products-toolbar select,
  .promotions-toolbar select {
    min-height: 48px;
    border-radius: 7px;
    font-size: 0.9rem;
  }

  .products-table-modern {
    border-radius: 8px;
  }

  .products-table-head,
  .promotions-table-head {
    padding: 13px 16px;
    font-size: 0.76rem;
  }

  .products-row,
  .promotions-row {
    min-height: 78px;
    padding: 12px 16px;
  }

  .products-row__main,
  .promotions-row__main {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .products-row__thumb,
  .promotions-row__thumb {
    width: 56px;
    height: 56px;
    border-radius: 7px;
  }

  .products-row__title strong,
  .promotions-row strong {
    font-size: 0.98rem;
  }

  .products-row__content p,
  .promotions-row p {
    max-width: 460px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .product-featured-badge,
  .product-category-tag,
  .promotion-type-badge,
  .status-badge,
  .option-type-badge {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .products-row__price {
    font-size: 0.98rem;
  }

  .product-actions-menu__trigger {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .products-table-footer {
    padding: 14px 4px 0;
    font-size: 0.86rem;
  }

  .products-pagination button,
  .products-pagination__numbers button {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .form-grid {
    gap: 14px;
  }

  .form-grid.two-columns,
  .store-form-grid {
    gap: 16px;
  }

  .form-grid label,
  .store-field-group label {
    font-size: 0.86rem;
  }

  .login-card input,
  .form-grid input,
  .form-grid textarea,
  .form-grid select {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 0.92rem;
  }

  .checkbox-row {
    gap: 10px;
  }

  .checkbox-row label {
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 0.86rem;
  }

  .story-layout {
    gap: 18px;
  }

  .story-panel {
    padding: 20px;
  }

  .story-panel__header {
    margin-bottom: 14px;
  }

  .story-panel__header--soft {
    padding: 14px;
    border-radius: 8px;
  }

  .story-highlight-card {
    padding: 10px;
    border-radius: 8px;
  }

  .story-published-card,
  .story-preview-item {
    border-radius: 8px;
  }

  .story-published-grid {
    gap: 10px;
  }

  .store-top-grid {
    gap: 18px;
  }

  .store-section-card {
    padding: 22px;
  }

  .store-section-card__header {
    margin-bottom: 16px;
  }

  .store-media-grid {
    gap: 14px;
  }

  .store-media-card,
  .store-color-card {
    padding: 14px;
    border-radius: 8px;
  }

  .store-media-preview {
    border-radius: 7px;
  }

  .store-color-picker {
    border-radius: 7px;
  }

  .store-hours-toggle {
    border-radius: 8px;
  }

  .crud-grid,
  .admin-options-layout {
    gap: 18px;
  }

  .option-group-card {
    border-radius: 8px;
    padding: 16px;
  }

  .option-item-row {
    min-height: 50px;
    border-radius: 7px;
  }

  .delivery-region-row {
    min-height: 68px;
    padding: 14px 16px;
  }

  .table-wrap table {
    font-size: 0.92rem;
  }

  thead th {
    padding: 0 12px 12px;
    font-size: 0.76rem;
  }

  tbody td {
    padding: 13px 12px;
  }

  .actions a,
  .actions button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
  }
}

/* Mobile consistency pass for all admin pages */
@media (max-width: 640px) {
  .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .page-head h1 {
    font-size: 1.48rem;
    line-height: 1.05;
    letter-spacing: -0.05em;
  }

  .page-head p {
    margin-top: 5px;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .page-head .btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .page-head__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .page-head__actions .btn {
    justify-content: center;
  }

  .admin-options-actions,
  .admin-page-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: -2px 0 18px;
  }

  .admin-options-action,
  .admin-page-action {
    min-height: 72px;
    padding: 14px;
    border-radius: 8px;
  }

  .admin-options-action__icon,
  .admin-page-action__icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
  }

  .admin-options-action__icon svg,
  .admin-page-action__icon svg {
    width: 19px;
    height: 19px;
  }

  .admin-options-action strong,
  .admin-page-action strong {
    font-size: 0.9rem;
  }

  .admin-options-action small,
  .admin-page-action small {
    font-size: 0.72rem;
  }

  .stats-grid:not(.dashboard-stats--premium) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card {
    min-height: 122px;
    padding: 14px;
    border-radius: 8px;
    gap: 5px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card::after {
    display: none;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__icon svg {
    width: 19px;
    height: 19px;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card__label {
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card strong {
    font-size: 1.45rem;
    line-height: 1;
  }

  .stats-grid:not(.dashboard-stats--premium) .stat-card small {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .panel-card,
  .products-list-panel,
  .product-form-panel,
  .promotions-list-panel,
  .story-panel,
  .store-section-card,
  .option-group-card {
    border-radius: 8px;
  }

  .panel-card {
    padding: 16px;
  }

  .panel-card h2,
  .section-heading h2,
  .store-section-card__header h2 {
    font-size: 1.18rem;
    letter-spacing: -0.04em;
  }

  .section-heading p,
  .store-section-card__header p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .story-tabs,
  .store-tabs {
    gap: 14px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .story-tabs::-webkit-scrollbar,
  .store-tabs::-webkit-scrollbar {
    display: none;
  }

  .story-tabs a,
  .story-tabs span,
  .store-tabs a {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .products-toolbar,
  .promotions-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .products-toolbar__search,
  .products-toolbar__search input,
  .products-toolbar select,
  .promotions-toolbar select {
    min-height: 42px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .products-table-modern {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .products-table-body {
    display: grid;
    gap: 8px;
  }

  .products-row,
  .promotions-row,
  .delivery-region-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
  }

  .products-row__check,
  .products-row__category,
  .products-row__status,
  .promotions-row > div:first-child,
  .delivery-region-row > div:nth-child(3) {
    display: none;
  }

  .products-row__actions {
    display: block;
    align-self: center;
    justify-self: end;
  }

  .product-actions-menu__trigger {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .product-actions-menu__dropdown {
    right: 0;
    min-width: 124px;
  }

  .products-row__main,
  .promotions-row__main {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .products-row__thumb,
  .promotions-row__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .products-row__content,
  .products-row__title,
  .products-row__main {
    min-width: 0;
  }

  .products-row__title strong,
  .promotions-row strong,
  .delivery-region-row__main strong {
    overflow: hidden;
    font-size: 0.84rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .products-row__content p,
  .promotions-row p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .products-row__price,
  .promotions-row__period,
  .delivery-region-row > div:nth-child(2) {
    align-self: center;
    justify-self: end;
    font-size: 0.86rem;
    font-weight: 900;
  }

  .product-featured-badge,
  .product-category-tag,
  .promotion-type-badge,
  .status-badge,
  .option-type-badge {
    padding: 6px 9px;
    min-width: 0;
    font-size: 0.66rem;
  }

  .products-table-footer {
    gap: 10px;
    padding: 12px 0 0;
    font-size: 0.76rem;
  }

  .products-pagination button,
  .products-pagination__numbers button {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .crud-grid,
  .admin-options-layout,
  .store-top-grid,
  .store-media-grid,
  .form-grid.two-columns,
  .store-hours-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid {
    gap: 10px;
  }

  .form-grid label,
  .store-field-group label {
    font-size: 0.78rem;
  }

  .login-card input,
  .form-grid input,
  .form-grid textarea,
  .form-grid select {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 16px;
  }

  .checkbox-row {
    gap: 8px;
  }

  .checkbox-row label {
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-management-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-panel__header {
    gap: 12px;
    padding: 12px;
    border-radius: 7px;
  }

  .story-panel__header h2 {
    font-size: 1.08rem;
  }

  .story-panel,
  .story-highlights-panel,
  .story-published-panel,
  .story-selected-panel {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .story-outline-button {
    width: 100%;
  }

  .story-highlight-card {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 11px;
    border-radius: 7px;
  }

  .story-highlight-card__drag {
    width: 28px;
    height: 42px;
    border-radius: 7px;
  }

  .story-highlight-card__thumb {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }

  .story-highlight-card__body strong {
    font-size: 0.84rem;
  }

  .story-highlight-card__body small {
    font-size: 0.68rem;
  }

  .story-highlight-card > .status-badge {
    grid-column: 2 / 3;
    justify-self: start;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .story-highlight-list--divided {
    border-radius: 8px;
  }

  .story-highlight-card__actions {
    grid-column: 3 / 4;
    grid-row: 2;
    justify-content: flex-end;
    min-width: 0;
  }

  .story-highlight-card__actions a,
  .story-highlight-card__actions button {
    min-height: 32px;
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .story-published-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .story-published-grid::-webkit-scrollbar {
    display: none;
  }

  .story-published-card {
    flex: 0 0 148px;
    min-height: 206px;
    border-radius: 7px;
  }

  .story-active-list {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
  }

  .story-active-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 11px;
  }

  .story-active-item__media {
    width: 46px;
    height: 58px;
    border-radius: 7px;
  }

  .story-active-item__body strong {
    font-size: 0.86rem;
  }

  .story-active-item__body span {
    font-size: 0.76rem;
  }

  .story-active-item > .status-badge {
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .story-active-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .story-active-item__actions a,
  .story-active-item__actions button {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .story-linked-items {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
  }

  .story-linked-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 11px;
  }

  .story-linked-item__media {
    width: 46px;
    height: 58px;
    border-radius: 7px;
  }

  .story-linked-item__body {
    min-width: 0;
    gap: 5px;
  }

  .story-linked-item__body strong {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .story-linked-item__body .status-badge {
    justify-self: start;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .story-linked-item__actions {
    justify-content: flex-end;
  }

  .story-linked-item__actions button {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .store-media-card,
  .store-color-card {
    padding: 12px;
    border-radius: 7px;
  }

  .store-media-preview--logo,
  .store-media-preview--banner {
    max-width: 100%;
  }

  .store-color-picker {
    grid-template-columns: 42px 42px 1fr;
    padding: 10px;
    border-radius: 7px;
  }

  .store-color-picker input[type="color"],
  .store-color-swatch {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }

  .store-hours-toggle {
    padding: 12px;
    border-radius: 7px;
  }

  .option-group-card {
    padding: 14px;
  }

  .option-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 7px;
  }

  .option-item-row a,
  .option-item-row form {
    grid-column: span 1;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
  }

  .table-wrap tr + tr {
    margin-top: 8px;
  }

  .table-wrap td {
    padding: 5px 0;
    border: 0;
    font-size: 0.82rem;
  }

  .actions {
    gap: 8px;
    padding-top: 8px;
  }

  .actions a,
  .actions button {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
  }

  .category-list-row {
    display: grid !important;
    grid-template-columns: 36px 42px minmax(58px, auto) 1fr;
    grid-template-areas:
      "name name name name"
      "icon order status actions";
    gap: 9px 8px;
    align-items: center;
    padding: 11px !important;
  }

  .category-list-row td {
    padding: 0;
  }

  .category-list-name {
    grid-area: name;
    overflow: hidden;
    color: var(--text);
    font-size: 0.88rem !important;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .category-list-icon {
    grid-area: icon;
  }

  .category-list-order {
    grid-area: order;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border-radius: 8px;
    color: #596273;
    background: #f4f6fa;
    font-size: 0.72rem !important;
    font-weight: 900;
  }

  .category-list-order::before {
    content: "#";
  }

  .category-list-status {
    grid-area: status;
  }

  .category-list-status .status-badge {
    min-width: 58px;
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .category-list-actions {
    grid-area: actions;
    display: flex !important;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 0;
  }

  .category-list-actions a,
  .category-list-actions button {
    min-height: 30px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.66rem;
  }

  .category-icon-preview {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.86rem;
  }

  .category-icon-preview .category-icon-combo {
    width: 20px;
    height: 17px;
  }

  .product-form-modal {
    padding: 10px;
  }

  .product-form-modal__card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 8px;
  }

  .category-form-modal {
    padding: 10px;
  }

  .category-form-modal__card {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
  }

  .story-publish-modal {
    padding: 10px;
  }

  .story-publish-modal__card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 8px;
  }

  .category-icon-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-icon-option > span {
    min-height: 64px;
    border-radius: 7px;
  }

  .product-form-modal__head {
    top: -16px;
    margin: -16px -16px 14px;
    padding: 16px;
    border-radius: 8px 8px 0 0;
  }

  .product-form-modal__head h2 {
    font-size: 1.22rem;
  }

  .product-form-modal__head p {
    font-size: 0.78rem;
  }

  .product-form-modal .product-option-picker {
    max-height: 220px;
  }

  .product-options-accordion {
    border-radius: 7px;
  }

  .product-options-accordion summary {
    align-items: flex-start;
    padding: 12px;
    gap: 8px;
  }

  .product-options-accordion summary strong {
    font-size: 0.86rem;
  }

  .product-options-accordion summary small {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .product-options-accordion summary em {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .product-options-accordion summary::after {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .product-options-accordion .product-option-picker {
    margin: 0;
    padding: 0 12px 12px;
  }

  .product-options-accordion .product-option-picker__item {
    min-height: 54px;
    padding: 10px 0;
  }

  .product-options-accordion .product-option-picker__item strong {
    font-size: 0.82rem;
  }

  .product-options-accordion .product-option-picker__item small {
    font-size: 0.7rem;
  }
}

/* Premium admin refresh */
:root {
  --primary: #c60410;
  --primary-dark: #9f0310;
  --primary-soft: #fff0f1;
  --text: #171923;
  --muted: #747b8c;
  --border: #e9edf4;
  --shadow-sm: 0 12px 30px rgba(23, 25, 35, 0.06);
  --shadow-md: 0 24px 60px rgba(23, 25, 35, 0.10);
}

.admin-body {
  background:
    radial-gradient(circle at 16% 0%, rgba(198, 4, 16, 0.10), transparent 24%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
}

.admin-shell {
  background: transparent;
}

.sidebar {
  background: #fff;
  border-right: 1px solid rgba(233, 237, 244, 0.95);
}

.brand-card {
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.20), transparent 24%),
    linear-gradient(135deg, #bc0310 0%, #cf0715 58%, #ed641f 100%);
}

.brand-card__logo {
  display: block;
  width: min(184px, 100%);
}

.brand-card__logo img {
  width: 100%;
  height: auto;
}

.brand-card p {
  margin: 0;
  padding-left: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sidebar-nav a,
.sidebar-footer a {
  border-radius: 8px;
  min-height: 52px;
}

.sidebar-nav a.is-active {
  background: linear-gradient(135deg, #c60410, #e0222b);
  box-shadow: 0 14px 30px rgba(198, 4, 16, 0.22);
}

.admin-main {
  margin: 14px 14px 14px 0;
  padding: 20px 22px 26px;
  border-radius: 8px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.topbar {
  min-height: 74px;
  padding: 0 0 18px;
}

.store-switcher,
.topbar-notification,
.topbar-profile__avatar {
  box-shadow: 0 10px 24px rgba(23, 25, 35, 0.05);
}

.store-switcher {
  min-width: 280px;
  padding: 9px 12px;
  border-radius: 8px;
}

.store-switcher__thumb {
  width: 46px;
  height: 46px;
  border-radius: 7px;
}

.topbar-notification {
  width: 44px;
  height: 44px;
}

.topbar-profile__avatar {
  width: 46px;
  height: 46px;
  background: #c60410;
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(233, 237, 244, 0.95);
  box-shadow: 0 10px 24px rgba(23, 25, 35, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, #c60410 0%, #e31b28 100%);
  box-shadow: 0 16px 34px rgba(198, 4, 16, 0.22);
}

.operation-page-head {
  align-items: flex-start;
}

.operation-session-chip {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eefcf2;
  color: #16834c;
  font-size: 0.78rem;
  font-weight: 900;
}

.operation-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.operation-head-actions form {
  margin: 0;
}

.operation-summary-grid {
  margin-top: 0;
  margin-bottom: 12px;
}

.operation-summary-grid .stat-card,
.operation-filters,
.operation-settings-grid .panel-card,
#finished-orders.panel-card {
  border-radius: 8px;
}

.operation-lock-card {
  margin: 18px 0;
  border-color: rgba(217, 28, 28, 0.18);
}

.operation-business-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.operation-business-strip--management {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.operation-business-strip article {
  padding: 18px 20px;
  border: 1px solid rgba(231, 235, 243, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.operation-business-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.operation-business-strip strong {
  color: var(--text);
  font-size: 1.35rem;
}

.operation-work-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
}

.operation-work-actions form {
  margin: 0;
}

.operation-work-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.operation-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}

.operation-top-actions form {
  margin: 0;
}

.operation-top-actions .btn {
  min-height: 40px;
  white-space: nowrap;
}

.operation-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.operation-fullscreen-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.operation-board-area {
  background: transparent;
}

.operation-summary-grid.dashboard-stats--premium .stat-card {
  min-height: 88px;
  padding: 14px 78px 14px 16px;
  gap: 4px;
}

.operation-summary-grid.dashboard-stats--premium .stat-card__icon {
  width: 38px;
  height: 38px;
  right: 18px;
}

.operation-summary-grid.dashboard-stats--premium .stat-card__icon svg {
  width: 21px;
  height: 21px;
}

.operation-summary-grid.dashboard-stats--premium .stat-card__label {
  font-size: 0.86rem;
}

.operation-summary-grid.dashboard-stats--premium .stat-card strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.75rem;
  line-height: 1;
}

.operation-summary-grid.dashboard-stats--premium .stat-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.operation-board-area.is-operation-fullscreen,
.operation-board-area:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  padding: 18px;
  background: #f6f7fb;
}

.operation-board-area.is-operation-fullscreen .operation-kanban,
.operation-board-area:fullscreen .operation-kanban {
  min-height: calc(100vh - 142px);
}

body.operation-ui-hidden .sidebar,
body.operation-ui-hidden .topbar {
  display: none;
}

body.operation-ui-hidden .admin-shell {
  grid-template-columns: 1fr;
}

body.operation-ui-hidden .admin-main {
  margin: 0;
  padding: 14px;
  border-radius: 0;
}

body.operation-ui-hidden .admin-content {
  max-width: none;
  padding-top: 0;
}

.operation-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 20px;
  padding: 18px;
}

.operation-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.operation-filters input,
.operation-filters select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.operation-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.operation-mobile-tabs {
  display: none;
}

.operation-column {
  min-width: 260px;
  overflow: hidden;
  border: 1px solid rgba(231, 235, 243, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.operation-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(231, 235, 243, 0.82);
}

.operation-column__head strong {
  font-size: 0.96rem;
}

.operation-column__head span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.operation-column--new .operation-column__head {
  background: #edf4ff;
  color: #0f55c6;
}

.operation-column--new .operation-column__head span {
  background: #1d64d8;
}

.operation-column--preparing .operation-column__head {
  background: #fff7e6;
  color: #d78a00;
}

.operation-column--preparing .operation-column__head span {
  background: #f59f00;
}

.operation-column--ready .operation-column__head {
  background: #edf9f0;
  color: #16834c;
}

.operation-column--ready .operation-column__head span {
  background: #219653;
}

.operation-column--delivery .operation-column__head {
  background: #f3efff;
  color: #6d35d6;
}

.operation-column--delivery .operation-column__head span {
  background: #6d35d6;
}

.operation-column__body {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 360px;
  padding: 10px;
}

.operation-order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(225, 230, 238, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.operation-order-card header,
.operation-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.operation-order-card header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.operation-order-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.18;
}

.operation-order-items {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #273142;
  font-size: 0.84rem;
  line-height: 1.22;
}

.operation-order-note {
  padding: 10px;
  border-radius: 8px;
  background: #f2f6ff;
  color: #435065;
  font-size: 0.82rem;
  line-height: 1.35;
}

.operation-order-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.operation-order-meta strong {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.84rem;
}

.operation-stage-note {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.operation-stage-note strong {
  color: #172033;
}

.operation-stage-note span {
  color: #465367;
}

.operation-stage-note b {
  color: #172033;
}

.operation-stage-note--preparing {
  background: #fff8e8;
}

.operation-stage-note--ready {
  background: #edf8f0;
  color: #16834c;
}

.operation-stage-note--delivery {
  background: #f3efff;
  color: #6d35d6;
}

.operation-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.operation-order-actions--progress {
  grid-template-columns: minmax(58px, 0.25fr) minmax(0, 0.75fr);
}

.operation-order-actions > button,
.operation-order-actions > form {
  min-width: 0;
  width: 100%;
}

.operation-order-actions form {
  margin: 0;
}

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

.operation-inline-field {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  resize: vertical;
}

.operation-order-actions form:only-child {
  grid-column: 1 / -1;
}

.operation-action {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #0f9a45;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.operation-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.operation-action--reject {
  border: 1px solid rgba(217, 28, 28, 0.18);
  background: #fff;
  color: #c60410;
}

.operation-action--view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #c60410;
  color: #fff;
}

.operation-column--preparing .operation-action:not(.operation-action--view) {
  background: #f5a400;
}

.operation-column--delivery .operation-action:not(.operation-action--view) {
  background: #6731d2;
}

.operation-empty {
  padding: 12px;
  text-align: center;
}

.operation-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  margin-top: 22px;
}

.operation-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.operation-finished-panel {
  min-width: 0;
}

.operation-settings-form {
  display: grid;
  gap: 0;
}

.operation-settings-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(226, 230, 236, 0.96);
}

.operation-settings-section .operation-settings-fields {
  grid-column: 1 / -1;
}

.operation-settings-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.operation-settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.operation-settings-fields label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.operation-settings-fields input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.operation-toggle {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 800;
}

.operation-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.operation-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 230, 236, 0.96);
}

.operation-print-preview .receipt-preview {
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
}

.operation-order-modal {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 120;
}

.operation-order-modal .modal-backdrop {
  position: fixed;
  background: rgba(14, 18, 28, 0.48);
}

.operation-order-modal__card {
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 7px;
}

.operation-receipt {
  display: grid;
  gap: 12px;
  color: #121826;
}

.operation-receipt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.operation-receipt__head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-receipt__head h2 {
  margin: 2px 0 0;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.operation-receipt__customer,
.operation-receipt__meta,
.operation-receipt__box,
.operation-receipt__items article,
.operation-receipt__totals {
  border: 1px solid rgba(225, 230, 238, 0.95);
  border-radius: 8px;
  background: #fff;
}

.operation-receipt__customer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
}

.operation-receipt__customer strong {
  font-size: 1.05rem;
}

.operation-receipt__customer span {
  color: var(--muted);
  font-weight: 900;
}

.operation-receipt__customer small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.operation-receipt__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.operation-receipt__meta strong {
  margin-left: auto;
  color: var(--primary);
  font-size: 1rem;
}

.operation-print-template {
  display: none;
}

.operation-receipt__box {
  padding: 12px;
  background: #f7f9fd;
}

.operation-receipt__box--danger {
  border-color: rgba(198, 4, 16, 0.16);
  background: #fff1f2;
}

.operation-receipt__box--refund {
  border-color: rgba(100, 116, 139, 0.2);
  background: #f8fafc;
}

.operation-receipt__box strong {
  display: block;
  margin-bottom: 4px;
}

.operation-receipt__box p {
  margin: 0;
  color: #435065;
  font-size: 0.88rem;
}

.operation-receipt__items {
  display: grid;
  gap: 10px;
}

.operation-receipt__items article {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.operation-receipt__item-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operation-receipt__item-line span {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.operation-receipt__items p,
.operation-receipt__items ul {
  margin: 0;
  color: #4c5565;
  font-size: 0.86rem;
}

.operation-receipt__items ul {
  display: grid;
  gap: 3px;
  padding-left: 18px;
}

.operation-receipt__item-note,
.operation-receipt__box--note {
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: #24324a;
  font-size: 0.84rem;
}

@media print {
  body * {
    visibility: hidden;
  }

  .operation-order-modal.is-visible [data-operation-print-area],
  .operation-order-modal.is-visible [data-operation-print-area] *,
  .reports-print-area,
  .reports-print-area * {
    visibility: visible;
  }

  .operation-order-modal.is-visible [data-operation-print-area] {
    position: absolute;
    inset: 0 auto auto 0;
    width: 80mm;
    padding: 0;
  }

  .reports-print-area {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    background: #fff;
  }

  .reports-print-actions,
  .reports-print-button,
  .reports-filter,
  .operation-report-notice {
    display: none !important;
  }

  .reports-print-area .panel-card,
  .reports-print-area .stat-card,
  .reports-mini-summary article,
  .reports-closures-list article,
  .reports-list article,
  .reports-orders article {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .reports-grid,
  .reports-summary-grid--main.dashboard-stats--premium,
  .reports-mini-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .reports-closures-list article {
    grid-template-columns: 1fr !important;
  }

  .reports-closures-list dl {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.operation-receipt__totals {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.operation-receipt__totals p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.operation-receipt__totals strong {
  color: var(--text);
}

.operation-receipt__total {
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.operation-receipt__total strong {
  color: var(--primary);
  font-size: 1.15rem;
}

.operation-order-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.operation-order-modal__actions form {
  margin: 0;
}

.operation-detail-form {
  display: grid;
  gap: 10px;
}

.operation-detail-form__fields {
  display: none;
  gap: 10px;
}

.operation-detail-form.is-open .operation-detail-form__fields {
  display: grid;
}

.operation-detail-form__fields label {
  display: grid;
  gap: 7px;
}

.operation-detail-form__fields span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.operation-detail-form__fields input,
.operation-detail-form__fields textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.operation-detail-form__fields textarea {
  min-height: 88px;
  resize: vertical;
}

.operation-detail-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.operation-detail-form.is-open [data-operation-detail-submit] {
  display: inline-flex !important;
}

.receipt-preview p {
  margin: 0;
}

.receipt-preview br {
  content: "";
  display: block;
  min-height: 8px;
}

.receipt-preview hr {
  width: 100%;
  border: 0;
  border-top: 1px dashed #cbd5e1;
}

.operation-finished-list {
  display: grid;
  gap: 10px;
}

.operation-finished-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

.operation-finished-list article > div {
  display: grid;
  gap: 4px;
}

.operation-finished-list span {
  color: var(--muted);
  font-weight: 800;
}

.operation-finished-list--muted article {
  background: #f8fafc;
}

.operation-refund-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
}

.operation-finished-view {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #c60410;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.operation-has-new-order .topbar-notification {
  color: var(--primary);
  box-shadow: 0 0 0 6px rgba(217, 28, 28, 0.08);
}

.reports-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
}

.reports-filter label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.reports-filter input,
.reports-filter select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.reports-filter [hidden] {
  display: none;
}

.report-period-menu {
  position: relative;
}

.report-period-menu > button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.report-period-menu > button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.report-period-menu__dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 6px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.report-period-menu.is-open .report-period-menu__dropdown {
  display: grid;
  gap: 4px;
}

.report-period-menu__dropdown button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.report-period-menu__dropdown button:hover,
.report-period-menu__dropdown button.is-active {
  background: #fff0f0;
  color: var(--primary);
}

.reports-summary-grid .stat-card {
  border-radius: 8px;
}

.reports-summary-grid--main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.reports-mini-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.reports-mini-summary article {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(231, 235, 243, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.reports-mini-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.reports-mini-summary strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
}

.reports-print-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.reports-print-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reports-print-actions {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 0;
}

.reports-closures {
  margin-top: 18px;
  border-radius: 8px;
}

.reports-closures-list {
  display: grid;
  gap: 10px;
}

.reports-closures-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 2.4fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
}

.reports-closure-main {
  display: grid;
  gap: 4px;
}

.reports-closure-main strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.reports-closure-main span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.reports-closures-list dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
  margin: 0;
}

.reports-closures-list dl div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.reports-closures-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.reports-closures-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.reports-closures-list dl div:last-child dd {
  color: var(--primary);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.reports-grid .panel-card {
  border-radius: 8px;
}

.reports-list,
.reports-orders {
  display: grid;
  gap: 10px;
}

.reports-list article,
.reports-orders article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 230, 236, 0.96);
  border-radius: 8px;
  background: #fff;
}

.reports-orders article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.reports-list strong,
.reports-orders strong {
  color: var(--text);
}

.reports-list span,
.reports-orders span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.reports-orders small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.reports-list em,
.reports-orders em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.reports-orders--stopped em {
  color: #667085;
}

@media (max-width: 1180px) {
  .reports-mini-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .operation-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operation-kanban {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
  }

  .operation-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .operation-page-head,
  .operation-head-actions {
    align-items: stretch;
  }

  .operation-page-head {
    display: flex;
    flex-direction: column;
  }

  .operation-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .operation-head-actions .btn,
  .operation-head-actions form,
  .operation-head-actions button {
    width: 100%;
  }

  .operation-head-actions form:first-child {
    order: 4;
  }

  .operation-head-actions form:nth-child(2) {
    order: 3;
  }

  .operation-head-actions a[href="#operation-settings"] {
    order: 1;
  }

  .operation-head-actions a[href="#finished-orders"] {
    order: 2;
  }

  .reports-summary-grid--main,
  .operation-business-strip,
  .operation-history-grid,
  .operation-filters,
  .reports-filter,
  .reports-closures-list article,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .operation-work-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .operation-work-actions .btn,
  .operation-work-actions form {
    width: 100%;
  }

  .operation-business-strip--management {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-closures-list article {
    gap: 12px;
    padding: 12px;
  }

  .reports-closure-main {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 230, 236, 0.96);
  }

  .reports-closure-main strong {
    font-size: 0.98rem;
  }

  .reports-closure-main span {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .reports-closures-list dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .reports-closures-list dl div {
    min-height: 58px;
    padding: 8px;
  }

  .reports-closures-list dt {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .reports-closures-list dt[data-mobile-label] {
    font-size: 0;
  }

  .reports-closures-list dt[data-mobile-label]::before {
    content: attr(data-mobile-label);
    font-size: 0.66rem;
  }

  .reports-closures-list dd {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .reports-mini-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-filter .btn {
    width: 100%;
  }

  .reports-print-button,
  .reports-print-actions .btn {
    width: 100%;
  }

  .reports-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pro-upgrade-modal__card {
    padding: 22px;
  }

  .pro-upgrade-modal__features,
  .pro-upgrade-modal__actions {
    grid-template-columns: 1fr;
  }

  .operation-settings-section {
    grid-template-columns: 1fr;
  }

  .operation-kanban {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .operation-mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0 10px;
    padding: 8px;
    border: 1px solid rgba(226, 230, 236, 0.96);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
  }

  .operation-mobile-tabs button {
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .operation-mobile-tabs button span {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    margin-left: 3px;
    place-items: center;
    border-radius: 8px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.68rem;
  }

  .operation-mobile-tab--new {
    background: #edf4ff !important;
    color: #0f55c6 !important;
  }

  .operation-mobile-tab--preparing {
    background: #fff7e6 !important;
    color: #d78a00 !important;
  }

  .operation-mobile-tab--ready {
    background: #edf9f0 !important;
    color: #16834c !important;
  }

  .operation-mobile-tab--delivery {
    background: #f3efff !important;
    color: #6d35d6 !important;
  }

  .operation-mobile-tab--new.is-active {
    border-color: #1d64d8;
    background: #1d64d8 !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(29, 100, 216, 0.18);
  }

  .operation-mobile-tab--preparing.is-active {
    border-color: #f59f00;
    background: #f59f00 !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(245, 159, 0, 0.2);
  }

  .operation-mobile-tab--ready.is-active {
    border-color: #219653;
    background: #219653 !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(33, 150, 83, 0.18);
  }

  .operation-mobile-tab--delivery.is-active {
    border-color: #6d35d6;
    background: #6d35d6 !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(109, 53, 214, 0.18);
  }

  .operation-mobile-tabs button.is-active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .operation-column {
    display: none;
  }

  .operation-column.is-mobile-active {
    display: block;
  }

  .operation-settings-fields {
    grid-template-columns: 1fr;
  }

  .operation-settings-actions .btn {
    width: 100%;
  }

  .operation-order-modal {
    padding: calc(74px + env(safe-area-inset-top)) 12px calc(88px + env(safe-area-inset-bottom));
  }

  .operation-order-modal__card {
    width: 100%;
    max-height: calc(100dvh - 74px - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 7px;
  }

  .operation-column {
    min-width: 0;
  }

  .operation-finished-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

.page-head > .btn-primary,
.store-page-head > .btn-primary,
.story-page-head > .btn-primary,
.products-page-head > .btn-primary,
.promotions-page-head > .btn-primary {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(217, 28, 28, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 14px 30px rgba(217, 28, 28, 0.18);
}

.page-head > .btn-primary:hover,
.store-page-head > .btn-primary:hover,
.story-page-head > .btn-primary:hover,
.products-page-head > .btn-primary:hover,
.promotions-page-head > .btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 28, 28, 0.25);
  box-shadow: 0 18px 38px rgba(217, 28, 28, 0.24);
}

.dashboard-premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 18, 28, 0.92), rgba(198, 4, 16, 0.88)),
    var(--store-banner) center / cover;
  box-shadow: 0 28px 70px rgba(43, 6, 11, 0.18);
}

.dashboard-premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 206, 41, 0.18), transparent 24%);
  pointer-events: none;
}

.dashboard-premium-hero__content,
.dashboard-store-preview {
  position: relative;
  z-index: 1;
}

.dashboard-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: #ffd84d;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-kicker--light {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(198, 4, 16, 0.08);
}

.dashboard-premium-hero h1 {
  max-width: 720px;
  margin: 16px 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.dashboard-premium-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}

.dashboard-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.dashboard-hero-primary-actions,
.dashboard-hero-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-hero-primary-actions {
  justify-content: flex-end;
}

.dashboard-hero-status-row {
  justify-content: flex-end;
}

.dashboard-hero-status-form {
  margin: 0;
}

.dashboard-status-chip {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(218, 223, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-status-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(20, 25, 38, 0.08);
}

.dashboard-status-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.dashboard-status-chip__text {
  display: grid;
  gap: 2px;
  text-align: left;
}

.dashboard-status-chip__text strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.dashboard-status-chip.is-open {
  border-color: rgba(22, 163, 74, 0.18);
  background: #f2fbf6;
}

.dashboard-status-chip.is-open .dashboard-status-chip__dot,
.dashboard-status-chip.is-running .dashboard-status-chip__dot {
  background: #16a34a;
}

.dashboard-status-chip.is-closed {
  border-color: rgba(217, 45, 32, 0.16);
  background: #fff3f2;
}

.dashboard-status-chip.is-closed .dashboard-status-chip__dot,
.dashboard-status-chip.is-paused .dashboard-status-chip__dot {
  background: #d92d20;
}

.dashboard-status-chip.is-running {
  border-color: rgba(37, 99, 235, 0.14);
  background: #f4f8ff;
}

.dashboard-status-chip.is-paused {
  border-color: rgba(234, 88, 12, 0.14);
  background: #fff7ed;
}

.dashboard-hero__secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: none;
}

.dashboard-store-preview {
  align-self: stretch;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  min-height: 280px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(7, 9, 16, 0.20);
}

.dashboard-store-preview__banner {
  min-height: 126px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.36)),
    var(--store-banner) center / cover;
}

.dashboard-store-preview__body {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 0 18px 14px;
  margin-top: -28px;
}

.dashboard-store-preview__logo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 8px;
  background: #c60410;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 25, 35, 0.16);
}

.dashboard-store-preview__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-store-preview__body strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.dashboard-store-preview__body p {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-store-preview__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
}

.dashboard-store-preview__progress span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-store-preview__progress strong {
  color: var(--primary);
}

.dashboard-store-preview__progress div {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0f5;
}

.dashboard-store-preview__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c60410, #ffb21c);
}

.dashboard-stats--premium {
  gap: 14px;
}

.dashboard-stats--premium .stat-card {
  min-height: 142px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.dashboard-stats--premium .stat-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.06;
}

.dashboard-stats--premium .stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.dashboard-stats--premium .stat-card strong {
  font-size: 2.25rem;
}

.dashboard-stats--premium .stat-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-actions-block,
.dashboard-banners-block {
  padding: 22px;
  border: 1px solid rgba(233, 237, 244, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.quick-actions-grid--premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-actions-grid--premium .quick-action {
  min-height: 112px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
}

.quick-actions-grid--premium .quick-action > span:last-child {
  display: grid;
  gap: 5px;
}

.quick-actions-grid--premium .quick-action small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.quick-actions-grid--premium .quick-action__icon {
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, #fff);
}

.quick-actions-grid--premium .quick-action__icon svg {
  stroke: currentColor;
}

.dashboard-content-grid--premium {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-bottom: 22px;
}

.dashboard-content-grid--premium .panel-card,
.dashboard-banners-block {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-content-grid--premium .section-heading h2,
.dashboard-banners-block .section-heading h2,
.dashboard-actions-block .section-heading h2 {
  font-size: 1.35rem;
}

.dashboard-content-grid--premium .section-heading--inline,
.dashboard-banners-block .section-heading--inline,
.dashboard-actions-block .section-heading--inline {
  margin-bottom: 16px;
}

.recent-product-item {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fbfcff;
}

.recent-product-item__media {
  width: 68px;
  height: 68px;
  border-radius: 8px;
}

.story-preview-item {
  box-shadow: 0 16px 34px rgba(23, 25, 35, 0.10);
}

.dashboard-story-card .story-preview-grid,
.dashboard-banner-grid {
  gap: 14px;
}

.dashboard-story-card .story-preview-item {
  min-height: 230px;
}

.dashboard-banner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-banner-item {
  min-height: 190px;
}

.dashboard-premium-hero--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 176px;
  padding: 24px 28px;
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--store-banner) center / cover;
  box-shadow: 0 14px 34px rgba(23, 25, 35, 0.07);
}

.dashboard-premium-hero--compact::before {
  display: none;
}

.dashboard-premium-hero--compact h1 {
  margin: 10px 0 6px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-premium-hero--compact p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.dashboard-premium-hero--compact .dashboard-kicker {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(198, 4, 16, 0.08);
}

.dashboard-premium-hero--compact .dashboard-hero-actions {
  margin-top: 0;
  justify-content: flex-end;
  align-items: flex-end;
}

.dashboard-premium-hero--compact .btn,
.quick-actions-grid--compact .quick-action,
.dashboard-actions-block,
.dashboard-content-grid--premium .panel-card,
.dashboard-banners-block,
.dashboard-stats--premium .stat-card {
  border-radius: 8px;
}

.dashboard-actions-block--flat {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quick-actions-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions-grid--compact .quick-action {
  min-height: 82px;
  padding: 14px;
  gap: 10px;
}

.quick-actions-grid--compact .quick-action__icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 11%, #fff);
}

.quick-actions-grid--compact .quick-action__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.quick-actions-grid--compact .quick-action > span:last-child {
  display: grid;
  gap: 3px;
}

.quick-actions-grid--compact .quick-action strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.quick-actions-grid--compact .quick-action small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-stats--premium .stat-card {
  min-height: 150px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dashboard-stats--premium .stat-card--rose {
  background: linear-gradient(180deg, #fff5f5 0%, #ffeded 100%);
}

.dashboard-stats--premium .stat-card--amber {
  background: linear-gradient(180deg, #fff9e8 0%, #fff3d6 100%);
}

.dashboard-stats--premium .stat-card--mint {
  background: linear-gradient(180deg, #f0fcf4 0%, #e8f8ed 100%);
}

.dashboard-stats--premium .stat-card--lavender {
  background: linear-gradient(180deg, #f5f1ff 0%, #eee8ff 100%);
}

.dashboard-content-grid--premium .panel-card {
  padding: 22px;
}

.dashboard-list-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-story-card {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-list-card .section-heading--inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.dashboard-story-card .section-heading--inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.dashboard-list-card .section-heading--inline > div {
  min-width: 0;
}

.dashboard-story-card .section-heading--inline > div {
  min-width: 0;
}

.dashboard-list-card .section-heading--inline h2 {
  margin-bottom: 0;
}

.dashboard-story-card .section-heading--inline h2 {
  margin-bottom: 0;
}

.dashboard-list-card .recent-product-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.dashboard-list-card .recent-product-item {
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}

.dashboard-list-card .recent-product-item:last-child {
  border-bottom: 0;
}

.dashboard-list-card .recent-product-item:hover {
  background: #fafbfe;
}

.dashboard-story-card .story-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-story-card .story-preview-item {
  min-height: 260px;
  border-radius: 8px;
  aspect-ratio: 9 / 15;
}

.dashboard-story-card .story-preview-item__content {
  padding: 12px;
}

.dashboard-story-card .story-preview-item__content strong {
  font-size: 0.95rem;
}

.dashboard-banner-item {
  border-radius: 8px;
}

.admin-mobile-nav,
.mobile-section-title {
  display: none;
}

@media (max-width: 1260px) {
  .dashboard-premium-hero,
  .dashboard-content-grid--premium {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid--premium,
  .quick-actions-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-main {
    margin: 10px;
    border-radius: 8px;
  }

  .dashboard-premium-hero {
    padding: 22px;
    border-radius: 8px;
  }

  .dashboard-premium-hero--compact {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .dashboard-premium-hero--compact .dashboard-hero-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .dashboard-store-preview {
    min-height: 250px;
  }

  .dashboard-story-card .story-preview-grid,
  .dashboard-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.admin-body {
    background: #f5f6fa;
  }

  .admin-shell {
    display: block;
    min-height: 100vh;
    padding: 0 0 calc(104px + env(safe-area-inset-bottom));
  }

  .admin-main {
    width: 100%;
    margin: 0;
    padding: 0 0 18px;
    overflow: visible;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 75;
    flex-direction: row;
    align-items: center;
    min-height: 82px;
    padding: 12px 18px;
    border: 1px solid rgba(233, 237, 244, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 25, 35, 0.06);
  }

  .topbar-left,
  .topbar-right {
    width: auto;
    gap: 12px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
  }

  .topbar-right {
    flex-shrink: 0;
    justify-content: flex-end;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    margin: 0;
  }

  .mobile-menu-toggle span + span {
    margin-top: -10px;
  }

  .mobile-menu-toggle span:last-child {
    margin-top: -10px;
  }

  .store-switcher {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid rgba(233, 237, 244, 0.9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 25, 35, 0.05);
  }

  .store-switcher__thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .store-switcher__text {
    min-width: 0;
  }

  .store-switcher__text small {
    display: none;
  }

  .store-switcher__text strong {
    display: block;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .store-switcher__caret {
    margin-left: auto;
    font-size: 0.92rem;
    color: var(--muted);
  }

  .topbar-notification {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
  }

  .topbar-profile {
    display: flex;
    flex-direction: row;
  }

  .topbar-profile__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
    background: #ee3038;
  }

  .topbar-profile__meta,
  .topbar-cta {
    display: none;
  }

  .admin-content {
    padding: 22px 15px 0;
    overflow: hidden;
  }

  .dashboard-premium-hero--compact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    margin: 0 0 16px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-premium-hero--compact .dashboard-kicker {
    display: none;
  }

  .dashboard-premium-hero--compact .dashboard-premium-hero__content {
    padding-right: 136px;
  }

  .dashboard-premium-hero--compact h1 {
    margin: 0;
    font-size: clamp(1.12rem, 5.2vw, 1.42rem);
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .dashboard-premium-hero--compact h1::after {
    content: " \1F44B";
    font-size: 0.72em;
  }

  .dashboard-premium-hero--compact p {
    max-width: 100%;
    margin-top: 4px;
    font-size: 0.68rem;
    line-height: 1.22;
  }

  .dashboard-premium-hero--compact .dashboard-hero-actions {
    margin-top: 0;
    display: grid;
    justify-items: stretch;
    position: static;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .dashboard-premium-hero--compact .dashboard-hero-primary-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
  }

  .dashboard-premium-hero--compact .dashboard-hero-primary-actions .btn-secondary {
    display: none;
  }

  .dashboard-premium-hero--compact .dashboard-hero__cta {
    width: auto;
    min-width: 126px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 0.68rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(198, 4, 16, 0.18);
  }

  .dashboard-premium-hero--compact .dashboard-hero-status-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    align-items: stretch;
  }

  .dashboard-premium-hero--compact .dashboard-hero-status-form {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-premium-hero--compact .dashboard-status-chip {
    display: flex;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 7px;
  }

  .dashboard-status-chip__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
  }

  .dashboard-status-chip__text strong {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .dashboard-stats--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .dashboard-stats--premium .stat-card {
    min-height: 122px;
    padding: 14px;
    border-radius: 8px;
    gap: 5px;
  }

  .dashboard-stats--premium .stat-card::after {
    display: none;
  }

  .dashboard-stats--premium .stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
  }

  .dashboard-stats--premium .stat-card__icon svg {
    width: 19px;
    height: 19px;
  }

  .dashboard-stats--premium .stat-card__label {
    margin-top: auto;
    font-size: 0.82rem;
  }

  .dashboard-stats--premium .stat-card strong {
    font-size: 1.55rem;
  }

  .dashboard-stats--premium .stat-card small {
    color: #16834c;
    font-size: 0.74rem;
  }

  .mobile-section-title {
    display: block;
    margin: 0 0 12px;
    font-size: 1.34rem;
    letter-spacing: -0.045em;
  }

  .dashboard-actions-block--flat {
    margin-bottom: 24px;
  }

  .quick-actions-grid--compact {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .quick-actions-grid--compact::-webkit-scrollbar {
    display: none;
  }

  .quick-actions-grid--compact .quick-action {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 8px 5px;
    display: grid;
    grid-template-rows: 26px auto;
    place-items: center;
    align-content: center;
    justify-items: center;
    row-gap: 6px;
    text-align: center;
    border-radius: 7px;
  }

  .quick-actions-grid--compact .quick-action__icon {
    width: 26px;
    height: 26px;
    background: transparent;
    margin: 0 auto;
  }

  .quick-actions-grid--compact .quick-action__icon svg {
    width: 19px;
    height: 19px;
  }

  .quick-actions-grid--compact .quick-action strong {
    display: block;
    font-size: 0.64rem;
    line-height: 1.18;
    text-align: center;
  }

  .quick-actions-grid--compact .quick-action small {
    display: none;
  }

  .quick-actions-grid--compact .quick-action--categories {
    display: none;
  }

  .dashboard-content-grid--premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-content-grid--premium .panel-card,
  .dashboard-banners-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 25, 35, 0.05);
  }

  .dashboard-content-grid--premium .section-heading--inline,
  .dashboard-banners-block .section-heading--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .dashboard-content-grid--premium .dashboard-list-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-content-grid--premium .dashboard-story-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-content-grid--premium .dashboard-list-card .section-heading--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .dashboard-content-grid--premium .dashboard-story-card .section-heading--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .dashboard-content-grid--premium .dashboard-kicker,
  .dashboard-banners-block .dashboard-kicker {
    display: none;
  }

  .dashboard-content-grid--premium .section-heading h2,
  .dashboard-banners-block .section-heading h2 {
    font-size: 1.28rem;
  }

  .dashboard-content-grid--premium .section-heading--inline a,
  .dashboard-banners-block .section-heading--inline a {
    color: var(--primary);
    font-size: 0.88rem;
  }

  .dashboard-list-card .section-heading--inline a,
  .dashboard-story-card .section-heading--inline a {
    align-self: flex-start;
    order: 2;
  }

  .dashboard-list-card .section-heading--inline a {
    align-self: center;
    order: initial;
    flex-shrink: 0;
  }

  .dashboard-story-card .section-heading--inline a {
    align-self: center;
    order: initial;
    flex-shrink: 0;
  }

  .dashboard-list-card .recent-product-list {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .dashboard-list-card .recent-product-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }

  .dashboard-list-card .recent-product-item:first-child {
    padding-top: 0;
  }

  .dashboard-list-card .recent-product-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .recent-product-item__media {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .recent-product-item__content {
    min-width: 0;
    gap: 2px;
  }

  .recent-product-item__title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .recent-product-item__content strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.76rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .recent-product-item__title-line span {
    flex-shrink: 0;
    max-width: 76px;
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 8px;
    color: #b56b00;
    background: #fff4d8;
    font-size: 0.62rem;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .recent-product-item__content small {
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 900;
  }

  .recent-product-item .status-badge {
    grid-column: auto;
    min-width: 58px;
    padding: 7px 8px;
    font-size: 0.66rem;
  }

  .dashboard-story-card .story-preview-grid {
    max-width: 100%;
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .dashboard-story-card .story-preview-grid::-webkit-scrollbar {
    display: none;
  }

  .dashboard-story-card .story-preview-item {
    flex: 0 0 148px;
    min-height: 206px;
    border-radius: 7px;
    aspect-ratio: 9 / 13;
  }

  .dashboard-story-card .status-badge {
    min-width: 0;
    width: 100%;
    padding: 6px 8px;
    background: rgba(237, 249, 240, 0.95);
  }

  .dashboard-banner-grid {
    grid-template-columns: 1fr;
  }

  .admin-mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 76px;
    padding: 8px;
    border: 1px solid rgba(233, 237, 244, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(23, 25, 35, 0.14);
    backdrop-filter: blur(16px);
  }

  .sidebar {
    z-index: 120;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .sidebar-scroll {
    padding: 0 16px 14px;
  }

  .brand-card {
    margin: 0 -16px;
    min-height: 78px;
    padding: 16px;
    gap: 5px;
  }

  .brand-card__logo {
    width: 148px;
  }

  .brand-card p {
    font-size: 0.72rem;
  }

  .sidebar-nav {
    gap: 5px;
    padding-top: 14px;
  }

  .sidebar-nav a,
  .sidebar-group__toggle,
  .sidebar-group__link,
  .sidebar-footer a {
    min-height: 44px;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 0.86rem;
  }

  .sidebar-group__menu {
    margin-left: 12px;
    padding-left: 10px;
  }

  .nav-icon,
  .nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-footer {
    padding: 12px 16px 14px;
    gap: 5px;
  }

  .admin-mobile-nav a {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px;
    border-radius: 8px;
    color: #565e6f;
    font-size: 0.68rem;
    font-weight: 900;
  }

  .admin-mobile-nav svg {
    width: 22px;
    height: 22px;
  }

  .admin-mobile-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .quick-actions-grid--premium,
  .quick-actions-grid--compact,
  .dashboard-banner-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-hero-actions .btn {
    width: auto;
  }

  .dashboard-premium-hero h1 {
    font-size: clamp(1.12rem, 5.2vw, 1.42rem);
  }

  .dashboard-store-preview__body {
    grid-template-columns: 58px 1fr;
  }

  .dashboard-store-preview__logo {
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }

  .dashboard-story-card .story-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle span + span,
  .mobile-menu-toggle span:last-child {
    margin: 0 auto;
  }

  .dashboard-premium-hero--compact h1 {
    font-size: clamp(1.12rem, 5.2vw, 1.42rem);
  }

  .dashboard-hero-actions {
    display: grid;
  }

  .quick-actions-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-banner-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-story-card .story-preview-grid {
    display: flex;
    grid-template-columns: none;
  }
}

.promotions-list-modern .promotions-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) 70px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
}

.promotions-list-modern .promotions-row > div:first-child {
  display: grid;
}

@media (max-width: 640px) {
  .promotions-list-modern .promotions-table-head,
  .promotions-list-modern .products-row__check {
    display: none;
  }

  .promotions-list-modern .promotions-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 1fr) 34px;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 11px;
  }

  .promotions-list-modern .promotions-row__header {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .promotions-list-modern .promotions-row__type,
  .promotions-list-modern .products-row__price,
  .promotions-list-modern .promotions-row__status,
  .promotions-list-modern .products-row__actions {
    min-width: 0;
  }

  .promotions-list-modern .promotion-type-badge,
  .promotions-list-modern .products-row__price,
  .promotions-list-modern .promotion-toggle,
  .promotions-list-modern .products-row__actions {
    justify-self: stretch;
  }

  .promotions-list-modern .products-row__price,
  .promotions-list-modern .promotion-toggle {
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .promotions-list-modern .products-row__actions {
    justify-self: end;
  }

  .promotions-list-modern .promotion-type-badge {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 7px 5px;
    font-size: 0.6rem;
    line-height: 1;
    white-space: nowrap;
  }

  .promotions-list-modern .products-row__price {
    overflow: hidden;
    padding-inline: 5px;
    font-size: 0.64rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .promotions-list-modern .promotion-toggle {
    gap: 4px;
    padding-inline: 4px;
  }

  .promotions-list-modern .promotion-toggle__track {
    flex: 0 0 auto;
    width: 30px;
    height: 18px;
  }

  .promotions-list-modern .promotion-toggle__track::after {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
  }

  .promotions-list-modern .promotion-toggle.is-on .promotion-toggle__track::after {
    left: 14px;
  }

  .promotions-list-modern .promotion-toggle__label {
    overflow: hidden;
    font-size: 0.58rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .promotions-list-modern .product-actions-menu__trigger {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

@media (max-width: 640px) {
  .banners-table-modern {
    width: 100%;
    min-width: 0;
  }

  .banners-table-modern .banners-table-head {
    display: none;
  }

  .banners-table-modern .banner-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px;
  }

  .banners-table-modern .promotions-row__main {
    display: grid !important;
    grid-column: 1 / 2;
    grid-row: 1;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    align-items: center;
  }

  .banners-table-modern .banner-row > .promotions-row__main:first-child {
    display: grid !important;
  }

  .banners-table-modern .products-row__thumb {
    display: block !important;
    flex-shrink: 0;
    width: 68px;
    height: 46px;
    overflow: hidden;
    border-radius: 7px;
    background: var(--surface-soft);
  }

  .banners-table-modern .products-row__thumb img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .banners-table-modern .products-row__content {
    min-width: 0;
    align-self: center;
  }

  .banners-table-modern .products-row__title strong {
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.18;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .banners-table-modern .products-row__content p {
    display: none;
  }

  .banners-table-modern .promotion-coupon-note {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    font-size: 0.66rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .banners-table-modern .promotions-row__period {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    min-height: 32px;
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--muted-strong);
    background: var(--surface-soft);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .banners-table-modern .promotions-row__type,
  .banners-table-modern .promotions-row__status,
  .banners-table-modern .products-row__actions {
    min-width: 0;
  }

  .banners-table-modern .promotions-row__type {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: end;
    width: min(88px, 36%);
  }

  .banners-table-modern .promotions-row__status {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: auto;
  }

  .banners-table-modern .products-row__actions {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
  }

  .banners-table-modern .promotion-type-badge {
    width: 100%;
    min-height: 32px;
    padding: 6px 7px;
    font-size: 0.62rem;
    line-height: 1;
  }

  .banners-table-modern .promotion-toggle {
    width: auto;
    min-height: 32px;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .banners-table-modern .promotion-toggle__track {
    width: 30px;
    height: 18px;
  }

  .banners-table-modern .promotion-toggle__track::after {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
  }

  .banners-table-modern .promotion-toggle.is-on .promotion-toggle__track::after {
    left: 14px;
  }

  .banners-table-modern .promotion-toggle__label {
    font-size: 0.62rem;
  }

  .banners-table-modern .product-actions-menu {
    display: none;
  }

  .banners-table-modern .banner-row__mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .banners-table-modern .banner-row__mobile-actions a,
  .banners-table-modern .banner-row__mobile-actions button {
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 850;
  }

  .banners-table-modern .banner-row__mobile-actions form {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .page-head > .btn-primary,
  .page-head__actions .btn-primary,
  .store-page-head > .btn-primary,
  .story-page-head > .btn-primary,
  .products-page-head > .btn-primary,
  .promotions-page-head > .btn-primary {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .delivery-regions-table {
    width: 100%;
    min-width: 0;
  }

  .delivery-regions-table__head {
    display: none;
  }

  .delivery-region-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(58px, 0.7fr) auto;
    grid-template-areas:
      "name name status"
      "fee order actions";
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 25, 35, 0.04);
  }

  .delivery-region-row + .delivery-region-row {
    margin-top: 10px;
  }

  .delivery-region-row__main {
    grid-area: name;
    min-width: 0;
    align-self: center;
  }

  .delivery-region-row__main strong {
    display: block;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .delivery-region-row__status {
    grid-area: status;
    display: block !important;
    justify-self: end;
    align-self: center;
  }

  .delivery-region-row__status .status-badge {
    min-width: 62px;
    padding: 7px 10px;
    font-size: 0.65rem;
  }

  .delivery-region-row__fee,
  .delivery-region-row__order {
    display: grid;
    min-width: 0;
    gap: 2px;
    align-self: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface-soft);
  }

  .delivery-region-row__fee {
    grid-area: fee;
    width: 100%;
    justify-self: stretch;
  }

  .delivery-region-row__order {
    grid-area: order;
    width: 100%;
    justify-self: stretch;
  }

  .delivery-region-row__fee small,
  .delivery-region-row__order small {
    display: block;
    font-size: 0.58rem;
    line-height: 1;
  }

  .delivery-region-row__fee strong,
  .delivery-region-row__order strong {
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .delivery-region-row .products-row__actions {
    grid-area: actions;
    justify-self: end;
    align-self: center;
  }

  .delivery-region-row .product-actions-menu {
    display: none;
  }

  .delivery-region-row__mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .delivery-region-row__mobile-actions a,
  .delivery-region-row__mobile-actions button {
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 850;
  }

  .delivery-region-row__mobile-actions form {
    margin: 0;
  }

  .delivery-region-modal {
    padding: 14px;
  }

  .delivery-region-modal__card {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    border-radius: 8px;
  }
}

.reports-summary-grid--main.dashboard-stats--premium {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .reports-summary-grid--main.dashboard-stats--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reports-saas {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.reports-saas > * {
  min-width: 0;
}

.reports-hero,
.reports-filter-modern,
.reports-chart-card,
.reports-table-card,
.reports-categories-card,
.reports-insights-card,
.reports-closures-card {
  border-radius: 8px;
}

.reports-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px 16px;
}

.reports-hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.reports-hero__identity h1 {
  font-size: clamp(1.95rem, 2.35vw, 3.05rem);
  line-height: 1.02;
}

.reports-hero__identity p {
  margin-top: 8px;
  max-width: 720px;
  font-size: 1rem;
}

.reports-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(217, 28, 28, 0.12), rgba(217, 28, 28, 0.04));
  box-shadow: inset 0 0 0 1px rgba(217, 28, 28, 0.08);
}

.reports-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.reports-action-btn {
  min-height: 48px;
  padding-inline: 20px;
  box-shadow: none;
  border: 1px solid rgba(231, 235, 243, 0.96);
  background: #fff;
  color: var(--text);
}

.reports-action-btn.is-disabled {
  opacity: 1;
}

.reports-inline-notice {
  padding: 18px 20px;
}

.reports-filter-modern {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.reports-filter-modern__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  text-align: left;
}

.reports-filter-modern__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.reports-filter-modern__body {
  display: grid;
  gap: 14px;
}

.reports-filter-modern__grid,
.reports-filter-modern__dates {
  display: grid;
  gap: 14px;
}

.reports-filter-modern__grid {
  grid-template-columns: minmax(180px, 1.08fr) minmax(180px, 1.08fr) minmax(170px, 1fr) minmax(160px, 0.95fr) minmax(160px, 0.95fr) minmax(190px, 0.8fr);
  align-items: end;
}

.reports-filter-modern__dates {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.reports-filter-modern label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.reports-filter-modern select,
.reports-filter-modern input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  color: #1e2430;
  box-shadow: inset 0 1px 2px rgba(20, 25, 38, 0.02);
}

.reports-filter-modern__submit {
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

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

.reports-kpi-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 18px 18px 26px;
  position: relative;
}

.reports-kpi-card__icon,
.reports-mini-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.reports-kpi-card__icon svg,
.reports-mini-card__icon svg {
  width: 28px;
  height: 28px;
}

.reports-kpi-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.reports-kpi-card strong {
  display: block;
  font-size: clamp(1.55rem, 1.9vw, 2.18rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.reports-kpi-card small,
.reports-mini-card small {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.reports-kpi-card small {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: block;
  margin-top: 0;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reports-kpi-card small.is-up,
.reports-mini-card small.is-up {
  color: #129a56;
}

.reports-kpi-card small.is-down,
.reports-mini-card small.is-down {
  color: #e03b32;
}

.reports-kpi-card small.is-neutral,
.reports-mini-card small.is-neutral {
  color: var(--muted);
}

.reports-kpi-card--rose .reports-kpi-card__icon,
.reports-mini-card--red .reports-mini-card__icon {
  color: #ef4444;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.04));
}

.reports-kpi-card--mint .reports-kpi-card__icon {
  color: #22c55e;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.04));
}

.reports-kpi-card--amber .reports-kpi-card__icon {
  color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
}

.reports-kpi-card--violet .reports-kpi-card__icon {
  color: #9333ea;
  background: linear-gradient(180deg, rgba(147, 51, 234, 0.14), rgba(147, 51, 234, 0.04));
}

.reports-mini-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.reports-mini-card {
  min-height: 86px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  position: relative;
}

.reports-mini-card--red {
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
}

.reports-mini-card--red .reports-mini-card__body {
  align-self: center;
}

.reports-mini-card--red .reports-mini-card__icon {
  grid-row: 1 / 3;
}

.reports-mini-card__icon {
  width: 44px;
  height: 44px;
}

.reports-mini-card__icon svg {
  width: 20px;
  height: 20px;
}

.reports-mini-card__body span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  min-width: 0;
}

.reports-mini-card__body strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  line-height: 1.15;
}

.reports-mini-card__meta {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: stretch;
  text-align: center;
  padding-top: 4px;
}

.reports-mini-card__meta small {
  margin-top: 0;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: normal;
  justify-content: center;
}

.reports-mini-card__meta.is-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  grid-column: auto;
  padding-top: 0;
  text-align: right;
}

.reports-mini-card__meta.is-badge small {
  font-size: 0.76rem;
  font-weight: 700;
  color: #7b8396;
  white-space: nowrap;
  justify-content: flex-end;
}

.reports-mini-card__meta.is-comparison {
  position: static;
  align-self: center;
  padding-top: 6px;
}

.reports-mini-card--teal .reports-mini-card__icon {
  color: #0ea5a8;
  background: rgba(14, 165, 168, 0.1);
}

.reports-mini-card--blue .reports-mini-card__icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.reports-mini-card--violet .reports-mini-card__icon {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.reports-mini-card--green .reports-mini-card__icon {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.reports-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(360px, 1fr);
  gap: 12px;
}

.reports-secondary-grid,
.reports-ranking-grid,
.reports-bottom-grid,
.reports-detail-grid {
  display: grid;
  gap: 12px;
}

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

.reports-bottom-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 2.18fr);
}

.reports-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  opacity: 0.9;
}

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

.reports-card-head h2 {
  font-size: 1.02rem;
}

.reports-card-head p {
  margin-top: 3px;
  font-size: 0.87rem;
}

.reports-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7f6;
  color: #6b7280;
  border: 1px solid rgba(217, 28, 28, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.reports-chart-card,
.reports-table-card,
.reports-categories-card,
.reports-insights-card,
.reports-closures-card,
.reports-detail-grid .panel-card {
  padding: 16px 18px;
}

.reports-line-chart {
  display: grid;
  gap: 8px;
}

.reports-line-chart__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.reports-line-chart__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.reports-line-chart svg {
  width: 100%;
  height: auto;
  min-height: 224px;
  overflow: visible;
}

.reports-line-chart__grid {
  stroke: #e8ecf4;
  stroke-dasharray: 4 6;
}

.reports-line-chart__area {
  fill: url(#reportsRevenueArea);
  stroke: none;
}

.reports-line-chart__line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reports-line-chart__dot {
  fill: #fff;
  stroke: #ef4444;
  stroke-width: 2.4;
}

.reports-line-chart__hitbox {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.reports-line-chart__dot.is-peak {
  fill: #ef4444;
}

.reports-line-chart__hover-label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.reports-line-chart__point-group:hover .reports-line-chart__hover-label {
  opacity: 1;
  visibility: visible;
}

.reports-line-chart__hover-label rect,
.reports-line-chart__peak-label rect {
  fill: #ffffff;
  stroke: rgba(217, 28, 28, 0.22);
  stroke-width: 1;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.08));
}

.reports-line-chart__hover-label text,
.reports-line-chart__peak-label text {
  fill: #d91c1c;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: -0.02em;
  stroke: none;
  paint-order: fill;
  text-rendering: geometricPrecision;
}

.reports-line-chart__axis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.reports-line-chart__axis span {
  display: block;
  white-space: nowrap;
}

.reports-line-chart__axis.is-dense {
  font-size: 0.64rem;
  gap: 0;
}

.reports-line-chart__axis.is-ultra-dense {
  font-size: 0.58rem;
  gap: 0;
}

.reports-donut {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 16px;
  align-items: center;
}

.reports-donut__chart {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.reports-donut__center {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(231, 235, 243, 0.9);
  padding: 8px;
}

.reports-donut__center strong {
  font-size: 1.18rem;
  line-height: 1.05;
  display: block;
  margin: 0;
}

.reports-donut__center span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
  margin-top: 8px;
  line-height: 1;
}

.reports-donut__legend {
  display: grid;
  gap: 10px;
}

.reports-donut__legend article {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.reports-donut__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.reports-donut__legend strong,
.reports-donut__legend span {
  font-size: 0.84rem;
}

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

.reports-donut__legend em {
  color: var(--muted-strong);
  font-style: normal;
  font-weight: 800;
  font-size: 0.84rem;
}

.reports-hourly-chart {
  min-height: 204px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
}

.reports-hourly-chart__item {
  min-height: 204px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.reports-hourly-chart__bar {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ef4444 0%, #d91c1c 100%);
}

.reports-hourly-chart__item small {
  color: var(--muted);
  font-size: 0.67rem;
  text-align: center;
  font-weight: 700;
}

.reports-weekday-chart {
  display: grid;
  gap: 10px;
}

.reports-weekday-chart__row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.reports-weekday-chart__row span {
  color: var(--muted-strong);
  font-weight: 800;
}

.reports-weekday-chart__track,
.reports-categories-list__track {
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.reports-weekday-chart__track {
  height: 10px;
}

.reports-weekday-chart__fill,
.reports-categories-list__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d91c1c, #ff5a5a);
}

.reports-weekday-chart__row strong {
  font-size: 0.9rem;
}

.reports-table-shell {
  overflow-x: auto;
}

.reports-table-modern {
  width: 100%;
  border-collapse: collapse;
}

.reports-table-modern th,
.reports-table-modern td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(231, 235, 243, 0.92);
  text-align: left;
  white-space: nowrap;
}

.reports-table-modern th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.reports-table-modern td {
  font-weight: 700;
  font-size: 0.88rem;
}

.reports-table-modern__empty {
  color: var(--muted);
  text-align: center;
  white-space: normal;
}

.reports-table-modern__action {
  text-align: right;
}

.reports-table-modern__action a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--muted-strong);
  background: #f7f8fc;
}

.reports-card-footer {
  margin-top: 12px;
  text-align: center;
}

.reports-card-footer a {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.reports-categories-list {
  display: grid;
  gap: 14px;
}

.reports-categories-list article {
  display: grid;
  gap: 8px;
}

.reports-categories-list__head,
.reports-categories-list__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reports-categories-list__head strong {
  font-size: 0.96rem;
}

.reports-categories-list__meta span {
  color: var(--muted-strong);
  font-weight: 700;
}

.reports-categories-list__track {
  height: 6px;
}

.reports-insights-card {
  background:
    linear-gradient(180deg, rgba(255, 244, 244, 0.96), rgba(255, 250, 250, 0.96)),
    #fff;
  border-color: rgba(243, 206, 206, 0.9);
}

.reports-insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.reports-insights-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.93rem;
}

.reports-insights-list__bullet {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(217, 28, 28, 0.12);
}

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

.reports-orders-list article {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(231, 235, 243, 0.92);
  background: #fbfcff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.reports-orders-list strong {
  display: block;
}

.reports-orders-list span,
.reports-orders-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.84rem;
}

.reports-orders-list em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  font-size: 0.94rem;
}

.reports-orders-list--muted em {
  color: #667085;
}

.reports-empty-state {
  min-height: 160px;
  border: 1px dashed rgba(217, 28, 28, 0.16);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 250, 250, 0.96), rgba(255, 255, 255, 0.96));
}

@media (min-width: 1181px) {
  .reports-saas {
    gap: 12px;
  }

  .reports-hero,
  .reports-filter-modern,
  .reports-chart-card,
  .reports-table-card,
  .reports-categories-card,
  .reports-insights-card,
  .reports-closures-card,
  .reports-detail-grid .panel-card,
  .reports-mini-card,
  .reports-kpi-card {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  }

  .reports-chart-card--line,
  .reports-chart-card--donut {
    min-height: 356px;
  }

  .reports-bars-card,
  .reports-weekday-card,
  .reports-table-card,
  .reports-categories-card {
    min-height: 254px;
  }

  .reports-insights-card,
  .reports-closures-card {
    min-height: 226px;
  }
}

@media print {
  .reports-hero__actions,
  .reports-filter-modern,
  .reports-inline-notice {
    display: none !important;
  }

  .reports-analytics-grid,
  .reports-secondary-grid,
  .reports-ranking-grid,
  .reports-bottom-grid,
  .reports-detail-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .reports-line-chart__axis {
    gap: 4px;
  }
}

@media (max-width: 1280px) {
  .reports-filter-modern__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-filter-modern__submit {
    grid-column: 1 / -1;
  }

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

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

  .reports-bottom-grid,
  .reports-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .reports-analytics-grid,
  .reports-secondary-grid,
  .reports-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
  }

  .reports-hero__identity {
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
  }

  .reports-hero__identity h1 {
    font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  }

  .reports-hero__identity p {
    margin-top: 6px;
    font-size: 0.92rem;
  }

  .reports-hero__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .reports-hero__actions .btn {
    flex: 0 0 auto;
  }

  .reports-filter-modern__grid,
  .reports-filter-modern__dates,
  .reports-kpis,
  .reports-mini-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-filter-modern__submit {
    grid-column: 1 / -1;
  }

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

  .reports-bottom-grid,
  .reports-detail-grid {
    grid-template-columns: 1fr;
  }

  .reports-donut {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .reports-hero {
    flex-wrap: wrap;
    padding: 14px 14px 12px;
    gap: 12px;
  }

  .reports-hero__identity {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .reports-hero__identity h1 {
    font-size: 1.7rem;
    line-height: 1.05;
  }

  .reports-hero__identity p {
    margin-top: 4px;
    font-size: 0.82rem;
  }

  .reports-hero__icon {
    width: 42px;
    height: 42px;
  }

  .reports-hero__icon svg {
    width: 22px;
    height: 22px;
  }

  .reports-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 6px;
    margin-left: auto;
  }

  .reports-action-btn,
  .reports-print-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .reports-action-btn span,
  .reports-print-button span {
    display: none;
  }

  .reports-action-btn svg,
  .reports-print-button svg {
    margin: 0;
  }

  .reports-filter-modern {
    padding: 12px;
    gap: 10px;
  }

  .reports-filter-modern__toggle {
    display: flex;
    min-height: 22px;
    font-size: 0.92rem;
  }

  .reports-filter-modern.is-open .reports-filter-modern__toggle svg {
    transform: rotate(180deg);
  }

  .reports-filter-modern__body {
    display: none;
  }

  .reports-filter-modern.is-open .reports-filter-modern__body {
    display: grid;
  }

  .reports-filter-modern__grid,
  .reports-filter-modern__dates,
  .reports-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reports-mini-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .reports-filter-modern label {
    gap: 6px;
    font-size: 0.74rem;
  }

  .reports-filter-modern select,
  .reports-filter-modern input {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .reports-analytics-grid,
  .reports-secondary-grid,
  .reports-ranking-grid,
  .reports-bottom-grid,
  .reports-detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reports-kpi-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px 14px 22px;
    gap: 10px;
  }

  .reports-kpi-card__icon {
    width: 52px;
    height: 52px;
  }

  .reports-kpi-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .reports-kpi-card__label {
    margin-bottom: 6px;
    font-size: 0.82rem;
  }

  .reports-kpi-card strong {
    font-size: 1.16rem;
    margin-bottom: 6px;
  }

  .reports-kpi-card small {
    left: 14px;
    right: 14px;
    bottom: 8px;
    font-size: 0.68rem;
  }

  .reports-mini-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 10px 11px;
    gap: 8px;
  }

  .reports-mini-card__meta.is-badge {
    top: 10px;
    right: 10px;
  }

  .reports-chart-card,
  .reports-table-card,
  .reports-categories-card,
  .reports-insights-card,
  .reports-closures-card,
  .reports-detail-grid .panel-card {
    padding: 13px 12px;
  }

  .reports-card-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
  }

  .reports-card-head h2 {
    font-size: 0.96rem;
  }

  .reports-card-head p {
    font-size: 0.8rem;
  }

  .reports-line-chart__axis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    font-size: 0.66rem;
    margin-top: -2px;
  }

  .reports-line-chart__axis.is-dense {
    font-size: 0.56rem;
  }

  .reports-line-chart__axis.is-ultra-dense {
    font-size: 0.5rem;
  }

  .reports-donut {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reports-donut__chart {
    width: 148px;
    height: 148px;
  }

  .reports-donut__center {
    width: 92px;
    height: 92px;
    padding: 6px;
  }

  .reports-donut__center strong {
    font-size: 1rem;
  }

  .reports-donut__center span {
    margin-top: 6px;
    font-size: 0.74rem;
  }

  .reports-donut__legend article {
    grid-template-columns: 14px 1fr auto auto;
    gap: 6px;
  }

  .reports-donut__legend strong,
  .reports-donut__legend span,
  .reports-donut__legend em {
    font-size: 0.78rem;
  }

  .reports-table-card .reports-table-modern,
  .reports-closures-card .reports-table-modern {
    min-width: 500px;
  }

  .reports-table-modern th,
  .reports-table-modern td {
    padding: 9px 8px;
  }

  .reports-table-modern th {
    font-size: 0.68rem;
  }

  .reports-table-modern td {
    font-size: 0.8rem;
  }

  .reports-categories-list {
    gap: 12px;
  }

  .reports-categories-list article {
    gap: 6px;
  }

  .reports-categories-list__head strong,
  .reports-categories-list__meta span {
    font-size: 0.86rem;
  }

  .reports-categories-list__head,
  .reports-categories-list__meta {
    gap: 8px;
  }

  .reports-insights-list li {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    font-size: 0.84rem;
  }

  .reports-insights-list__bullet {
    width: 32px;
    height: 32px;
  }

  .reports-orders-list article {
    padding: 10px 12px;
    gap: 8px;
  }

  .reports-orders-list strong {
    font-size: 0.9rem;
  }

  .reports-orders-list span,
  .reports-orders-list small,
  .reports-orders-list em {
    font-size: 0.8rem;
  }

  .reports-orders-list article {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .reports-hero {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .reports-hero__identity h1 {
    font-size: 1.48rem;
    line-height: 1.06;
  }

  .reports-hero__identity p {
    font-size: 0.78rem;
  }

  .reports-hero__actions {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-left: 0;
  }

  .reports-filter-modern__toggle {
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .reports-filter-modern__toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .reports-filter-modern__grid,
  .reports-filter-modern__dates,
  .reports-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .reports-line-chart__axis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    font-size: 0.52rem;
    margin-top: -28px;
  }

  .reports-line-chart__axis.is-dense {
    font-size: 0.44rem;
  }

  .reports-line-chart__axis.is-ultra-dense {
    font-size: 0.4rem;
  }

  .reports-line-chart__axis span[data-short] {
    font-size: 0;
  }

  .reports-line-chart__axis span[data-short]::after {
    content: attr(data-short);
    font-size: 0.52rem;
  }

  .reports-line-chart__axis.is-dense span[data-short]::after {
    font-size: 0.44rem;
  }

  .reports-line-chart__axis.is-ultra-dense span[data-short]::after {
    font-size: 0.4rem;
  }

  .reports-line-chart svg {
    min-height: 212px;
  }

  .reports-mini-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .reports-mini-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 7px 7px 8px;
    min-height: 66px;
    gap: 6px;
    align-items: start;
  }

  .reports-mini-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .reports-mini-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .reports-kpi-card {
    min-height: 92px;
    padding: 13px 12px 22px;
  }

  .reports-kpi-card__label {
    font-size: 0.76rem;
  }

  .reports-kpi-card strong {
    font-size: 1.04rem;
  }

  .reports-kpi-card small {
    font-size: 0.64rem;
  }

  .reports-mini-card__body strong {
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.12;
    word-break: break-word;
  }

  .reports-mini-card__body span {
    font-size: 0.58rem;
    line-height: 1.05;
  }

  .reports-mini-card__meta.is-badge small,
  .reports-mini-card__meta small {
    font-size: 0.58rem;
    line-height: 1.08;
  }

  .reports-mini-card--payment .reports-mini-card__meta.is-badge {
    display: none;
  }

  .reports-mini-card__meta.is-badge {
    top: 8px;
    right: 8px;
  }

  .reports-mini-card__meta.is-badge small {
    font-size: 0.54rem;
  }

  .reports-mini-card__meta.is-comparison {
    padding-top: 4px;
  }

  .reports-mini-card--red {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .reports-mini-card--red .reports-mini-card__icon {
    grid-row: 1 / 3;
  }

  .reports-kpi-card {
    min-height: 88px;
    padding: 12px 11px 18px;
    gap: 9px;
  }

  .reports-kpi-card__icon {
    width: 48px;
    height: 48px;
  }

  .reports-kpi-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .reports-kpi-card__label {
    font-size: 0.74rem;
  }

  .reports-kpi-card strong {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }

  .reports-kpi-card small {
    left: 11px;
    right: 11px;
    bottom: 6px;
    font-size: 0.6rem;
  }

  .reports-table-card,
  .reports-categories-card,
  .reports-insights-card,
  .reports-closures-card {
    overflow: hidden;
  }

  .reports-table-card .reports-table-modern {
    min-width: 0;
    table-layout: fixed;
  }

  .reports-table-card .reports-table-modern th,
  .reports-table-card .reports-table-modern td {
    padding: 8px 6px;
    font-size: 0.72rem;
  }

  .reports-table-card .reports-table-modern th:nth-child(5),
  .reports-table-card .reports-table-modern td:nth-child(5) {
    display: none;
  }

  .reports-table-card .reports-table-modern th:nth-child(2),
  .reports-table-card .reports-table-modern td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
  }

  .reports-table-card .reports-table-modern th:nth-child(1),
  .reports-table-card .reports-table-modern td:nth-child(1) {
    width: 24px;
  }

  .reports-table-card .reports-table-modern th:nth-child(3),
  .reports-table-card .reports-table-modern td:nth-child(3) {
    width: 42px;
  }

  .reports-table-card .reports-table-modern th:nth-child(4),
  .reports-table-card .reports-table-modern td:nth-child(4) {
    width: 88px;
  }

  .reports-categories-list {
    gap: 10px;
  }

  .reports-categories-list__head strong,
  .reports-categories-list__head span,
  .reports-categories-list__meta span {
    font-size: 0.8rem;
  }

  .reports-categories-list__track {
    height: 5px;
  }

  .reports-insights-list {
    gap: 10px;
  }

  .reports-insights-list li {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .reports-insights-list__bullet {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .reports-insights-list__bullet svg {
    width: 16px;
    height: 16px;
  }

  .reports-closures-card .reports-table-shell {
    overflow: hidden;
  }

  .reports-closures-card .reports-table-modern {
    min-width: 0;
    table-layout: fixed;
  }

  .reports-closures-card .reports-table-modern th,
  .reports-closures-card .reports-table-modern td {
    padding: 8px 5px;
    font-size: 0.7rem;
  }

  .reports-closures-card .reports-table-modern th:nth-child(2),
  .reports-closures-card .reports-table-modern td:nth-child(2),
  .reports-closures-card .reports-table-modern th:nth-child(3),
  .reports-closures-card .reports-table-modern td:nth-child(3),
  .reports-closures-card .reports-table-modern th:nth-child(6),
  .reports-closures-card .reports-table-modern td:nth-child(6),
  .reports-closures-card .reports-table-modern th:nth-child(8),
  .reports-closures-card .reports-table-modern td:nth-child(8) {
    display: none;
  }

  .reports-closures-card .reports-table-modern th:nth-child(1),
  .reports-closures-card .reports-table-modern td:nth-child(1) {
    width: 74px;
  }

  .reports-closures-card .reports-table-modern th:nth-child(4),
  .reports-closures-card .reports-table-modern td:nth-child(4) {
    width: 42px;
  }

  .reports-closures-card .reports-table-modern th:nth-child(5),
  .reports-closures-card .reports-table-modern td:nth-child(5) {
    width: 76px;
  }

  .reports-closures-card .reports-table-modern th:nth-child(7),
  .reports-closures-card .reports-table-modern td:nth-child(7) {
    width: 88px;
  }

  .reports-donut {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .reports-donut__chart {
    width: 112px;
    height: 112px;
  }

  .reports-donut__center {
    width: 68px;
    height: 68px;
    padding: 4px;
  }

  .reports-donut__center strong {
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .reports-donut__center span {
    margin-top: 4px;
    font-size: 0.56rem;
  }

  .reports-donut__legend {
    gap: 8px;
  }

  .reports-donut__legend article {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 5px;
  }

  .reports-donut__swatch {
    width: 8px;
    height: 8px;
  }

  .reports-donut__legend strong,
  .reports-donut__legend span,
  .reports-donut__legend em {
    font-size: 0.66rem;
  }

  .reports-donut__legend em {
    grid-column: 2 / -1;
    margin-top: -2px;
  }
}

/* Products list loose view test */
.products-list-panel {
  padding: 18px;
  border: 1px solid rgba(231, 235, 243, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.products-list-panel .products-table-modern {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.products-list-panel .products-table-body {
  display: grid;
  gap: 0;
}

.products-list-panel .products-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  align-items: center;
}

.products-list-panel .products-row:hover {
  background: #fbfcff;
}

.products-list-panel .products-row__main {
  grid-template-columns: 56px minmax(0, 1fr);
  min-width: 0;
}

.products-list-panel .products-row__thumb {
  width: 56px;
  height: 56px;
}

.products-list-panel .products-row__content,
.products-list-panel .products-row__title {
  min-width: 0;
}

.products-list-panel .products-row__title {
  flex-wrap: nowrap;
}

.products-list-panel .products-row__title strong {
  overflow: hidden;
  font-size: 0.96rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.products-list-panel .product-category-tag {
  padding: 6px 9px;
  font-size: 0.74rem;
}

.products-list-panel .products-row__price-line {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.products-list-panel .products-row__right {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.product-status-toggle {
  margin: 0;
}

.product-status-toggle__button {
  min-width: 84px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.product-status-toggle__button span {
  position: relative;
  width: 26px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.product-status-toggle__button span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.18s ease;
}

.product-status-toggle__button strong {
  font-size: 0.76rem;
}

.product-status-toggle__button.is-active {
  background: #e9f8ee;
  color: #1f8f52;
}

.product-status-toggle__button.is-active span::after {
  transform: translateX(10px);
}

.product-status-toggle__button.is-inactive {
  background: #fff0f1;
  color: #d92d20;
}

.products-list-panel .product-actions-menu__trigger {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
}

@media (max-width: 640px) {
  .products-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .products-toolbar__search {
    grid-column: 1 / -1;
  }

  .products-toolbar select {
    min-width: 0;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .products-list-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .products-list-panel .products-table-modern {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .products-list-panel .products-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 0;
    background: transparent;
  }

  .products-list-panel .products-row__main {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .products-list-panel .products-row__thumb {
    width: 46px;
    height: 46px;
  }

  .products-list-panel .products-row__title {
    gap: 6px;
  }

  .products-list-panel .products-row__title strong {
    font-size: 0.8rem;
  }

  .products-list-panel .product-category-tag {
    padding: 5px 7px;
    font-size: 0.6rem;
  }

  .products-list-panel .products-row__price-line {
    font-size: 0.82rem;
  }

  .products-list-panel .products-row__right {
    width: auto;
    min-width: 0;
    align-self: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .products-list-panel .product-status-toggle__button {
    min-width: 70px;
    height: 30px;
    gap: 5px;
    padding: 0 7px;
  }

  .products-list-panel .product-status-toggle__button span {
    width: 24px;
    height: 14px;
  }

  .products-list-panel .product-status-toggle__button span::after {
    top: 2px;
    left: 2px;
  }

  .products-list-panel .product-status-toggle__button.is-active span::after {
    transform: translateX(10px);
  }

  .products-list-panel .product-status-toggle__button strong {
    font-size: 0.62rem;
  }

  .products-list-panel .product-actions-menu__trigger {
    width: 30px;
    height: 30px;
  }
}

/* Summary cards icon alignment test */
.stats-grid .stat-card {
  padding-right: 86px;
}

.stats-grid .stat-card__icon {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 1;
}

.stats-grid .stat-card::after {
  display: none;
}

.stats-grid .stat-card > :not(.stat-card__icon) {
  position: relative;
  z-index: 2;
}

.guided-tour-active {
  overflow: hidden;
}

.guided-tour-overlay,
.guided-tour-highlight,
.guided-tour-card {
  position: fixed;
  pointer-events: none;
}

.guided-tour-overlay {
  inset: 0;
  z-index: 900;
  background: transparent;
}

.guided-tour-highlight {
  z-index: 901;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(14, 17, 25, 0.68),
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 18px 46px rgba(217, 28, 28, 0.24);
  transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.guided-tour-card {
  z-index: 902;
  width: min(360px, calc(100vw - 28px));
  padding: 20px;
  border: 1px solid rgba(231, 235, 243, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(20, 25, 38, 0.22);
  pointer-events: auto;
}

.guided-tour-card__skip {
  float: right;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.guided-tour-card__skip:hover {
  color: var(--primary);
}

.guided-tour-card__step {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guided-tour-card h2 {
  clear: both;
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.guided-tour-card p {
  margin: 9px 0 18px;
  color: var(--muted-strong);
  line-height: 1.45;
}

.guided-tour-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.guided-tour-card__actions .btn {
  min-height: 42px;
  padding: 10px 14px;
}

.guided-tour-card__actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

@media (max-width: 640px) {
  .operation-top-actions {
    display: none;
  }

  .operation-summary-grid.dashboard-stats--premium .stat-card {
    min-height: 122px;
    padding: 14px;
    gap: 5px;
  }

  .operation-summary-grid.dashboard-stats--premium .stat-card strong {
    display: block;
    font-size: 1.55rem;
  }

  .operation-summary-grid.dashboard-stats--premium .stat-card small {
    color: #16834c;
    font-size: 0.74rem;
  }

  .operation-summary-grid.dashboard-stats--premium .stat-card__icon {
    width: 36px;
    height: 36px;
    right: 14px;
  }

  .operation-summary-grid.dashboard-stats--premium .stat-card__icon svg {
    width: 19px;
    height: 19px;
  }

  .stats-grid .stat-card {
    padding-right: 60px;
  }

  .stats-grid .stat-card__icon {
    right: 14px;
  }

  .stats-grid .stat-card::after {
    display: none;
  }

  .store-switcher-dropdown {
    width: min(320px, calc(100vw - 30px));
  }

  .guided-tour-card {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px !important;
    top: auto !important;
    width: auto;
    padding: 14px;
    max-height: min(46vh, 320px);
    overflow-y: auto;
  }

  .guided-tour-card__skip {
    font-size: 0.76rem;
  }

  .guided-tour-card__step {
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .guided-tour-card h2 {
    font-size: 1rem;
  }

  .guided-tour-card p {
    margin: 8px 0 14px;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .guided-tour-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .guided-tour-card__actions .btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 800;
  }
}
.cashback-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.75rem;
}

.cashback-day-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.cashback-target-panel {
  display: none;
}

.cashback-target-panel.is-visible {
  display: block;
}
.store-suspended-shell,
.auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.store-suspended-card,
.auth-card {
    width: min(100%, 540px);
    background: rgba(12, 18, 27, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.platform-admin-body .sidebar-nav a {
    justify-content: center;
}

.platform-record-card {
    margin-bottom: 18px;
}

.platform-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

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

.platform-inline-actions,
.platform-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Platform workspace theme */
.platform-workspace-body {
  background:
    radial-gradient(circle at top right, rgba(18, 232, 167, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(53, 124, 255, 0.1), transparent 20%),
    linear-gradient(180deg, #0a1017 0%, #0f1723 100%);
  color: #eaf2ff;
}

.platform-workspace-body .admin-shell {
  display: block;
}

.platform-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: rgba(4, 9, 16, 0.72);
}

.platform-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(8, 14, 23, 0.98) 0%, rgba(9, 15, 24, 0.94) 100%);
  border-right: 1px solid rgba(124, 147, 180, 0.14);
  display: flex;
  flex-direction: column;
}

.platform-sidebar__header {
  padding: 6px 0 20px;
  border-bottom: 1px solid rgba(124, 147, 180, 0.12);
}

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

.platform-brand__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.platform-brand__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.platform-brand__text {
  display: grid;
  gap: 3px;
}

.platform-brand__text strong {
  color: #ffffff;
  font-size: 1.02rem;
}

.platform-brand__text small {
  color: #34d399;
  font-weight: 700;
}

.platform-sidebar__nav {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.platform-nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #c2cddd;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.platform-nav-link:hover {
  color: #ffffff;
  background: rgba(22, 32, 48, 0.78);
  border-color: rgba(78, 96, 121, 0.32);
}

.platform-nav-link.is-active {
  color: #f8fffb;
  background: linear-gradient(135deg, rgba(14, 104, 71, 0.94), rgba(21, 135, 93, 0.88));
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(17, 119, 84, 0.26);
}

.platform-nav-link__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.platform-nav-link__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.platform-sidebar__footer {
  margin-top: auto;
  padding: 18px 14px 4px;
  border: 1px solid rgba(87, 104, 131, 0.16);
  border-radius: 18px;
  background: rgba(14, 21, 32, 0.86);
  display: grid;
  gap: 10px;
}

.platform-sidebar__footer small {
  color: #2fd294;
  font-weight: 700;
}

.platform-sidebar__footer strong {
  display: block;
  color: #eef5ff;
  font-size: 0.98rem;
}

.platform-sidebar__footer span {
  display: block;
  color: #96a5bc;
  font-size: 0.84rem;
  line-height: 1.4;
}

.platform-sidebar__footer a {
  color: #34d399;
  font-weight: 700;
}

.platform-main {
  min-width: 0;
  padding: 14px 18px 22px 0;
}

.platform-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid rgba(84, 100, 126, 0.16);
  border-radius: 0 0 0 0;
  background: rgba(12, 18, 28, 0.78);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.platform-search {
  flex: 1;
  max-width: 720px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(86, 104, 130, 0.2);
  border-radius: 14px;
  background: rgba(13, 20, 32, 0.96);
}

.platform-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f4f8ff;
}

.platform-search input::placeholder {
  color: #7f8ea5;
}

.platform-search input:focus {
  outline: none;
}

.platform-search__icon {
  color: #8da0bc;
}

.platform-search__shortcut {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 42, 61, 0.95);
  color: #9fb0c9;
  font-size: 0.76rem;
  font-weight: 700;
}

.platform-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 104, 130, 0.18);
  border-radius: 14px;
  background: rgba(12, 20, 31, 0.96);
  color: #cbd7e8;
}

.platform-icon-button__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #14b87a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.platform-user-chip {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(86, 104, 130, 0.18);
  border-radius: 16px;
  background: rgba(12, 20, 31, 0.96);
}

.platform-user-chip__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0bb77a, #1f9d7a);
  color: #fff;
  font-weight: 900;
}

.platform-user-chip__content {
  display: grid;
  gap: 2px;
}

.platform-user-chip__content strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.platform-user-chip__content span {
  color: #91a3bd;
  font-size: 0.84rem;
}

.platform-user-chip__caret {
  margin-left: auto;
  color: #93a6bf;
  display: inline-grid;
  place-items: center;
}

.platform-user-chip__caret svg {
  width: 16px;
  height: 16px;
}

.platform-quick-button-wrap {
  position: relative;
}

.platform-quick-button {
  min-width: 168px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0fbd80, #19a36f);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.platform-quick-button-wrap:hover .platform-quick-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.platform-quick-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(86, 104, 130, 0.24);
  border-radius: 16px;
  background: rgba(13, 20, 32, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
  z-index: 12;
}

.platform-quick-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d4def0;
}

.platform-quick-menu a:hover {
  background: rgba(32, 46, 67, 0.9);
  color: #fff;
}

.platform-content {
  padding: 18px 22px 24px;
}

.platform-alert {
  margin: 14px 22px 0;
}

.platform-page-head {
  margin-bottom: 18px;
}

.platform-page-head h1 {
  margin: 0 0 4px;
  color: #f8fbff;
  font-size: 2.15rem;
  letter-spacing: -0.04em;
}

.platform-page-head p {
  margin: 0;
  color: #97a7bf;
  font-size: 1rem;
}

.platform-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.platform-kpi-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(92, 108, 132, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 24, 37, 0.98) 0%, rgba(14, 22, 34, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.platform-kpi-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
}

.platform-kpi-card__icon svg {
  width: 28px;
  height: 28px;
}

.platform-kpi-card--green .platform-kpi-card__icon { background: linear-gradient(135deg, #1fda8f, #15a76d); }
.platform-kpi-card--cyan .platform-kpi-card__icon { background: linear-gradient(135deg, #2ed6d7, #1488a8); }
.platform-kpi-card--violet .platform-kpi-card__icon { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.platform-kpi-card--amber .platform-kpi-card__icon { background: linear-gradient(135deg, #ffcc3d, #d88900); }
.platform-kpi-card--blue .platform-kpi-card__icon { background: linear-gradient(135deg, #3fa4ff, #1b74db); }

.platform-kpi-card__body {
  display: grid;
  gap: 4px;
}

.platform-kpi-card__body span {
  color: #dbe5f4;
  font-size: 0.98rem;
}

.platform-kpi-card__body strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.platform-kpi-card__body small {
  color: #31d18e;
  font-weight: 700;
}

.platform-panel__arrow {
  color: #92a6c1;
  font-size: 1.4rem;
  line-height: 1;
}

.platform-dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.7fr;
  gap: 18px;
  margin-bottom: 18px;
}

.platform-dashboard-lower {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 18px;
}

.platform-stack {
  display: grid;
  gap: 18px;
}

.platform-panel {
  padding: 22px;
  border: 1px solid rgba(92, 108, 132, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 22, 34, 0.98) 0%, rgba(12, 19, 30, 0.96) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

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

.platform-panel__head h2 {
  margin: 0 0 4px;
  color: #f8fbff;
  font-size: 1.5rem;
}

.platform-panel__head p {
  margin: 0;
  color: #8ea1ba;
}

.platform-panel__tag,
.platform-link {
  color: #c6d1e2;
  font-size: 0.88rem;
  font-weight: 700;
}

.platform-chart-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  color: #a9b8cd;
}

.platform-chart-legend i {
  width: 18px;
  height: 3px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
}

.platform-chart-legend .is-signups { background: #1ddb92; }
.platform-chart-legend .is-revenue { background: #34b8ff; }

.platform-line-chart {
  position: relative;
  height: 248px;
  border-bottom: 1px solid rgba(88, 105, 129, 0.24);
  overflow: hidden;
}

.platform-line-chart__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(74, 88, 111, 0.1) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(to right, rgba(74, 88, 111, 0.04) 1px, transparent 1px) 0 0 / 16.66% 100%;
}

.platform-line-chart svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.platform-line-chart__stroke {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-line-chart__stroke.is-signups { stroke: #22dd93; }
.platform-line-chart__stroke.is-revenue { stroke: #2ab8ff; }

.platform-line-chart__dot {
  stroke: #0f1723;
  stroke-width: 2;
}

.platform-line-chart__dot.is-signups { fill: #22dd93; }
.platform-line-chart__dot.is-revenue { fill: #2ab8ff; }

.platform-line-chart__labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.platform-line-chart__labels span {
  color: #8ea1ba;
  text-align: center;
  font-size: 0.84rem;
}

.platform-status-ring {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.platform-status-ring__chart {
  width: 180px;
  height: 180px;
  padding: 24px;
  border-radius: 50%;
}

.platform-status-ring__center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #101926;
  text-align: center;
}

.platform-status-ring__center strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
}

.platform-status-ring__center span {
  color: #98aac2;
}

.platform-status-ring__legend {
  display: grid;
  gap: 14px;
}

.platform-status-ring__legend article {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: #d8e2f0;
}

.platform-status-ring__legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.platform-status-ring__legend span,
.platform-status-ring__legend em {
  color: #8da0bc;
  font-style: normal;
}

.platform-alert-list,
.platform-manager-list,
.platform-action-list {
  display: grid;
  gap: 12px;
}

.platform-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(85, 102, 126, 0.18);
  border-radius: 16px;
  background: rgba(18, 26, 39, 0.92);
}

.platform-alert-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f59e0b;
  flex-shrink: 0;
  color: #fff;
  font-weight: 900;
}

.platform-alert-item__icon.is-past_due,
.platform-alert-item__icon.is-suspended { background: linear-gradient(135deg, #ff7f66, #d64545); }
.platform-alert-item__icon.is-trial { background: linear-gradient(135deg, #f8c94b, #d98f00); }

.platform-alert-item__content {
  display: grid;
  gap: 3px;
}

.platform-alert-item__content strong {
  color: #f9fbff;
}

.platform-alert-item__content span {
  color: #96a7c0;
  font-size: 0.9rem;
}

.platform-alert-item em {
  margin-left: auto;
  color: #90a2ba;
  font-style: normal;
  font-size: 1.2rem;
}

.platform-table {
  display: grid;
  gap: 10px;
}

.platform-table__head,
.platform-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr 1fr 0.9fr;
  gap: 12px;
  align-items: center;
}

.platform-table__head {
  color: #7889a4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
}

.platform-table__row {
  padding: 12px 14px;
  border: 1px solid rgba(86, 104, 130, 0.16);
  border-radius: 16px;
  background: rgba(17, 25, 39, 0.92);
  color: #d8e2f0;
}

.platform-store-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-store-cell__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb454, #f97316);
  color: #0f1723;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.platform-store-cell__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: rgba(20, 29, 43, 0.9);
}

.platform-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
}

.platform-status-pill.is-active { background: rgba(35, 209, 139, 0.16); color: #2ce59c; }
.platform-status-pill.is-trial { background: rgba(46, 164, 255, 0.16); color: #4bb8ff; }
.platform-status-pill.is-suspended,
.platform-status-pill.is-past_due { background: rgba(243, 161, 26, 0.18); color: #ffb53d; }
.platform-status-pill.is-cancelled { background: rgba(255, 93, 115, 0.16); color: #ff768a; }

.platform-manager-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
}

.platform-manager-item__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f6a56f, #ffdbbd);
  color: #111827;
  font-weight: 900;
}

.platform-manager-item__body {
  display: grid;
  gap: 5px;
}

.platform-manager-item__body strong {
  color: #f8fbff;
}

.platform-manager-item__body span,
.platform-manager-item em {
  color: #93a6bf;
  font-style: normal;
  font-size: 0.86rem;
}

.platform-manager-item__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(70, 82, 102, 0.5);
  overflow: hidden;
}

.platform-manager-item__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1bdd91, #18a56f);
}

.platform-action-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 800;
}

.platform-action-item em {
  font-style: normal;
  font-size: 1.1rem;
}

.platform-action-item.is-green { background: linear-gradient(135deg, #159c6d, #12b17c); }
.platform-action-item.is-cyan { background: linear-gradient(135deg, #118fa7, #13b5c0); }
.platform-action-item.is-violet { background: linear-gradient(135deg, #6d2fdb, #8e45ff); }
.platform-action-item.is-blue { background: linear-gradient(135deg, #186fbf, #2aa5ff); }

.platform-workspace-body .page-head,
.platform-workspace-body .panel-card,
.platform-workspace-body .section-heading {
  color: inherit;
}

.platform-workspace-body .page-head h1,
.platform-workspace-body .section-heading h2 {
  color: #f8fbff;
}

.platform-workspace-body .page-head p,
.platform-workspace-body .section-heading p,
.platform-workspace-body .placeholder-note {
  color: #90a2ba;
}

.platform-workspace-body .panel-card {
  background: linear-gradient(180deg, rgba(15, 22, 34, 0.98) 0%, rgba(12, 19, 30, 0.96) 100%);
  border: 1px solid rgba(92, 108, 132, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-record-card {
  margin-bottom: 18px;
}

.platform-surface-grid {
  display: grid;
  gap: 18px;
}

.platform-workspace-body .store-field-group span {
  color: #c7d2e2;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select {
  border: 1px solid rgba(88, 105, 129, 0.2);
  background: rgba(17, 25, 39, 0.95);
  color: #f3f7ff;
}

.platform-workspace-body .products-table-head {
  color: #7f91ab;
}

.platform-workspace-body .customer-row,
.platform-workspace-body .products-row,
.platform-workspace-body .platform-record-card {
  border-color: rgba(88, 105, 129, 0.18);
  background: rgba(16, 24, 37, 0.94);
}

.platform-workspace-body .customer-row strong,
.platform-workspace-body .products-row strong,
.platform-workspace-body .products-table-body strong {
  color: #f8fbff;
}

.platform-workspace-body .customer-row span,
.platform-workspace-body .products-row span,
.platform-workspace-body .products-table-body span {
  color: #95a7c0;
}

.platform-workspace-body .btn-secondary {
  background: rgba(27, 38, 55, 0.96);
  color: #e3ebf8;
  border: 1px solid rgba(86, 104, 130, 0.18);
  box-shadow: none;
}

.platform-workspace-body .btn-primary {
  background: linear-gradient(135deg, #10b981, #0d9d73);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.2);
}

@media (max-width: 1280px) {
  .platform-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .platform-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 147, 180, 0.14);
  }

  .platform-main {
    padding: 0 12px 18px;
  }

  .platform-topbar {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .platform-topbar__right {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .platform-user-chip,
  .platform-search {
    max-width: none;
    width: 100%;
  }

  .platform-kpi-card {
    min-height: 108px;
  }
}

@media (max-width: 720px) {
  .platform-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-table__head {
    display: none;
  }

  .platform-table__row {
    grid-template-columns: 1fr;
  }

  .platform-store-cell {
    margin-bottom: 4px;
  }

  .platform-status-ring {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .platform-line-chart__labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
  }
}

@media (max-width: 560px) {
  .platform-kpi-row {
    grid-template-columns: 1fr;
  }

  .platform-content {
    padding: 14px;
  }
}

/* Stores page */
.platform-page-head--stores {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.platform-page-head__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-store-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.platform-store-summary-card {
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(92, 108, 132, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 24, 37, 0.98) 0%, rgba(14, 22, 34, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.platform-store-summary-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
}

.platform-store-summary-card__icon svg {
  width: 28px;
  height: 28px;
}

.platform-store-summary-card.is-teal .platform-store-summary-card__icon { background: linear-gradient(135deg, #1ad292, #147f63); }
.platform-store-summary-card.is-blue .platform-store-summary-card__icon { background: linear-gradient(135deg, #2d74ff, #2750db); }
.platform-store-summary-card.is-sky .platform-store-summary-card__icon { background: linear-gradient(135deg, #2d7ef7, #234fbc); }
.platform-store-summary-card.is-amber .platform-store-summary-card__icon { background: linear-gradient(135deg, #9f6508, #d1830e); }
.platform-store-summary-card.is-red .platform-store-summary-card__icon { background: linear-gradient(135deg, #8d2630, #db4d5a); }

.platform-store-summary-card__body {
  display: grid;
  gap: 4px;
}

.platform-store-summary-card__body span {
  color: #d6deeb;
  font-size: 1rem;
}

.platform-store-summary-card__body strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.platform-store-summary-card__body small {
  font-weight: 700;
}

.platform-store-summary-card__body small.is-positive { color: #2ed88f; }
.platform-store-summary-card__body small.is-negative { color: #ff6b6b; }

.platform-stores-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.platform-stores-main,
.platform-stores-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.platform-stores-filters {
  padding: 18px;
}

.platform-stores-filters__grid {
  display: grid;
  grid-template-columns: 2.1fr repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

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

.platform-filter-field span {
  color: #9fb0c8;
  font-size: 0.88rem;
}

.platform-filter-field input,
.platform-filter-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(88, 105, 129, 0.22);
  border-radius: 12px;
  background: rgba(16, 24, 37, 0.96);
  color: #f4f8ff;
}

.platform-filter-field--search {
  position: relative;
}

.platform-filter-field--search input {
  padding-right: 44px;
}

.platform-filter-field__icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #8ea1ba;
}

.platform-filter-more {
  height: 46px;
  min-width: 138px;
  padding: 0 16px;
}

.platform-stores-table-card {
  padding: 0;
  overflow: hidden;
}

.platform-stores-table {
  overflow-x: auto;
}

.platform-stores-table__head {
  display: grid;
  grid-template-columns: 1.55fr 1.05fr 0.7fr 0.72fr 1fr 0.82fr 0.85fr 0.58fr;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(88, 105, 129, 0.18);
  color: #8798b1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-stores-table__body {
  display: grid;
}

.platform-stores-row {
  display: grid;
  grid-template-columns: 1.55fr 1.05fr 0.7fr 0.72fr 1fr 0.82fr 0.85fr 0.58fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(88, 105, 129, 0.14);
  background: rgba(12, 19, 30, 0.68);
}

.platform-stores-row:last-child {
  border-bottom: 0;
}

.platform-stores-row__store,
.platform-stores-row__manager {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-stores-row__store-meta,
.platform-stores-row__owner,
.platform-stores-row__orders {
  display: grid;
  gap: 4px;
}

.platform-stores-row__store-meta strong,
.platform-stores-row__owner strong,
.platform-stores-row__orders strong {
  color: #ffffff;
  font-size: 1rem;
}

.platform-stores-row__store-meta span,
.platform-stores-row__owner span,
.platform-stores-row__manager span,
.platform-stores-row__last-access span {
  color: #8ea1ba;
  font-size: 0.86rem;
}

.platform-stores-row__orders span {
  color: #22d38c;
  font-size: 0.92rem;
}

.platform-stores-row__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.platform-stores-row__logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 24, 37, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.platform-stores-row__logo span {
  color: #fff4d5;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.platform-stores-row__logo.is-pizza { background: radial-gradient(circle at top, #ffb35c, #7d2915 70%); }
.platform-stores-row__logo.is-burger { background: radial-gradient(circle at top, #ffcb65, #713717 72%); }
.platform-stores-row__logo.is-acai { background: radial-gradient(circle at top, #a855f7, #3b0d48 72%); }
.platform-stores-row__logo.is-sushi { background: radial-gradient(circle at top, #ff9857, #50331b 72%); }
.platform-stores-row__logo.is-coffee { background: radial-gradient(circle at top, #b98a63, #5b3f2c 72%); }
.platform-stores-row__logo.is-orange { background: radial-gradient(circle at top, #ff9a3f, #8e3417 72%); }
.platform-stores-row__logo.is-veggie { background: radial-gradient(circle at top, #3cdf8e, #16492e 72%); }

.platform-stores-row__plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5ecf7;
}

.platform-stores-row__plan i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.platform-stores-row__plan i.is-green { background: #22d38c; }
.platform-stores-row__plan i.is-blue { background: #3b82f6; }
.platform-stores-row__plan i.is-violet { background: #8b5cf6; }

.platform-stores-row__manager-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4b183, #ffe5d2);
  color: #0f1723;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.platform-stores-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.platform-icon-button.is-table {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 22, 34, 0.98);
}

.platform-stores-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid rgba(88, 105, 129, 0.14);
  color: #91a3bd;
}

.platform-stores-pagination__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-page-button {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(88, 105, 129, 0.18);
  border-radius: 10px;
  background: rgba(13, 20, 32, 0.96);
  color: #d4deef;
  cursor: pointer;
  text-decoration: none;
}

.platform-page-button.is-active {
  border-color: rgba(35, 209, 139, 0.28);
  background: linear-gradient(135deg, #18bb80, #14956b);
  color: #fff;
}

.platform-page-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.platform-page-button.is-dots {
  border: 0;
  background: transparent;
  color: #8fa2bc;
  cursor: default;
}

.platform-stores-donut {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.platform-stores-donut__chart {
  width: 156px;
  height: 156px;
  padding: 16px;
  border-radius: 50%;
}

.platform-stores-donut__center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111926;
  text-align: center;
}

.platform-stores-donut__center strong {
  display: block;
  color: #fff;
  font-size: 2rem;
}

.platform-stores-donut__center span {
  color: #91a3bd;
}

.platform-stores-donut__legend {
  width: 100%;
  display: grid;
  gap: 12px;
}

.platform-stores-donut__legend article {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: #d8e2f0;
}

.platform-stores-donut__legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.platform-stores-donut__legend span,
.platform-stores-donut__legend em {
  color: #8ea1ba;
  font-style: normal;
}

.platform-bulk-actions {
  display: grid;
  gap: 10px;
}

.platform-bulk-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(88, 105, 129, 0.18);
  border-radius: 10px;
  background: rgba(15, 22, 34, 0.92);
  color: #6f819b;
  text-align: left;
  cursor: not-allowed;
}

.platform-bulk-button.is-danger {
  border-color: rgba(239, 68, 68, 0.42);
  color: #ef6c6c;
}

.platform-tip-card {
  display: grid;
  gap: 14px;
}

.platform-tip-card p {
  margin: 0;
  color: #96a7c0;
  line-height: 1.6;
}

.platform-tip-card a {
  color: #25d18a;
  font-weight: 700;
}

.platform-tip-card a span {
  margin-left: 4px;
}

.platform-users-layout .platform-stores-side {
  align-content: start;
}

.platform-users-filters__grid {
  grid-template-columns: 2.2fr repeat(3, minmax(0, 1fr)) auto;
}

.platform-users-table-card {
  padding: 0;
  overflow: hidden;
}

.platform-users-table {
  overflow-x: auto;
}

.platform-users-table__head {
  display: grid;
  grid-template-columns: 34px 1.2fr 1.05fr 0.9fr 0.95fr 0.82fr 1.08fr 0.8fr 0.85fr 0.55fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #91a3bd;
  font-size: 0.84rem;
  font-weight: 700;
}

.platform-users-table__body {
  display: grid;
}

.platform-users-row {
  display: grid;
  grid-template-columns: 34px 1.2fr 1.05fr 0.9fr 0.95fr 0.82fr 1.08fr 0.8fr 0.85fr 0.55fr;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-users-row:last-child {
  border-bottom: 0;
}

.platform-users-table__checkbox,
.platform-users-row__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-users-table__checkbox input,
.platform-users-row__checkbox input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #23d18b;
}

.platform-users-row__identity {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.platform-users-row__store,
.platform-users-row__meta {
  display: grid;
  gap: 4px;
}

.platform-users-row__identity strong,
.platform-users-row__store strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.platform-users-row__meta span,
.platform-users-row__store span {
  color: #8ea1ba;
  font-size: 0.86rem;
}

.platform-users-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at top, #ffb16d, #5c2f1b 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff4da;
  font-size: 0.82rem;
  font-weight: 800;
}

.platform-distribution-list {
  display: grid;
  gap: 14px;
}

.platform-distribution-item {
  display: grid;
  gap: 8px;
}

.platform-distribution-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce6f5;
  font-size: 0.92rem;
}

.platform-distribution-item__head span {
  color: #8fa2bc;
  font-size: 0.86rem;
}

.platform-distribution-item__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.platform-distribution-item__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(35, 209, 139, 0.22);
}

.platform-action-list--thin .platform-action-item {
  min-height: 48px;
}

.platform-action-item.is-red-outline {
  background: rgba(51, 18, 20, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff8d8d;
}

.platform-action-item.is-red-outline em,
.platform-action-item.is-red-outline span {
  color: inherit;
}

.platform-finance-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.platform-finance-layout .platform-stores-side {
  align-content: start;
}

.platform-finance-filters__grid {
  grid-template-columns: 2.1fr 1fr 1fr auto;
}

.platform-finance-table-card {
  padding: 0;
  overflow: hidden;
}

.platform-finance-table {
  overflow-x: auto;
}

.platform-finance-table__head,
.platform-finance-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.78fr 0.72fr 0.78fr 0.52fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
}

.platform-finance-table__head {
  color: #91a3bd;
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-finance-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-finance-row:last-child {
  border-bottom: 0;
}

.platform-finance-row__customer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-finance-row__customer strong {
  display: block;
  color: #ffffff;
  font-size: 0.98rem;
}

.platform-finance-row__customer span:last-child {
  color: #8ea1ba;
  font-size: 0.86rem;
}

.platform-finance-row__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(35, 209, 139, 0.28), rgba(18, 44, 60, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #79f0be;
  font-size: 0.84rem;
  font-weight: 900;
}

.platform-finance-summary-list {
  display: grid;
  gap: 14px;
}

.platform-finance-summary-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce5f3;
}

.platform-finance-summary-list article + article {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-finance-summary-list span {
  color: #97a9c2;
}

.platform-finance-summary-list strong.is-positive {
  color: #22d38c;
}

.platform-finance-summary-list strong.is-amber {
  color: #f59e0b;
}

.platform-finance-summary-list strong.is-negative {
  color: #ff5f5f;
}

.platform-finance-delinquent-list {
  display: grid;
  gap: 14px;
}

.platform-finance-delinquent-list article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
}

.platform-finance-delinquent-list strong {
  display: block;
  color: #ffffff;
}

.platform-finance-delinquent-list span {
  color: #9ab0c8;
  font-size: 0.88rem;
}

.platform-finance-delinquent-list__meta {
  text-align: right;
}

.platform-finance-delinquent-list__meta em {
  display: block;
  color: #9ab0c8;
  font-style: normal;
  font-size: 0.84rem;
}

.platform-finance-delinquent-list__meta strong {
  color: #ff6464;
}

.platform-plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.platform-plans-main,
.platform-plans-side {
  display: grid;
  gap: 18px;
}

.platform-plan-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 18px;
}

.platform-plan-table {
  border: 1px solid rgba(88, 105, 129, 0.16);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12, 18, 30, 0.36);
}

.platform-plan-table__head,
.platform-plan-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.95fr 0.8fr 0.75fr 0.55fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
}

.platform-plan-table__head {
  color: #91a3bd;
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-plan-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-plan-row:last-of-type {
  border-bottom: 0;
}

.platform-plan-row.is-selected {
  background: linear-gradient(135deg, rgba(20, 54, 45, 0.46), rgba(10, 18, 30, 0.72));
  box-shadow: inset 0 0 0 1px rgba(35, 209, 139, 0.28);
}

.platform-plan-row__plan {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-plan-row__plan strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.platform-plan-row__plan span:last-child {
  color: #8ea1ba;
  font-size: 0.86rem;
}

.platform-plan-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(35, 209, 139, 0.28), rgba(18, 44, 60, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #79f0be;
  font-weight: 900;
}

.platform-plan-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.platform-plan-table__footer {
  padding: 18px;
  color: #91a3bd;
  border-top: 1px solid rgba(88, 105, 129, 0.14);
}

.platform-plan-editor-card {
  position: sticky;
  top: 24px;
}

.platform-plan-form {
  display: grid;
  gap: 22px;
}

.platform-plan-form__section {
  display: grid;
  gap: 14px;
}

.platform-plan-form__section h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 1rem;
}

.platform-plan-form__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.9fr;
  gap: 14px;
}

.platform-plan-form__grid .full {
  grid-column: 1 / -1;
}

.platform-plan-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(88, 105, 129, 0.16);
  border-radius: 18px;
  overflow: hidden;
}

.platform-plan-module-card {
  display: grid;
  grid-template-columns: 18px 22px 1fr 52px;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border-right: 1px solid rgba(88, 105, 129, 0.16);
  border-bottom: 1px solid rgba(88, 105, 129, 0.16);
  background: rgba(13, 20, 32, 0.54);
  cursor: pointer;
}

.platform-plan-module-card input {
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.platform-plan-module-card__content {
  display: grid;
  gap: 4px;
}

.platform-plan-module-card__content strong {
  color: #eef5ff;
}

.platform-plan-module-card__content small {
  color: #8ea1ba;
  line-height: 1.5;
}

.platform-plan-module-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.platform-plan-module-card__check svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-plan-module-card__toggle {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(88, 105, 129, 0.2);
  justify-self: end;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.platform-plan-module-card__toggle span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  background: #cbd5e1;
  transform: translateX(0);
  transition: transform 0.18s ease, background 0.18s ease;
}

.platform-plan-module-card:has(input:checked) {
  background: rgba(16, 34, 31, 0.72);
}

.platform-plan-module-card:has(input:checked) .platform-plan-module-card__check {
  background: rgba(35, 209, 139, 0.22);
  border-color: rgba(35, 209, 139, 0.42);
  color: #5af0b0;
}

.platform-plan-module-card:has(input:checked) .platform-plan-module-card__toggle {
  background: rgba(35, 209, 139, 0.22);
  border-color: rgba(35, 209, 139, 0.38);
}

.platform-plan-module-card:has(input:checked) .platform-plan-module-card__toggle span {
  transform: translateX(22px);
  background: #56f0ae;
}

.platform-plan-form textarea,
.platform-plan-form input,
.platform-plan-form select {
  width: 100%;
}

.platform-plan-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1360px) {
  .platform-store-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-stores-layout {
    grid-template-columns: 1fr;
  }

  .platform-finance-kpis {
    grid-template-columns: 1fr;
  }

  .platform-plans-layout {
    grid-template-columns: 1fr;
  }

  .platform-plan-editor-card {
    position: static;
  }
}

@media (max-width: 1100px) {
  .platform-stores-filters__grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-users-filters__grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-filter-field--search,
  .platform-filter-more {
    grid-column: 1 / -1;
  }

  .platform-stores-table__head,
  .platform-stores-row {
    min-width: 1080px;
  }

  .platform-users-table__head,
  .platform-users-row {
    min-width: 1230px;
  }

  .platform-finance-filters__grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-finance-table__head,
  .platform-finance-row {
    min-width: 980px;
  }

  .platform-plan-list,
  .platform-plan-form__grid,
  .platform-plan-module-grid,
  .platform-plan-toolbar {
    grid-template-columns: 1fr;
  }

  .platform-plan-table__head,
  .platform-plan-row {
    min-width: 860px;
  }
}

@media (max-width: 760px) {
  .platform-page-head--stores {
    flex-direction: column;
  }

  .platform-page-head__actions {
    width: 100%;
  }

  .platform-page-head__actions .btn {
    flex: 1;
  }

  .platform-store-summary-row {
    grid-template-columns: 1fr;
  }

  .platform-stores-filters__grid {
    grid-template-columns: 1fr;
  }

  .platform-users-filters__grid {
    grid-template-columns: 1fr;
  }

  .platform-finance-filters__grid {
    grid-template-columns: 1fr;
  }

  .platform-stores-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final light overrides for CRM/Atendimento, intentionally placed last. */
.mc-service-workspace {
  color: var(--mc-text) !important;
}

.mc-service-workspace .platform-panel,
.mc-service-workspace .panel-card,
.mc-service-workspace .crm-summary-card,
.mc-service-workspace .crm-kanban-column,
.mc-service-workspace .crm-lead-card,
.mc-service-workspace .customer-row,
.mc-service-workspace .products-row {
  border-color: rgba(179, 130, 98, 0.22) !important;
  background: rgba(255, 250, 243, 0.94) !important;
  color: var(--mc-text) !important;
  box-shadow: var(--mc-shadow) !important;
}

.mc-service-workspace .platform-page-head h1,
.mc-service-workspace .platform-panel__head h2,
.mc-service-workspace strong,
.mc-service-workspace .crm-details dd,
.mc-service-workspace .crm-conversation-item__body strong,
.mc-service-workspace .crm-lead-card__head strong {
  color: var(--mc-text) !important;
}

.mc-service-workspace .platform-page-head p,
.mc-service-workspace .platform-panel__head p,
.mc-service-workspace span,
.mc-service-workspace small,
.mc-service-workspace .crm-details dt,
.mc-service-workspace .placeholder-note {
  color: var(--mc-muted);
}

.mc-service-workspace input,
.mc-service-workspace textarea,
.mc-service-workspace select {
  border-color: var(--mc-line) !important;
  background: #fffdf8 !important;
  color: var(--mc-text) !important;
}

.mc-service-workspace .btn-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--mc-red), var(--mc-red-strong)) !important;
  color: #fffaf7 !important;
}

.mc-service-workspace .btn-secondary {
  border-color: rgba(199, 82, 73, 0.18) !important;
  background: #fff7ef !important;
  color: var(--mc-red-strong) !important;
}

.mc-service-workspace .crm-chat {
  background: #f1e6d7 !important;
}

.mc-service-workspace .crm-chat-head,
.mc-service-workspace .crm-reply-box {
  background: rgba(255, 250, 243, 0.96) !important;
}

.mc-service-workspace .crm-message-stream {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%) 0 0 / 28px 28px,
    #efe2d0 !important;
}

.mc-service-workspace .crm-message span {
  background: #fffdf8 !important;
  color: var(--mc-text) !important;
}

.mc-service-workspace .crm-message.is-out span {
  background: #ffd8d1 !important;
  color: #4b241f !important;
}

.mc-service-workspace .crm-conversation-item {
  background: transparent !important;
  box-shadow: none !important;
}

.mc-service-workspace .crm-conversation-item:hover,
.mc-service-workspace .crm-conversation-item.is-active {
  border-color: rgba(232, 121, 111, 0.28) !important;
  background: #fff5ec !important;
}

.mc-service-workspace .crm-avatar {
  background: linear-gradient(135deg, var(--mc-red), #efaaa2) !important;
  color: #fffaf7 !important;
}

/* Plataforma SaaS - tema claro minimalista */
.platform-workspace-body {
  --pa-bg: #f6efe7;
  --pa-bg-soft: #fbf6ef;
  --pa-surface: #fffaf4;
  --pa-surface-2: #fff4ea;
  --pa-line: #ead9c8;
  --pa-line-strong: #dec5b1;
  --pa-text: #34241f;
  --pa-muted: #8a7466;
  --pa-muted-2: #a99180;
  --pa-red: #e8796f;
  --pa-red-strong: #c75249;
  --pa-red-soft: #ffe3de;
  --pa-green: #779b72;
  --pa-blue: #7399ba;
  --pa-amber: #c79545;
  --pa-shadow: 0 18px 48px rgba(97, 58, 34, 0.10);
  --pa-shadow-soft: 0 10px 28px rgba(97, 58, 34, 0.07);
  background:
    radial-gradient(circle at 16% 0%, rgba(232, 121, 111, 0.15), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, var(--pa-bg) 0%, #fbf7f1 48%, #f1e3d4 100%) !important;
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-shell {
  grid-template-columns: 258px minmax(0, 1fr);
}

.platform-workspace-body .platform-sidebar {
  margin: 14px 0 14px 14px;
  height: calc(100vh - 28px);
  border: 1px solid rgba(222, 197, 177, 0.76) !important;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.86) !important;
  box-shadow: var(--pa-shadow-soft);
  backdrop-filter: blur(16px);
}

.platform-workspace-body .platform-sidebar__header {
  border-bottom: 1px solid rgba(222, 197, 177, 0.56) !important;
}

.platform-workspace-body .platform-brand__text strong,
.platform-workspace-body .platform-sidebar__footer strong {
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-brand__text small {
  color: var(--pa-red-strong) !important;
}

.platform-workspace-body .platform-sidebar__footer {
  border-top: 1px solid rgba(222, 197, 177, 0.56) !important;
  background: transparent !important;
}

.platform-workspace-body .platform-sidebar__footer span,
.platform-workspace-body .platform-sidebar__footer small,
.platform-workspace-body .platform-sidebar__footer a {
  color: var(--pa-muted) !important;
}

.platform-workspace-body .platform-nav-link {
  color: var(--pa-muted) !important;
  border: 1px solid transparent;
  border-radius: 16px;
}

.platform-workspace-body .platform-nav-link:hover {
  color: var(--pa-text) !important;
  background: #fff4ea !important;
  border-color: rgba(222, 197, 177, 0.6);
}

.platform-workspace-body .platform-nav-link.is-active {
  color: var(--pa-red-strong) !important;
  background: var(--pa-red-soft) !important;
  border-color: rgba(232, 121, 111, 0.22);
  box-shadow: none !important;
}

.platform-workspace-body .platform-nav-link__icon {
  color: inherit !important;
}

.platform-workspace-body .platform-main {
  padding: 14px 22px 24px 14px;
}

.platform-workspace-body .platform-topbar {
  min-height: 64px;
  border: 1px solid rgba(222, 197, 177, 0.7) !important;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.84) !important;
  box-shadow: var(--pa-shadow-soft);
  backdrop-filter: blur(16px);
}

.platform-workspace-body .platform-content {
  padding: 26px 4px 0;
}

.platform-workspace-body .platform-search {
  border: 1px solid var(--pa-line) !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-search input {
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-search input::placeholder {
  color: var(--pa-muted-2) !important;
}

.platform-workspace-body .platform-search__icon,
.platform-workspace-body .platform-search__shortcut {
  color: var(--pa-muted) !important;
}

.platform-workspace-body .platform-icon-button,
.platform-workspace-body .platform-user-chip,
.platform-workspace-body .platform-quick-button {
  border: 1px solid var(--pa-line) !important;
  background: #fffdf8 !important;
  color: var(--pa-text) !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-icon-button__badge,
.platform-workspace-body .platform-user-chip__avatar {
  background: var(--pa-red) !important;
  color: #fffaf7 !important;
}

.platform-workspace-body .platform-user-chip__content strong {
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-user-chip__content span,
.platform-workspace-body .platform-user-chip__caret {
  color: var(--pa-muted) !important;
}

.platform-workspace-body .platform-quick-button {
  background: linear-gradient(135deg, var(--pa-red), var(--pa-red-strong)) !important;
  color: #fffaf7 !important;
  border-color: transparent !important;
}

.platform-workspace-body .platform-quick-menu {
  border: 1px solid var(--pa-line) !important;
  background: #fffaf4 !important;
  box-shadow: var(--pa-shadow);
}

.platform-workspace-body .platform-quick-menu a {
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-quick-menu a:hover {
  background: var(--pa-red-soft) !important;
  color: var(--pa-red-strong) !important;
}

.platform-workspace-body .platform-page-head {
  margin-bottom: 24px;
}

.platform-workspace-body .platform-page-head h1,
.platform-workspace-body .page-head h1,
.platform-workspace-body .section-heading h2 {
  color: var(--pa-text) !important;
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
  letter-spacing: -0.05em;
}

.platform-workspace-body .platform-page-head p,
.platform-workspace-body .page-head p,
.platform-workspace-body .section-heading p,
.platform-workspace-body .placeholder-note {
  color: var(--pa-muted) !important;
}

.platform-workspace-body .platform-panel,
.platform-workspace-body .panel-card,
.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .platform-record-card,
.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-stores-table-card,
.platform-workspace-body .platform-users-table-card,
.platform-workspace-body .platform-finance-table-card,
.platform-workspace-body .platform-plan-card,
.platform-workspace-body .platform-plan-form,
.platform-workspace-body .platform-plan-module-card {
  border: 1px solid rgba(222, 197, 177, 0.72) !important;
  border-radius: 24px !important;
  background: rgba(255, 250, 244, 0.88) !important;
  color: var(--pa-text) !important;
  box-shadow: var(--pa-shadow-soft) !important;
  backdrop-filter: blur(12px);
}

.platform-workspace-body .platform-panel__head h2,
.platform-workspace-body .platform-kpi-card__body strong,
.platform-workspace-body .platform-store-summary-card__body strong,
.platform-workspace-body .platform-stores-row__store-meta strong,
.platform-workspace-body .platform-stores-row__owner strong,
.platform-workspace-body .platform-stores-row__orders strong,
.platform-workspace-body .platform-users-row__identity strong,
.platform-workspace-body .platform-users-row__store strong,
.platform-workspace-body .products-table-body strong,
.platform-workspace-body .customer-row strong,
.platform-workspace-body .products-row strong {
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-panel__head p,
.platform-workspace-body .platform-kpi-card__body span,
.platform-workspace-body .platform-kpi-card__body small,
.platform-workspace-body .platform-store-summary-card__body span,
.platform-workspace-body .platform-store-summary-card__body small,
.platform-workspace-body .platform-stores-row__store-meta span,
.platform-workspace-body .platform-stores-row__owner span,
.platform-workspace-body .platform-stores-row__manager span,
.platform-workspace-body .platform-stores-row__last-access span,
.platform-workspace-body .platform-users-row__meta span,
.platform-workspace-body .products-table-body span,
.platform-workspace-body .customer-row span,
.platform-workspace-body .products-row span {
  color: var(--pa-muted) !important;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select,
.platform-workspace-body .platform-filter-field input,
.platform-workspace-body .platform-filter-field select {
  border: 1px solid var(--pa-line) !important;
  background: #fffdf8 !important;
  color: var(--pa-text) !important;
  box-shadow: none !important;
}

.platform-workspace-body input::placeholder,
.platform-workspace-body textarea::placeholder {
  color: var(--pa-muted-2) !important;
}

.platform-workspace-body .btn-primary {
  border: 0 !important;
  background: linear-gradient(135deg, var(--pa-red), var(--pa-red-strong)) !important;
  color: #fffaf7 !important;
  box-shadow: 0 12px 28px rgba(199, 82, 73, 0.18) !important;
}

.platform-workspace-body .btn-secondary,
.platform-workspace-body .platform-filter-more,
.platform-workspace-body .platform-bulk-button,
.platform-workspace-body .platform-page-button {
  border: 1px solid rgba(199, 82, 73, 0.16) !important;
  background: #fff7ef !important;
  color: var(--pa-red-strong) !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-table__head,
.platform-workspace-body .platform-stores-table__head,
.platform-workspace-body .platform-users-table__head,
.platform-workspace-body .platform-finance-table__head,
.platform-workspace-body .products-table-head {
  color: var(--pa-muted) !important;
  background: #fff4ea !important;
  border-radius: 16px;
}

.platform-workspace-body .platform-table__row,
.platform-workspace-body .platform-stores-row,
.platform-workspace-body .platform-users-row,
.platform-workspace-body .platform-finance-row,
.platform-workspace-body .customer-row,
.platform-workspace-body .products-row,
.platform-workspace-body .platform-alert-item {
  border-color: rgba(222, 197, 177, 0.62) !important;
  background: rgba(255, 253, 248, 0.74) !important;
}

.platform-workspace-body .platform-stores-row:hover,
.platform-workspace-body .platform-users-row:hover,
.platform-workspace-body .platform-finance-row:hover {
  background: #fff4ea !important;
}

.platform-workspace-body .platform-status-pill,
.platform-workspace-body .platform-panel__tag,
.platform-workspace-body .platform-link {
  border-color: rgba(232, 121, 111, 0.18) !important;
  background: var(--pa-red-soft) !important;
  color: var(--pa-red-strong) !important;
}

.platform-workspace-body .platform-kpi-card__icon,
.platform-workspace-body .platform-store-summary-card__icon,
.platform-workspace-body .platform-alert-item__icon,
.platform-workspace-body .platform-stores-row__manager-avatar,
.platform-workspace-body .platform-stores-row__logo,
.platform-workspace-body .platform-users-row__avatar {
  background: linear-gradient(135deg, var(--pa-red), #efaaa2) !important;
  color: #fffaf7 !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-chart-legend i,
.platform-workspace-body .platform-stores-row__plan i,
.platform-workspace-body .platform-stores-donut__legend i,
.platform-workspace-body .platform-status-ring__legend i {
  background: var(--pa-red) !important;
}

.platform-workspace-body .platform-line-chart__stroke.is-signups,
.platform-workspace-body .platform-line-chart__stroke.is-revenue {
  stroke: var(--pa-red) !important;
}

.platform-workspace-body .platform-line-chart__dot.is-signups,
.platform-workspace-body .platform-line-chart__dot.is-revenue {
  fill: var(--pa-red) !important;
}

.platform-workspace-body .platform-stores-donut__chart,
.platform-workspace-body .platform-status-ring__chart {
  box-shadow: inset 0 0 0 14px #fff7ef;
}

.platform-workspace-body .platform-stores-donut__center,
.platform-workspace-body .platform-status-ring__center {
  background: #fffaf4 !important;
  color: var(--pa-text) !important;
}

.platform-workspace-body .alert-success,
.platform-workspace-body .platform-alert.alert-success {
  border-color: rgba(119, 155, 114, 0.28) !important;
  background: #edf6e9 !important;
  color: #426d3f !important;
}

.platform-workspace-body .alert-error,
.platform-workspace-body .platform-alert.alert-error {
  border-color: rgba(199, 82, 73, 0.28) !important;
  background: var(--pa-red-soft) !important;
  color: var(--pa-red-strong) !important;
}

@media (max-width: 1100px) {
  .platform-workspace-body .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-workspace-body .platform-sidebar {
    position: relative;
    height: auto;
    margin: 12px;
  }

  .platform-workspace-body .platform-main {
    padding: 0 12px 18px;
  }
}

/* Plataforma SaaS - ajuste final white/minimal conforme referencia */
.platform-workspace-body {
  --pa-bg: #f8fafc;
  --pa-bg-soft: #ffffff;
  --pa-surface: #ffffff;
  --pa-surface-2: #f9fbfd;
  --pa-line: #e7edf3;
  --pa-line-strong: #dbe4ed;
  --pa-text: #101828;
  --pa-muted: #667085;
  --pa-muted-2: #98a2b3;
  --pa-red: #10b981;
  --pa-red-strong: #059669;
  --pa-red-soft: #e8f8ef;
  --pa-green: #10b981;
  --pa-blue: #2f80ed;
  --pa-amber: #f59e0b;
  --pa-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
  --pa-shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.04);
  background: #ffffff !important;
  color: var(--pa-text) !important;
}

.platform-workspace-body .platform-shell {
  grid-template-columns: 292px minmax(0, 1fr) !important;
  background:
    linear-gradient(90deg, #ffffff 0 292px, #f8fafc 292px 293px, #ffffff 293px 100%) !important;
}

.platform-workspace-body .platform-sidebar {
  margin: 0 !important;
  width: 292px;
  height: 100vh !important;
  border: 0 !important;
  border-right: 1px solid #eef2f6 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 16px;
}

.platform-workspace-body .platform-sidebar__header {
  height: 78px;
  padding: 0 !important;
  border-bottom: 0 !important;
  display: flex;
  align-items: center;
}

.platform-workspace-body .platform-brand {
  gap: 10px;
}

.platform-workspace-body .platform-brand__logo {
  width: 34px;
  height: 34px;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-brand__text {
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}

.platform-workspace-body .platform-brand__text strong {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.platform-workspace-body .platform-brand__text small {
  color: #02b875 !important;
  font-size: 0.98rem;
  font-weight: 800;
}

.platform-workspace-body .platform-sidebar__nav {
  gap: 8px;
  padding-top: 8px;
}

.platform-workspace-body .platform-nav-link {
  min-height: 50px;
  padding: 0 14px !important;
  border-radius: 13px !important;
  color: #667085 !important;
  font-weight: 600;
}

.platform-workspace-body .platform-nav-link__icon {
  width: 22px;
  height: 22px;
}

.platform-workspace-body .platform-nav-link:hover {
  background: #f7fbf9 !important;
  border-color: transparent !important;
}

.platform-workspace-body .platform-nav-link.is-active {
  color: #049664 !important;
  background: linear-gradient(90deg, #e8f8ef, #f4fbf7) !important;
  border-color: transparent !important;
}

.platform-workspace-body .platform-sidebar__footer {
  left: 16px;
  right: 16px;
  bottom: 22px;
  padding: 18px !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.platform-workspace-body .platform-main {
  padding: 0 !important;
  background: #ffffff;
}

.platform-workspace-body .platform-topbar {
  min-height: 78px;
  border: 0 !important;
  border-bottom: 1px solid #eef2f6 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  padding: 0 34px;
}

.platform-workspace-body .platform-search {
  width: min(540px, 42vw);
  height: 50px;
  border: 1px solid #e5ebf1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

.platform-workspace-body .platform-search input {
  font-size: 0.95rem;
}

.platform-workspace-body .platform-search__shortcut {
  border: 0 !important;
  background: transparent !important;
  color: #98a2b3 !important;
}

.platform-workspace-body .platform-topbar__right {
  gap: 18px;
}

.platform-workspace-body .platform-icon-button {
  width: 42px;
  height: 42px;
  border: 0 !important;
  background: transparent !important;
}

.platform-workspace-body .platform-user-chip {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  gap: 11px;
}

.platform-workspace-body .platform-user-chip__avatar {
  width: 42px;
  height: 42px;
  background: #eef7f2 !important;
  color: #049664 !important;
}

.platform-workspace-body .platform-quick-button {
  min-height: 46px;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #02b875, #08a86f) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(2, 184, 117, 0.18) !important;
}

.platform-workspace-body .platform-content {
  max-width: 1640px;
  margin: 0 auto;
  padding: 26px 34px 40px !important;
}

.platform-workspace-body .platform-page-head {
  margin-bottom: 22px !important;
}

.platform-workspace-body .platform-page-head h1,
.platform-workspace-body .page-head h1,
.platform-workspace-body .section-heading h2 {
  color: #101828 !important;
  font-size: 2rem !important;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.platform-workspace-body .platform-page-head p,
.platform-workspace-body .page-head p,
.platform-workspace-body .section-heading p {
  color: #667085 !important;
  font-size: 0.98rem;
}

.platform-workspace-body .platform-panel,
.platform-workspace-body .panel-card,
.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .platform-record-card,
.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-stores-table-card,
.platform-workspace-body .platform-users-table-card,
.platform-workspace-body .platform-finance-table-card,
.platform-workspace-body .platform-plan-card,
.platform-workspace-body .platform-plan-form,
.platform-workspace-body .platform-plan-module-card,
.platform-workspace-body .crm-summary-card,
.platform-workspace-body .crm-kanban-column,
.platform-workspace-body .crm-lead-card {
  border: 1px solid #e7edf3 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.035) !important;
  backdrop-filter: none !important;
}

.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .crm-summary-card {
  min-height: 132px;
  padding: 22px !important;
}

.platform-workspace-body .platform-kpi-card__icon,
.platform-workspace-body .platform-store-summary-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 12px !important;
  background: #e8f8ef !important;
  color: #02a86d !important;
}

.platform-workspace-body .platform-kpi-card__body strong,
.platform-workspace-body .platform-store-summary-card__body strong,
.platform-workspace-body .crm-summary-card strong {
  color: #101828 !important;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.platform-workspace-body .platform-kpi-card__body span,
.platform-workspace-body .platform-store-summary-card__body span,
.platform-workspace-body .crm-summary-card span,
.platform-workspace-body .platform-kpi-card__body small,
.platform-workspace-body .platform-store-summary-card__body small,
.platform-workspace-body .crm-summary-card small {
  color: #667085 !important;
}

.platform-workspace-body .btn-primary,
.platform-workspace-body .mc-service-workspace .btn-primary {
  background: linear-gradient(135deg, #02b875, #08a86f) !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  box-shadow: 0 14px 24px rgba(2, 184, 117, 0.16) !important;
}

.platform-workspace-body .btn-secondary,
.platform-workspace-body .platform-filter-more,
.platform-workspace-body .platform-bulk-button,
.platform-workspace-body .platform-page-button,
.platform-workspace-body .mc-service-workspace .btn-secondary {
  background: #ffffff !important;
  border: 1px solid #e5ebf1 !important;
  color: #344054 !important;
  border-radius: 9px !important;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select,
.platform-workspace-body .platform-filter-field input,
.platform-workspace-body .platform-filter-field select,
.platform-workspace-body .mc-service-workspace input,
.platform-workspace-body .mc-service-workspace textarea,
.platform-workspace-body .mc-service-workspace select {
  min-height: 46px;
  border: 1px solid #e5ebf1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #101828 !important;
}

.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .crm-leads-filters {
  padding: 16px !important;
}

.platform-workspace-body .platform-table__head,
.platform-workspace-body .platform-stores-table__head,
.platform-workspace-body .platform-users-table__head,
.platform-workspace-body .platform-finance-table__head,
.platform-workspace-body .products-table-head {
  background: #f9fbfd !important;
  color: #667085 !important;
  border-radius: 9px;
}

.platform-workspace-body .platform-table__row,
.platform-workspace-body .platform-stores-row,
.platform-workspace-body .platform-users-row,
.platform-workspace-body .platform-finance-row,
.platform-workspace-body .customer-row,
.platform-workspace-body .products-row,
.platform-workspace-body .platform-alert-item {
  background: #ffffff !important;
  border-color: #eef2f6 !important;
}

.platform-workspace-body .platform-stores-row:hover,
.platform-workspace-body .platform-users-row:hover,
.platform-workspace-body .platform-finance-row:hover {
  background: #f9fbfd !important;
}

.platform-workspace-body .platform-status-pill,
.platform-workspace-body .platform-panel__tag,
.platform-workspace-body .platform-link,
.platform-workspace-body .crm-pill,
.platform-workspace-body .crm-badge {
  background: #e8f8ef !important;
  color: #049664 !important;
  border-color: transparent !important;
}

.platform-workspace-body .crm-board {
  gap: 16px !important;
}

.platform-workspace-body .mc-service-workspace {
  margin: -26px -34px -40px !important;
  padding: 26px 34px 40px !important;
  background: #ffffff !important;
  color: #101828 !important;
}

.platform-workspace-body .mc-service-workspace .crm-chat {
  border: 1px solid #e7edf3 !important;
  background: #efeae2 !important;
}

.platform-workspace-body .mc-service-workspace .crm-message-stream {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%) 0 0 / 30px 30px,
    #efeae2 !important;
}

.platform-workspace-body .mc-service-workspace .crm-message span {
  background: #ffffff !important;
  color: #101828 !important;
}

.platform-workspace-body .mc-service-workspace .crm-message.is-out span {
  background: #dcf8c6 !important;
  color: #1f2937 !important;
}

.platform-workspace-body .crm-kanban-column {
  border-radius: 12px !important;
  box-shadow: none !important;
}

.platform-workspace-body .crm-kanban-column.is-amber {
  border-color: #f7c56b !important;
}

.platform-workspace-body .crm-kanban-column.is-blue {
  border-color: #93c5fd !important;
}

.platform-workspace-body .crm-kanban-column header span,
.platform-workspace-body .crm-funnel-list i,
.platform-workspace-body .platform-chart-legend i,
.platform-workspace-body .platform-stores-row__plan i,
.platform-workspace-body .platform-stores-donut__legend i,
.platform-workspace-body .platform-status-ring__legend i {
  background: #02b875 !important;
}

.platform-workspace-body .crm-kanban-column.is-amber header span,
.platform-workspace-body .crm-funnel-list i.is-amber {
  background: #f59e0b !important;
}

.platform-workspace-body .crm-kanban-column.is-blue header span,
.platform-workspace-body .crm-funnel-list i.is-blue {
  background: #2f80ed !important;
}

.platform-workspace-body .platform-stores-row__manager-avatar,
.platform-workspace-body .platform-stores-row__logo,
.platform-workspace-body .platform-users-row__avatar,
.platform-workspace-body .crm-avatar {
  background: #e8f8ef !important;
  color: #049664 !important;
}

@media (max-width: 1100px) {
  .platform-workspace-body .platform-shell {
    grid-template-columns: 1fr !important;
    background: #ffffff !important;
  }

  .platform-workspace-body .platform-sidebar {
    width: auto;
    height: auto !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
  }
}

/* MenuCliquei Admin White Premium - final system layer */
.platform-workspace-body {
  --mcq-page: #f8f7f5;
  --mcq-soft: #fbfaf8;
  --mcq-soft-2: #f3f2ef;
  --mcq-card: #ffffff;
  --mcq-border: #ebe8e2;
  --mcq-border-2: #e2ded7;
  --mcq-text: #111827;
  --mcq-heading: #0f172a;
  --mcq-muted: #667085;
  --mcq-faint: #98a2b3;
  --mcq-green: #02b875;
  --mcq-green-dark: #039564;
  --mcq-green-soft: #e7f8ef;
  --mcq-blue: #2f80ed;
  --mcq-blue-soft: #eaf3ff;
  --mcq-amber: #f59e0b;
  --mcq-amber-soft: #fff5df;
  --mcq-red: #ef4444;
  --mcq-red-soft: #fff0f0;
  --mcq-radius: 14px;
  --mcq-radius-lg: 18px;
  --mcq-shadow: 0 18px 45px rgba(35, 31, 26, 0.055);
  --mcq-shadow-soft: 0 8px 24px rgba(35, 31, 26, 0.035);
  min-height: 100vh;
  background: var(--mcq-page) !important;
  color: var(--mcq-text) !important;
}

.platform-workspace-body .platform-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr) !important;
  position: relative;
  background:
    linear-gradient(90deg, #ffffff 0 278px, var(--mcq-border-2) 278px 279px, transparent 279px 100%),
    var(--mcq-page) !important;
  background-size: auto;
}

.platform-workspace-body .platform-shell::before {
  content: none !important;
}

.platform-workspace-body .platform-sidebar {
  position: sticky;
  top: 0;
  width: 278px !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-right: 1px solid var(--mcq-border-2) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow-y: auto;
}

.platform-workspace-body .platform-sidebar__header {
  height: 74px !important;
  padding: 0 !important;
  border: 0 !important;
}

.platform-workspace-body .platform-brand {
  height: 74px;
  display: flex;
  align-items: center;
}

.platform-workspace-body .platform-brand__logo {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-brand__text {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.platform-workspace-body .platform-brand__text strong {
  color: var(--mcq-heading) !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.platform-workspace-body .platform-brand__text small {
  color: var(--mcq-green) !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

.platform-workspace-body .platform-sidebar__nav {
  gap: 7px !important;
  padding-top: 10px !important;
}

.platform-workspace-body .platform-nav-link {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #667085 !important;
  font-size: 0.96rem;
  font-weight: 600 !important;
}

.platform-workspace-body .platform-nav-link__icon {
  width: 22px !important;
  height: 22px !important;
  color: inherit !important;
}

.platform-workspace-body .platform-nav-link:hover {
  background: #f7faf9 !important;
  color: var(--mcq-heading) !important;
}

.platform-workspace-body .platform-nav-link.is-active {
  background: linear-gradient(90deg, #e8f8ef 0%, #f4fbf7 100%) !important;
  color: var(--mcq-green-dark) !important;
}

.platform-workspace-body .platform-sidebar__footer {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 78px !important;
  padding: 16px !important;
  border: 1px solid var(--mcq-border) !important;
  border-radius: var(--mcq-radius) !important;
  background: #ffffff !important;
  box-shadow: var(--mcq-shadow-soft) !important;
}

.platform-workspace-body .platform-sidebar__footer::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mcq-green), #0bd28a);
}

.platform-workspace-body .platform-sidebar__footer strong {
  color: var(--mcq-heading) !important;
  font-size: 0.9rem;
}

.platform-workspace-body .platform-sidebar__footer span,
.platform-workspace-body .platform-sidebar__footer small,
.platform-workspace-body .platform-sidebar__footer a {
  color: var(--mcq-muted) !important;
  font-size: 0.82rem;
}

.platform-workspace-body .platform-main {
  min-width: 0;
  position: relative;
  background: transparent !important;
}

.platform-workspace-body .platform-topbar {
  height: 74px !important;
  min-height: 74px !important;
  padding: 0 34px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mcq-border-2) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-search {
  width: min(520px, 45vw) !important;
  height: 50px !important;
  border: 1px solid var(--mcq-border-2) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.025) !important;
}

.platform-workspace-body .platform-search input {
  color: var(--mcq-text) !important;
  font-size: 0.95rem;
}

.platform-workspace-body .platform-search input::placeholder {
  color: var(--mcq-faint) !important;
}

.platform-workspace-body .platform-search__icon,
.platform-workspace-body .platform-search__shortcut {
  color: var(--mcq-faint) !important;
}

.platform-workspace-body .platform-search__shortcut {
  border: 0 !important;
  background: transparent !important;
}

.platform-workspace-body .platform-topbar__right {
  gap: 18px !important;
}

.platform-workspace-body .platform-icon-button {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--mcq-muted) !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-icon-button__badge {
  background: var(--mcq-green) !important;
  color: #ffffff !important;
}

.platform-workspace-body .platform-user-chip {
  min-height: 48px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-user-chip__avatar {
  width: 44px !important;
  height: 44px !important;
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green-dark) !important;
}

.platform-workspace-body .platform-user-chip__content strong {
  color: var(--mcq-heading) !important;
  font-size: 0.95rem;
}

.platform-workspace-body .platform-user-chip__content span,
.platform-workspace-body .platform-user-chip__caret {
  color: var(--mcq-muted) !important;
}

.platform-workspace-body .platform-quick-button {
  height: 46px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--mcq-green), var(--mcq-green-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(2, 184, 117, 0.18) !important;
}

.platform-workspace-body .platform-quick-menu {
  border: 1px solid var(--mcq-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: var(--mcq-shadow) !important;
}

.platform-workspace-body .platform-quick-menu a {
  color: var(--mcq-text) !important;
}

.platform-workspace-body .platform-quick-menu a:hover {
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green-dark) !important;
}

.platform-workspace-body .platform-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 34px 42px !important;
}

.platform-workspace-body .platform-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px !important;
}

.platform-workspace-body .platform-page-head h1,
.platform-workspace-body .page-head h1,
.platform-workspace-body .section-heading h2 {
  margin: 0 0 6px !important;
  color: var(--mcq-heading) !important;
  font-size: 2rem !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
}

.platform-workspace-body .platform-page-head p,
.platform-workspace-body .page-head p,
.platform-workspace-body .section-heading p,
.platform-workspace-body .placeholder-note {
  color: var(--mcq-muted) !important;
  font-size: 0.98rem !important;
}

.platform-workspace-body .platform-panel,
.platform-workspace-body .panel-card,
.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .platform-record-card,
.platform-workspace-body .customers-filter-panel,
.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-stores-table-card,
.platform-workspace-body .platform-users-table-card,
.platform-workspace-body .platform-finance-table-card,
.platform-workspace-body .platform-plan-card,
.platform-workspace-body .platform-plan-form,
.platform-workspace-body .platform-plan-module-card,
.platform-workspace-body .crm-summary-card,
.platform-workspace-body .crm-kanban-column,
.platform-workspace-body .crm-lead-card,
.platform-workspace-body .crm-side > .platform-panel {
  border: 1px solid var(--mcq-border-2) !important;
  border-radius: var(--mcq-radius) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--mcq-text) !important;
  box-shadow: var(--mcq-shadow-soft) !important;
  backdrop-filter: none !important;
}

.platform-workspace-body .platform-panel {
  padding: 20px !important;
}

.platform-workspace-body .platform-panel__head h2,
.platform-workspace-body strong,
.platform-workspace-body .products-table-body strong {
  color: var(--mcq-heading) !important;
}

.platform-workspace-body .platform-panel__head p,
.platform-workspace-body span,
.platform-workspace-body small,
.platform-workspace-body .products-table-body span {
  color: var(--mcq-muted);
}

.platform-workspace-body .platform-kpi-row,
.platform-workspace-body .platform-store-summary-row,
.platform-workspace-body .crm-summary-row {
  gap: 16px !important;
}

.platform-workspace-body .platform-kpi-card,
.platform-workspace-body .platform-store-summary-card,
.platform-workspace-body .crm-summary-card {
  min-height: 138px;
  padding: 22px !important;
}

.platform-workspace-body .platform-kpi-card__icon,
.platform-workspace-body .platform-store-summary-card__icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 12px !important;
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green) !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-kpi-card--amber .platform-kpi-card__icon,
.platform-workspace-body .platform-store-summary-card.is-amber .platform-store-summary-card__icon {
  background: var(--mcq-amber-soft) !important;
  color: var(--mcq-amber) !important;
}

.platform-workspace-body .platform-kpi-card--blue .platform-kpi-card__icon,
.platform-workspace-body .platform-store-summary-card.is-blue .platform-store-summary-card__icon,
.platform-workspace-body .platform-store-summary-card.is-sky .platform-store-summary-card__icon {
  background: var(--mcq-blue-soft) !important;
  color: var(--mcq-blue) !important;
}

.platform-workspace-body .platform-kpi-card__body strong,
.platform-workspace-body .platform-store-summary-card__body strong,
.platform-workspace-body .crm-summary-card strong {
  color: var(--mcq-heading) !important;
  font-size: 2rem !important;
  letter-spacing: -0.04em;
}

.platform-workspace-body input,
.platform-workspace-body textarea,
.platform-workspace-body select,
.platform-workspace-body .platform-filter-field input,
.platform-workspace-body .platform-filter-field select,
.platform-workspace-body .mc-service-workspace input,
.platform-workspace-body .mc-service-workspace textarea,
.platform-workspace-body .mc-service-workspace select {
  min-height: 46px;
  border: 1px solid var(--mcq-border-2) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: var(--mcq-text) !important;
  box-shadow: none !important;
}

.platform-workspace-body input::placeholder,
.platform-workspace-body textarea::placeholder {
  color: var(--mcq-faint) !important;
}

.platform-workspace-body .btn-primary,
.platform-workspace-body .mc-service-workspace .btn-primary {
  min-height: 46px;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--mcq-green), var(--mcq-green-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(2, 184, 117, 0.16) !important;
}

.platform-workspace-body .btn-secondary,
.platform-workspace-body .platform-filter-more,
.platform-workspace-body .platform-bulk-button,
.platform-workspace-body .platform-page-button,
.platform-workspace-body .mc-service-workspace .btn-secondary {
  min-height: 44px;
  border: 1px solid var(--mcq-border-2) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #344054 !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-stores-filters,
.platform-workspace-body .platform-users-filters,
.platform-workspace-body .platform-finance-filters,
.platform-workspace-body .crm-leads-filters {
  padding: 16px !important;
}

.platform-workspace-body .platform-filter-field span {
  color: var(--mcq-muted) !important;
}

.platform-workspace-body .platform-table__head,
.platform-workspace-body .platform-stores-table__head,
.platform-workspace-body .platform-users-table__head,
.platform-workspace-body .platform-finance-table__head,
.platform-workspace-body .products-table-head {
  color: var(--mcq-muted) !important;
  background: #f7f6f3 !important;
  border-radius: 10px !important;
}

.platform-workspace-body .platform-table__row,
.platform-workspace-body .platform-stores-row,
.platform-workspace-body .platform-users-row,
.platform-workspace-body .platform-finance-row,
.platform-workspace-body .customer-row,
.platform-workspace-body .products-row,
.platform-workspace-body .platform-alert-item {
  border-color: var(--mcq-border) !important;
  background: #ffffff !important;
}

.platform-workspace-body .platform-stores-row:hover,
.platform-workspace-body .platform-users-row:hover,
.platform-workspace-body .platform-finance-row:hover,
.platform-workspace-body .customer-row:hover,
.platform-workspace-body .products-row:hover {
  background: #fbfcfd !important;
}

.platform-workspace-body .platform-status-pill,
.platform-workspace-body .platform-panel__tag,
.platform-workspace-body .platform-link,
.platform-workspace-body .crm-pill,
.platform-workspace-body .crm-badge {
  border: 0 !important;
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green-dark) !important;
}

.platform-workspace-body .platform-stores-row__manager-avatar,
.platform-workspace-body .platform-stores-row__logo,
.platform-workspace-body .platform-users-row__avatar,
.platform-workspace-body .crm-avatar {
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green-dark) !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-chart-legend i,
.platform-workspace-body .platform-stores-row__plan i,
.platform-workspace-body .platform-stores-donut__legend i,
.platform-workspace-body .platform-status-ring__legend i,
.platform-workspace-body .crm-kanban-column header span,
.platform-workspace-body .crm-funnel-list i {
  background: var(--mcq-green) !important;
}

.platform-workspace-body .crm-kanban-column.is-amber header span,
.platform-workspace-body .crm-funnel-list i.is-amber {
  background: var(--mcq-amber) !important;
}

.platform-workspace-body .crm-kanban-column.is-blue header span,
.platform-workspace-body .crm-funnel-list i.is-blue {
  background: var(--mcq-blue) !important;
}

.platform-workspace-body .crm-kanban-column {
  box-shadow: none !important;
}

.platform-workspace-body .crm-kanban-column.is-green,
.platform-workspace-body .crm-kanban-column:first-child {
  border-color: rgba(2, 184, 117, 0.55) !important;
}

.platform-workspace-body .crm-kanban-column.is-amber {
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.platform-workspace-body .crm-kanban-column.is-blue {
  border-color: rgba(47, 128, 237, 0.5) !important;
}

.platform-workspace-body .crm-lead-card {
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.035) !important;
}

.platform-workspace-body .mc-service-workspace {
  margin: -26px -34px -42px !important;
  padding: 26px 34px 42px !important;
  background: transparent !important;
}

.platform-workspace-body .mc-service-workspace .crm-chat {
  background: #efeae2 !important;
  border: 1px solid var(--mcq-border) !important;
  overflow: hidden;
}

.platform-workspace-body .mc-service-workspace .crm-chat-head,
.platform-workspace-body .mc-service-workspace .crm-reply-box {
  background: #ffffff !important;
}

.platform-workspace-body .mc-service-workspace .crm-message-stream {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.24) 25%, transparent 25%) 0 0 / 30px 30px,
    #efeae2 !important;
}

.platform-workspace-body .mc-service-workspace .crm-message span {
  background: #ffffff !important;
  color: var(--mcq-text) !important;
  border: 0 !important;
}

.platform-workspace-body .mc-service-workspace .crm-message.is-out span {
  background: #dcf8c6 !important;
  color: var(--mcq-text) !important;
}

.platform-workspace-body .platform-stores-donut__center,
.platform-workspace-body .platform-status-ring__center {
  background: #ffffff !important;
}

.platform-workspace-body .alert-success,
.platform-workspace-body .platform-alert.alert-success {
  border-color: rgba(2, 184, 117, 0.18) !important;
  background: var(--mcq-green-soft) !important;
  color: var(--mcq-green-dark) !important;
}

.platform-workspace-body .alert-error,
.platform-workspace-body .platform-alert.alert-error {
  border-color: rgba(239, 68, 68, 0.18) !important;
  background: var(--mcq-red-soft) !important;
  color: var(--mcq-red) !important;
}

@media (max-width: 1100px) {
  .platform-workspace-body .platform-shell {
    grid-template-columns: 1fr !important;
  }

  .platform-workspace-body .platform-sidebar {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--mcq-border) !important;
  }

  .platform-workspace-body .platform-sidebar__footer {
    position: static !important;
    margin-top: 16px;
  }
}
/* Dashboard recent stores cleanup */
.platform-workspace-body .platform-panel--recent-stores {
  border: 1px solid var(--mcq-border-2) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--mcq-shadow-soft) !important;
  padding: 20px !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head {
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--mcq-border) !important;
  margin-bottom: 0 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head h2 {
  color: var(--mcq-heading) !important;
  font-size: 1.12rem !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head h2,
.platform-workspace-body .platform-panel--recent-stores .platform-panel__head p {
  font-size: 0 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head h2::after {
  content: "Lojas recentes";
  font-size: 1.12rem;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head p {
  color: var(--mcq-muted) !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-panel__head p::after {
  content: "\00daltimos cadastros ou lojas mais recentes da opera\00e7\00e3o";
  font-size: 0.92rem;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table {
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__head {
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid var(--mcq-border) !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__head div:nth-child(2) {
  font-size: 0 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__head div:nth-child(6) {
  font-size: 0 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__head div:nth-child(2)::after {
  content: "Empreendedor";
  font-size: 0.8rem;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__head div:nth-child(6)::after {
  content: "\00daltimo acesso";
  font-size: 0.8rem;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__row {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--mcq-border) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__row:last-child {
  border-bottom: 0 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__row:hover {
  background: #fbfaf8 !important;
}

.platform-workspace-body .platform-panel--recent-stores .platform-table__strong,
.platform-workspace-body .platform-panel--recent-stores .platform-table__row > div:nth-child(2),
.platform-workspace-body .platform-panel--recent-stores .platform-table__row > div:nth-child(3),
.platform-workspace-body .platform-panel--recent-stores .platform-table__row > div:nth-child(5),
.platform-workspace-body .platform-panel--recent-stores .platform-table__row > div:nth-child(6) {
  color: #344054 !important;
  font-weight: 600 !important;
}

.platform-workspace-body .platform-dashboard-lower .platform-stack > .platform-panel:last-child {
  display: none !important;
}

.platform-workspace-body .platform-page-head .platform-quick-button span {
  font-size: 0 !important;
}

.platform-workspace-body .platform-page-head .platform-quick-button span::after {
  content: "+ A\00e7\00e3o r\00e1pida";
  font-size: 0.95rem;
}

.platform-workspace-body .platform-page-head .platform-quick-menu a:last-child {
  font-size: 0 !important;
}

.platform-workspace-body .platform-page-head .platform-quick-menu a:last-child::after {
  content: "Ver relat\00f3rios";
  font-size: 0.92rem;
}
