:root {
  --sa-primary: #0D50AA;
  --sa-primary-hover: #0B4596;
  --sa-primary-light: #2F8CFF;
  --sa-cyan: #35D4FF;
  --sa-navy: #10233F;
  --sa-navy-dark: #0B2348;
  --sa-bg: #F5FAFF;
  --sa-surface: #FFFFFF;
  --sa-border: #D8E8FA;
  --sa-muted: #7E96B8;
  --sa-success: #19B980;
  --sa-warning: #F5A524;
  --sa-danger: #E5484D;
  --sa-active-soft: #EAF4FF;
  --sa-shadow: 0 8px 24px rgba(13, 37, 76, 0.06);
  --sa-shadow-lg: 0 20px 60px rgba(13, 37, 76, 0.14);
  --sa-radius: 16px;
  --sa-focus-ring: 0 0 0 4px rgba(13, 80, 170, 0.10);

  --brand: var(--sa-primary);
  --brand-dark: var(--sa-navy-dark);
  --brand-mid: var(--sa-primary-light);
  --brand-soft: var(--sa-active-soft);
  --brand-light: var(--sa-bg);
  --ink: var(--sa-navy);
  --ink-soft: var(--sa-muted);
  --bg: var(--sa-bg);
  --surface: var(--sa-surface);
  --line: var(--sa-border);
  --shadow: var(--sa-shadow);
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.vendor-app-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sa-bg);
  min-height: 100vh;
}

body.vendor-menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.logo-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand-mid), #60a5fa);
  display: inline-block;
}

.vendor-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.vendor-sidebar {
  background: var(--sa-surface);
  color: var(--sa-navy);
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sa-border);
  box-shadow: 4px 0 24px rgba(13, 37, 76, 0.04);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 60;
}

.vendor-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.vendor-sidebar-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 16px;
  border-bottom: 1px solid #EEF3F9;
}

.vendor-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.vendor-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.vendor-sidebar-title {
  color: var(--sa-navy);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
}

.vendor-sidebar-sub {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--sa-muted);
}

.vendor-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: #fff;
  color: var(--sa-navy);
  cursor: pointer;
  padding: 0;
}

.vendor-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.vendor-nav-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.vendor-nav-row a { flex: 1; min-width: 0; }

.vendor-nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  color: #2F425C;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vendor-nav-list a:hover {
  background: #F5F8FC;
  color: var(--sa-navy);
}

.vendor-nav-list a.active {
  background: #F3F7FC;
  color: var(--sa-navy);
  box-shadow: none;
  font-weight: 700;
}

.vendor-sidebar .nav-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #7C93B2, #5B7394);
  color: #fff;
  box-shadow: 0 6px 12px rgba(13, 37, 76, 0.1);
}

.vendor-sidebar .nav-icon svg {
  width: 16px;
  height: 16px;
}

.vendor-nav-list a[data-nav="dashboard"] .nav-icon { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.vendor-nav-list a[data-nav="news"] .nav-icon { background: linear-gradient(135deg, #FBBF24, #D97706); }
.vendor-nav-list a[data-nav="guide"] .nav-icon { background: linear-gradient(135deg, #38BDF8, #0369A1); }
.vendor-nav-list a[data-nav="orders"] .nav-icon { background: linear-gradient(135deg, #34D399, #059669); }
.vendor-nav-list a[data-nav="finances"] .nav-icon { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.vendor-nav-list a[data-nav="catalog"] .nav-icon { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.vendor-nav-list a[data-nav="marketing"] .nav-icon { background: linear-gradient(135deg, #F472B6, #DB2777); }
.vendor-nav-list a[data-nav="stores"] .nav-icon { background: linear-gradient(135deg, #FB923C, #EA580C); }
.vendor-nav-list a[data-nav="delivery"] .nav-icon { background: linear-gradient(135deg, #22D3EE, #0284C7); }
.vendor-nav-list a[data-nav="team"] .nav-icon { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.vendor-nav-list a[data-nav="one_c"] .nav-icon { background: linear-gradient(135deg, #38BDF8, #0369A1); }
.vendor-nav-list a[data-nav="settings"] .nav-icon { background: linear-gradient(135deg, #94A3B8, #475569); }
.vendor-nav-list a[data-nav="returns"] .nav-icon { background: linear-gradient(135deg, #F87171, #DC2626); }
.vendor-nav-list a[data-nav="reports"] .nav-icon { background: linear-gradient(135deg, #38BDF8, #0D50AA); }

.vendor-nav-list a:hover .nav-icon,
.vendor-nav-list a.active .nav-icon {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(13, 37, 76, 0.16);
}

.vendor-nav-grip {
  flex: 0 0 22px;
  width: 22px;
  height: 32px;
  margin-left: 2px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #9AADC4;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.vendor-nav-grip:hover { background: #EEF3F8; color: #4B607C; }
.vendor-nav-grip svg { fill: currentColor; }
.vendor-nav-list li.is-dragging { opacity: 0.72; }
.vendor-nav-list li.is-dragging .vendor-nav-grip { cursor: grabbing; }
.vendor-nav-list.is-sorting a { pointer-events: none; }
.vendor-nav-hint {
  margin: 8px 8px 0;
  color: #8A9BB2;
  font-size: 0.7rem;
  line-height: 1.35;
}

.vendor-nav-list a.active::before {
  display: none;
}

.vendor-nav-list a span {
  flex: 1;
  min-width: 0;
}

.vendor-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sa-danger);
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.vendor-sidebar-footer {
  margin-top: auto;
  padding: 14px 4px 2px;
  border-top: 1px solid #EEF3F9;
}

.vendor-user-chip {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  min-width: 0;
}

.vendor-user-chip strong,
.vendor-user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-user-chip strong {
  color: var(--sa-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.vendor-user-chip span,
.vendor-logout-link {
  font-size: 0.8rem;
  color: var(--sa-muted);
}

.vendor-logout-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.vendor-logout-link:hover {
  color: var(--sa-primary);
}

.vendor-mobile-logout {
  color: var(--sa-primary);
  font-weight: 600;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.vendor-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.vendor-logout-modal[hidden] {
  display: none !important;
}

.vendor-logout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.vendor-logout-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 16px;
  box-shadow: var(--sa-shadow);
  padding: 22px 22px 18px;
}

.vendor-logout-modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--sa-navy);
}

.vendor-logout-modal-card p {
  margin: 0 0 18px;
  color: var(--sa-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.vendor-logout-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.vendor-logout-open {
  overflow: hidden;
}

.vendor-content-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vendor-mobile-bar,
.vendor-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.96);
  color: var(--sa-navy);
  border-bottom: 1px solid var(--sa-border);
  box-shadow: var(--sa-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.vendor-topbar-title,
.vendor-mobile-brand {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sa-border);
  background: #fff;
  color: var(--sa-navy);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.vendor-mobile-brand {
  flex: 1;
  min-width: 0;
  display: grid;
}

.vendor-mobile-brand strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-mobile-brand span {
  font-size: 0.75rem;
  opacity: 0.75;
}

.vendor-sidebar-backdrop {
  display: none;
}

.vendor-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 40px;
}

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

.vendor-page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-dark);
}

.vendor-page-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

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

.vendor-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.vendor-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vendor-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand-dark);
}

.vendor-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.vendor-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.vendor-panel-lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.vendor-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.vendor-alert-error {
  background: #fdecea;
  color: #b42318;
}

.vendor-alert-ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.vendor-note-card {
  margin: 0 0 18px;
  padding: 18px 20px 16px;
  border: 1px solid #D6E4F6;
  border-left: 4px solid var(--sa-primary);
  border-radius: 14px;
  background: #F7FBFF;
}

.vendor-note-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--sa-navy);
}

.vendor-note-card > p {
  margin: 0 0 12px;
  color: #3D4F6A;
  font-size: 0.92rem;
  line-height: 1.5;
}

.vendor-note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.vendor-note-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E8EEF6;
  color: #2F425C;
  font-size: 0.9rem;
  line-height: 1.45;
}

.vendor-note-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sa-navy);
}

.vendor-note-list a {
  color: var(--sa-primary);
  font-weight: 700;
}

.vendor-note-list a:hover {
  text-decoration: underline;
}

.vendor-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
}

.vendor-category-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--brand-light);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.25;
}

.vendor-category-chip:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.vendor-category-chip input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.vendor-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vendor-search-row .vendor-input {
  flex: 1;
  min-width: 200px;
}

.vendor-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

.vendor-input:focus {
  outline: none;
  border-color: var(--sa-primary);
  box-shadow: var(--sa-focus-ring);
}

.vendor-input-sm {
  padding: 10px 12px;
  font-size: 0.92rem;
}

.offer-table-wrap { overflow-x: auto; }

.offer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.offer-table th,
.offer-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.offer-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 700;
  background: var(--sa-bg);
}

.offer-table tbody tr:hover {
  background: #F8FBFF;
}

.offer-product-name {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.92rem;
  line-height: 1.35;
}

.offer-product-meta {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.offer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.offer-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.vendor-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--sa-primary);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(13, 80, 170, 0.18);
}

.btn-primary:hover { background: var(--sa-primary-hover); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--sa-border);
  color: var(--ink);
  border-radius: 14px;
}

.btn-ghost:hover {
  background: var(--sa-active-soft);
  border-color: rgba(13, 80, 170, 0.22);
}

.vendor-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.vendor-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
}

.vendor-empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* Public portal pages (home, login) */
.portal-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(53, 212, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(47, 140, 255, 0.32), transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 90%, rgba(13, 80, 170, 0.22), transparent 55%),
    linear-gradient(160deg, #0B2348 0%, #0D50AA 48%, #2F8CFF 100%);
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(40px, env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-shell {
  width: min(720px, 100%);
  margin: auto 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 232, 250, 0.9);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--sa-shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

.portal-shell-narrow { width: min(480px, 100%); }

.portal-form .vendor-input {
  height: 54px;
  border-radius: 14px;
}

.portal-form .btn-primary {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  justify-content: center;
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-dark);
}

.portal-shell h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--brand-dark);
}

.portal-lead { color: var(--ink-soft); margin: 0 0 24px; line-height: 1.5; }

.portal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.portal-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 111, 212, 0.35);
  box-shadow: 0 8px 24px rgba(12, 45, 107, 0.1);
}

.portal-icon { font-size: 1.6rem; }
.portal-card strong { display: block; margin-top: 8px; color: var(--brand-dark); }
.portal-card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.portal-link { display: inline-block; margin-top: 18px; color: var(--brand); font-weight: 700; }
.portal-back { color: var(--ink-soft); font-size: 0.88rem; }

.portal-form { display: grid; gap: 14px; }
.portal-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }

.geo-phone-block {
  display: grid;
  gap: 14px;
}

.geo-country-field { display: grid; gap: 8px; }
.geo-country-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sa-navy, #0c2d6b);
}
.geo-country-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.geo-country-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #D6E4F6;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.geo-country-tile:hover { border-color: #9DBBE0; }
.geo-country-tile.is-on {
  border-color: #0D50AA;
  background: #0D50AA;
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 80, 170, 0.2);
}
.geo-country-tile.is-on strong,
.geo-country-tile.is-on em { color: #fff; }
.geo-country-flag { font-size: 1.25rem; line-height: 1; }
.geo-country-copy { display: grid; gap: 1px; min-width: 0; }
.geo-country-copy strong {
  font-size: 0.84rem;
  line-height: 1.15;
  color: var(--sa-navy, #0c2d6b);
}
.portal-session-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #E8FBF3;
  color: #0B6B46;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}
.portal-session-note a { color: #0D50AA; }
.geo-country-copy em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B7F9C;
}
.geo-country-select-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-qr-box {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  text-align: center;
}
.portal-qr-box strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sa-navy, #0c2d6b);
  font-size: 0.88rem;
}
.portal-qr-box p {
  margin: 0 0 10px;
  color: #6B7F9C;
  font-size: 0.76rem;
  line-height: 1.4;
}
#qrLoginBox {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
#qrLoginHint {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  align-items: stretch;
}

.phone-input-group .phone-dial {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line, #d8e8fa);
  background: #f4f8fd;
  color: var(--brand-dark, #0c2d6b);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.phone-input-group .vendor-input {
  min-width: 0;
  letter-spacing: 0.04em;
}

.phone-hint {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.8rem;
  color: #64748b;
}

.phone-hint.is-ok { color: #15803d; }
.phone-hint.is-err { color: #b91c1c; }

.vendor-panel .geo-phone-block,
.vendor-panel .portal-form label,
.vendor-form .geo-phone-block {
  margin-bottom: 12px;
}

.portal-login-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 0 0 16px;
}

.portal-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.portal-auth-tab {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d8e8fa;
  background: #fff;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.portal-auth-tab.is-active {
  background: #0D50AA;
  border-color: #0D50AA;
  color: #fff;
}

.portal-role-cards {
  display: grid;
  gap: 10px;
}

.portal-role-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #d8e8fa;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.portal-role-card strong {
  color: #0c2d6b;
  font-size: 1.05rem;
}

.portal-role-card span {
  color: #64748b;
  font-size: 0.88rem;
}

.portal-role-card:hover {
  border-color: #0D50AA;
  box-shadow: 0 6px 18px rgba(13, 80, 170, 0.12);
}

/* Тестовые аккаунты на странице входа */
.portal-demo-box {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(13, 80, 170, 0.28);
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.portal-demo-box__head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.portal-demo-box__head strong {
  font-size: 0.92rem;
  color: var(--brand-dark);
}

.portal-demo-box__head span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.portal-demo-list {
  display: grid;
  gap: 8px;
}

.portal-demo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.portal-demo-card:hover,
.portal-demo-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(13, 80, 170, 0.35);
  box-shadow: 0 8px 20px rgba(13, 37, 76, 0.08);
}

.portal-demo-card--store:hover,
.portal-demo-card--store.is-selected {
  border-color: rgba(47, 140, 255, 0.45);
}

.portal-demo-card--supplier:hover,
.portal-demo-card--supplier.is-selected {
  border-color: rgba(25, 185, 128, 0.45);
}

.portal-demo-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  font-size: 1.2rem;
}

.portal-demo-card--supplier .portal-demo-card__icon {
  background: var(--sa-success-soft);
}

.portal-demo-card__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portal-demo-card__role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.portal-demo-card--supplier .portal-demo-card__role {
  color: var(--sa-success);
}

.portal-demo-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.portal-demo-card__creds {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.portal-demo-card__pass {
  font-weight: 700;
  color: var(--brand-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.portal-demo-card__sep {
  opacity: 0.5;
}

.portal-demo-card__action {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-demo-card--supplier .portal-demo-card__action {
  background: var(--sa-success-soft);
  color: #12845a;
}

@media (max-width: 420px) {
  .portal-demo-card {
    flex-wrap: wrap;
  }
  .portal-demo-card__action {
    width: 100%;
    text-align: center;
  }
}

.vendor-page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.vendor-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  vertical-align: middle;
}

.vendor-badge-own {
  background: #dcfce7;
  color: #166534;
}

.vendor-form-panel { max-width: 720px; }

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

.vendor-form-field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.vendor-form-field-wide { grid-column: 1 / -1; }

.vendor-field-error {
  color: #b91c1c;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .vendor-form-grid { grid-template-columns: 1fr; }
}

.store-group-list {
  display: grid;
  gap: 12px;
}

.store-group-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.store-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.store-group-desc {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.store-group-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.store-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.inline-form { display: inline; margin: 0; }

.btn-sm {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.btn-danger-text { color: #b91c1c; }

.vendor-price-tabs { padding-top: 18px; }

.vendor-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vendor-section-tabs {
  margin: 0 0 18px;
}

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

.pc-nav-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #D6E4F6;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(13, 37, 76, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pc-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 37, 76, 0.1);
}

.pc-nav-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.pc-nav-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-nav-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pc-nav-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--sa-navy);
}

.pc-nav-text em {
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6B7F9C;
  font-weight: 600;
}

.pc-nav-card.is-list .pc-nav-ico { background: #E6F0FF; color: #0D50AA; }
.pc-nav-card.is-add .pc-nav-ico { background: #E8FBF3; color: #0f7a55; }
.pc-nav-card.is-cats .pc-nav-ico { background: #FFF4E0; color: #9A6700; }
.pc-nav-card.is-xls .pc-nav-ico { background: #EEE8FF; color: #5B3CC4; }
.pc-nav-card.is-list { background: linear-gradient(180deg, #F7FBFF, #fff); }
.pc-nav-card.is-add { background: linear-gradient(180deg, #F4FDF8, #fff); }
.pc-nav-card.is-cats { background: linear-gradient(180deg, #FFF9EF, #fff); }
.pc-nav-card.is-xls {
  background: linear-gradient(180deg, #F6F2FF, #fff);
  border-color: #D4C8F5;
}

.pc-nav-card.is-on {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 37, 76, 0.14);
}

.pc-nav-card.is-on .pc-nav-text strong,
.pc-nav-card.is-on .pc-nav-text em { color: #fff; }
.pc-nav-card.is-on .pc-nav-ico { background: rgba(255,255,255,0.18); color: #fff; }
.pc-nav-card.is-list.is-on { background: #0D50AA; }
.pc-nav-card.is-add.is-on { background: #0f7a55; }
.pc-nav-card.is-cats.is-on { background: #9A6700; }
.pc-nav-card.is-xls.is-on { background: #5B3CC4; }

.pc-nav-tip {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  background: #5B3CC4;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 10px 18px rgba(91, 60, 196, 0.22);
  animation: pcTip 2.4s ease-in-out infinite;
}

.pc-nav-card.is-on .pc-nav-tip {
  background: #fff;
  color: #5B3CC4;
}

@media (max-width: 720px) {
  .pc-nav { grid-template-columns: 1fr; }
}

.vendor-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.vendor-tab:hover {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

.vendor-tab.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.vendor-tab.active:hover {
  color: #fff;
}

.vendor-tab-muted {
  border-style: dashed;
}

.vendor-tier-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.th-hint {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.api-key-full {
  display: inline-block;
  margin: 0 8px;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 8px;
  word-break: break-all;
  font-size: 0.85rem;
}

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

.api-endpoint-list div {
  display: grid;
  gap: 4px;
}

.api-endpoint-list span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.api-endpoint-list code,
.api-steps code {
  font-size: 0.84rem;
  word-break: break-all;
}

.api-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.api-subtitle {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.api-code {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #10233F;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

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

.payment-method-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.payment-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.pay-method-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pay-method-chip img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.payment-method-card input {
  margin-top: 4px;
}

.payment-method-card strong {
  display: block;
  color: var(--brand-dark);
}

.payment-method-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .vendor-shell { grid-template-columns: 1fr; }
  .vendor-mobile-bar,
  .vendor-topbar { display: flex; }

  .vendor-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 18px 14px 16px;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }

  .vendor-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 16px 0 40px rgba(13, 37, 76, 0.18);
  }

  .vendor-sidebar-close { display: inline-flex; }

  .vendor-sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 30, 71, 0.45);
    z-index: 50;
  }

  .vendor-nav-list a { min-height: 46px; }

  .vendor-main { padding: 20px 16px 32px; }
}

@media (max-width: 900px) {
  .vendor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vendor-category-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 640px) {
  .vendor-stats { grid-template-columns: 1fr; }
  .vendor-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-cards { grid-template-columns: 1fr; }
}

/* —— Orders —— */
.btn-link {
  color: var(--brand);
  font-weight: 600;
}

.vendor-order-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.vendor-order-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f1f6fd);
  border: 1px solid rgba(12, 45, 107, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.vendor-order-card:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 111, 212, 0.24);
  box-shadow: 0 10px 22px rgba(12, 45, 107, 0.08);
}

.vendor-order-card-main,
.vendor-order-card-side {
  display: grid;
  gap: 4px;
}

.vendor-order-card-side {
  justify-items: end;
  text-align: right;
}

.vendor-order-card-main strong,
.vendor-order-sum {
  color: var(--brand-dark);
}

.vendor-order-card span,
.vendor-order-card time {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.vendor-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}

.vendor-chip-new,
.vendor-chip-draft { background: #fff7ed; color: #c2410c; }
.vendor-chip-confirmed,
.vendor-chip-delivered,
.vendor-chip-accepted { background: #EAF4FF; color: #0B2348; }
.vendor-chip-assembling,
.vendor-chip-shipped { background: #e0f2fe; color: #0369a1; }
.vendor-chip-cancelled { background: #fdecea; color: #E5484D; }
.vendor-chip-pay { background: #f1f5f9; color: #7E96B8; }

.order-detail { display: grid; gap: 16px; }
.vendor-order-detail .btn-link { width: fit-content; }

.order-detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0B2348 0%, #0D50AA 62%, #2F8CFF 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.order-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.order-detail-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.order-detail-lead {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.order-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.order-detail-total-card {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.order-detail-total-card span,
.order-detail-total-card small { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.order-detail-total-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.order-side { display: grid; gap: 14px; }

.order-panel {
  background: #fff;
  border: 1px solid rgba(12, 45, 107, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.order-panel-head { margin-bottom: 12px; }
.order-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-dark);
}
.order-panel-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.order-items { display: grid; gap: 8px; }

.order-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f1f6fd);
  border: 1px solid rgba(12, 45, 107, 0.06);
}

.order-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.order-item-thumb.media-no-photo {
  object-fit: contain;
  padding: 4px;
}

.order-item-main { display: grid; gap: 4px; min-width: 0; }
.order-item-main strong { color: var(--brand-dark); }
.order-item-main span { color: var(--ink-soft); font-size: 0.84rem; }
.order-item-sum { font-weight: 700; white-space: nowrap; }

.order-meta { display: grid; gap: 12px; margin: 0; }
.order-meta dt { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 2px; }
.order-meta dd { margin: 0; }
.order-meta small { display: block; margin-top: 4px; color: var(--ink-soft); }

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

.order-action-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.order-timeline { display: grid; gap: 12px; }
.order-timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}
.order-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 111, 212, 0.12);
}
.order-timeline-item p { margin: 0 0 4px; }
.order-timeline-from { color: var(--ink-soft); font-weight: 400; font-size: 0.86rem; }
.order-timeline-item small { color: var(--ink-soft); }

.order-messages { display: grid; gap: 8px; }
.order-message {
  padding: 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid rgba(12, 45, 107, 0.06);
}
.order-message strong { margin-right: 8px; color: var(--brand-dark); }
.order-message span { color: var(--ink-soft); font-size: 0.8rem; }
.order-message p { margin: 6px 0 0; }

@media (max-width: 980px) {
  .order-detail-hero,
  .order-detail-grid { grid-template-columns: 1fr; }
  .vendor-order-card {
    flex-direction: column;
  }
  .vendor-order-card-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .order-item-row { grid-template-columns: 48px 1fr; }
  .order-item-sum { grid-column: 2; }
}

.offer-table-b2b th,
.offer-table-b2b td {
  white-space: nowrap;
  vertical-align: top;
}

.offer-flags {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.offer-flags label,
.create-flags-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.create-flags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Акт сверки / отчёты */
.report-filters {
  display: grid;
  gap: 16px;
}

.report-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.report-filter-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sa-muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-summary .vendor-stat strong {
  font-size: 1.25rem;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.report-tabs a {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--sa-border);
  color: var(--sa-muted);
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
}

.report-tabs a.active,
.report-tabs a:hover {
  background: #EAF4FF;
  color: var(--sa-primary);
  border-color: #D8E8FA;
}

.table-wrap {
  overflow-x: auto;
}

.vendor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vendor-table th,
.vendor-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sa-border);
  text-align: left;
  vertical-align: top;
}

.vendor-table th {
  background: #F5FAFF;
  color: var(--sa-primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vendor-table tbody tr:hover {
  background: #F8FBFF;
}

.vendor-dash-charts,
.vendor-dash-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}

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

.dash-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.dash-panel-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.dash-chart-box {
  height: 240px;
  position: relative;
}

.dash-chart-box-donut {
  height: 180px;
  max-width: 220px;
  margin: 0 auto;
}

.dash-donut-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.dash-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.dash-status-list li:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .vendor-dash-charts,
  .vendor-dash-grid,
  .dash-donut-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .report-filter-grid,
  .report-summary {
    grid-template-columns: 1fr;
  }
}

/* Карточка заказа поставщика */
.so { display: grid; gap: 16px; }
.so-back {
  width: fit-content;
  color: var(--sa-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.so-back:hover { text-decoration: underline; }

.so-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 20px;
  box-shadow: var(--sa-shadow);
  position: relative;
  overflow: hidden;
}
.so-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: var(--sa-primary);
}
.so-head-new::before,
.so-head-draft::before { background: var(--sa-warning); }
.so-head-cancelled::before { background: var(--sa-danger); }
.so-head-accepted::before,
.so-head-delivered::before { background: var(--sa-success); }

.so-head-copy { min-width: 0; padding-left: 10px; }
.so-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sa-muted);
  font-weight: 700;
}
.so-head h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--sa-navy-dark);
}
.so-sub {
  margin: 6px 0 0;
  color: var(--sa-muted);
  font-size: 0.88rem;
  word-break: break-all;
}
.so-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.so-total {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  min-width: 160px;
}
.so-total span,
.so-total em {
  font-size: 0.8rem;
  color: var(--sa-muted);
  font-style: normal;
}
.so-total strong {
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--sa-navy-dark);
}
.so-total strong small {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--sa-muted);
}

.so-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.so-main,
.so-aside { display: grid; gap: 16px; }

.so-card {
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 20px;
  box-shadow: var(--sa-shadow);
  padding: 20px 22px;
}
.so-card-head { margin-bottom: 16px; }
.so-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--sa-navy-dark);
}
.so-card-head p {
  margin: 4px 0 0;
  color: var(--sa-muted);
  font-size: 0.86rem;
}

.so-items { display: grid; gap: 10px; }
.so-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(13, 80, 170, 0.06);
}
.so-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--sa-border);
  background: #fff;
}
.so-item-thumb.media-no-photo { object-fit: contain; padding: 6px; }
.so-item-body { min-width: 0; }
.so-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.so-item-top strong {
  color: var(--sa-navy-dark);
  font-size: 0.98rem;
}
.so-item-sum { white-space: nowrap; color: var(--sa-navy-dark); }
.so-item-meta {
  margin: 4px 0 0;
  color: var(--sa-muted);
  font-size: 0.84rem;
}
.so-item-cancelled { color: var(--sa-danger); font-weight: 700; }
.so-gift { background: #dcfce7; color: #166534; margin-left: 6px; }

.so-cancel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--sa-muted);
}
.so-cancel.is-on { color: var(--sa-danger); font-weight: 700; }
.so-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sa-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.so-stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--sa-navy);
  font-size: 1.1rem;
  cursor: pointer;
}
.so-stepper button:hover { background: var(--sa-active-soft); color: var(--sa-primary); }
.so-stepper-input {
  width: 42px;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--sa-border);
  border-right: 1px solid var(--sa-border);
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--sa-navy);
  -moz-appearance: textfield;
}
.so-stepper-input::-webkit-outer-spin-button,
.so-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.so-promo {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.9rem;
}

.so-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.so-meta dt {
  font-size: 0.75rem;
  color: var(--sa-muted);
  margin-bottom: 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.so-meta dd { margin: 0; color: var(--sa-navy); }

.so-manage { display: grid; gap: 14px; }
.so-field { display: grid; gap: 6px; }
.so-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.so-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sa-muted);
}
.so-quick { width: 100%; min-height: 46px; font-size: 1rem; }
.so-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.so-docs .btn { flex: 1; text-align: center; }
.so-save {
  width: 100%;
  min-height: 46px;
  position: sticky;
  bottom: 12px;
}

@media (max-width: 980px) {
  .so-grid,
  .so-head { grid-template-columns: 1fr; }
  .so-head { flex-direction: column; }
  .so-total { justify-items: start; text-align: left; }
  .so-meta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .so-item { grid-template-columns: 52px 1fr; }
  .so-item-thumb { width: 52px; height: 52px; }
  .so-item-top { flex-direction: column; gap: 4px; }
}

.store-return-panel { margin-top: 16px; }
.store-return-form { margin-top: 12px; }
.store-return-history {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}
.store-return-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 45, 107, 0.08);
  background: #f8fbff;
}
.store-return-card strong { display: block; color: var(--brand-dark); }
.store-return-card span,
.store-return-card p,
.store-return-card li { color: var(--ink-soft); font-size: 0.86rem; }
.store-return-card ul { margin: 8px 0 0; padding-left: 18px; }
.store-return-card p { margin: 8px 0 0; }
.store-return-card-requested { border-color: #f0d48a; background: #fff8e7; }
.store-return-card-approved { border-color: #b7e0c6; background: #f1faf4; }
.store-return-card-rejected { border-color: #f0c2c2; background: #fff4f4; }

.xlsx-preview-card {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #D6E4F6;
  border-radius: 18px;
  background:
    radial-gradient(1200px 180px at 10% -20%, rgba(13, 80, 170, 0.08), transparent 50%),
    linear-gradient(180deg, #fff, #F7FBFF);
  box-shadow: 0 12px 32px rgba(13, 37, 76, 0.08);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.xlsx-preview-card:hover {
  transform: translateY(-2px);
  border-color: #B7D0F0;
  box-shadow: 0 18px 40px rgba(13, 37, 76, 0.12);
}

.xlsx-preview-card-file {
  display: flex;
  align-items: center;
  gap: 14px;
}

.xlsx-file-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #27A65A, #1B7A40);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(27, 122, 64, 0.28);
  flex-shrink: 0;
}

.xlsx-file-badge-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.8rem;
}

.xlsx-preview-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.xlsx-preview-card-copy strong {
  color: var(--sa-navy);
  font-size: 1.02rem;
}

.xlsx-preview-card-copy span {
  color: var(--sa-muted);
  font-size: 0.82rem;
}

.xlsx-preview-card-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sa-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.xlsx-mini {
  border: 1px solid #E4EDF7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.xlsx-mini-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  background: #EEF3F8;
}

.xlsx-mini-tabs span {
  padding: 6px 10px;
  border-radius: 8px 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B7F9C;
}

.xlsx-mini-tabs .is-on {
  background: #fff;
  color: var(--sa-navy);
}

.xlsx-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  font-size: 0.68rem;
}

.xlsx-mini-grid b,
.xlsx-mini-grid i {
  padding: 7px 8px;
  border-right: 1px solid #EEF3F8;
  border-bottom: 1px solid #EEF3F8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlsx-mini-grid b {
  background: #2F5F8F;
  color: #fff;
  font-weight: 700;
}

.xlsx-mini-grid i {
  font-style: normal;
  color: #3D4F6A;
}

.xlsx-modal[hidden] { display: none !important; }

.xlsx-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
}

.xlsx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 48, 0.58);
}

.xlsx-window {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  height: min(640px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(8, 22, 48, 0.28);
}

.xlsx-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #14325C, #10233F);
  color: #fff;
}

.xlsx-window-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.xlsx-window-title strong {
  display: block;
  font-size: 0.98rem;
}

.xlsx-window-title span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.72;
}

.xlsx-window-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.xlsx-window-close:hover { background: rgba(255, 255, 255, 0.2); }

.xlsx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px;
  background: #F6F9FC;
  border-bottom: 1px solid #E8EEF6;
  color: #4A5E78;
  font-size: 0.78rem;
  font-weight: 600;
}

.xlsx-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.xlsx-dot-req { background: #E8A317; }
.xlsx-dot-cat { background: #F5A524; }
.xlsx-dot-head { background: #2F5F8F; }

.xlsx-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}

.xlsx-col-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #EEF3F8;
  color: #3D4F6A;
  font-size: 0.7rem;
  font-weight: 700;
}

.xlsx-col-chip.is-req { background: #E8F0FA; color: #0D50AA; }
.xlsx-col-chip.is-cat { background: #FFF3D6; color: #8A5A00; }

.xlsx-sheet-body {
  flex: 1;
  min-height: 0;
  background: #F3F6FA;
}

.xlsx-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.xlsx-panel[hidden] { display: none !important; }

.xlsx-table-wrap {
  flex: 1;
  overflow: auto;
}

.xlsx-table {
  border-collapse: collapse;
  min-width: 1480px;
  background: #fff;
}

.xlsx-table-slim { min-width: 720px; }

.xlsx-table th,
.xlsx-table td {
  border: 1px solid #DDE6F0;
  padding: 7px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
  text-align: left;
}

.xlsx-letters th {
  background: #F2F5F8;
  color: #7E96B8;
  font-weight: 700;
  text-align: center;
  font-size: 0.66rem;
}

.xlsx-num {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 36px;
  min-width: 36px;
  text-align: center !important;
  background: #F2F5F8;
  color: #7E96B8;
  font-weight: 700;
}

.xlsx-table thead tr:last-child th {
  background: #2F5F8F;
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.xlsx-table thead tr:last-child .xlsx-num { top: 0; z-index: 3; background: #264E76; color: #fff; }

.xlsx-table th.is-req { background: #1F4E7A; }
.xlsx-table th.is-cat,
.xlsx-table td.is-cat { background: #FFF6E5; color: #8A5A00; }
.xlsx-table thead tr:last-child th.is-cat { background: #C77B12; color: #fff; }

.xlsx-table tbody tr:hover td { background: #F7FBFF; }
.xlsx-table tbody tr:hover td.is-cat { background: #FFEFCC; }

.xlsx-guide {
  margin: 22px auto;
  width: min(680px, calc(100% - 32px));
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #E8EEF6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(13, 37, 76, 0.06);
}

.xlsx-guide h3 {
  margin: 0 0 12px;
  color: #2F5F8F;
  font-size: 1.15rem;
}

.xlsx-guide ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #2F425C;
  line-height: 1.55;
}

.xlsx-guide p {
  margin: 0;
  color: #5A6F89;
  font-size: 0.88rem;
  line-height: 1.5;
}

.xlsx-sheet-hint {
  margin: 0;
  padding: 10px 16px 12px;
  color: #5A6F89;
  font-size: 0.8rem;
}

.xlsx-sheets {
  display: flex;
  gap: 4px;
  padding: 8px 10px 10px;
  background: #E7EEF6;
  border-top: 1px solid #D5E0EC;
}

.xlsx-sheet-tab {
  border: 0;
  background: transparent;
  color: #4A5E78;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.xlsx-sheet-tab.is-active {
  background: #fff;
  color: var(--sa-navy);
  box-shadow: 0 1px 0 #fff;
}

body.xlsx-preview-open { overflow: hidden; }

@media (max-width: 720px) {
  .xlsx-preview-card-cta { display: none; }
  .xlsx-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xlsx-mini-grid b:nth-child(n+4),
  .xlsx-mini-grid i:nth-child(n+10) { display: none; }
  .xlsx-window { height: calc(100vh - 16px); border-radius: 14px; }
  .xlsx-legend { gap: 8px; }
  .xlsx-modal { padding: 8px; }
}

.vendor-main:has(.pc-grid),
.vendor-main:has(.pc-filters) { max-width: 1180px; }

.pc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pc-stat {
  background: #fff;
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(13, 37, 76, 0.04);
}

.pc-stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pc-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--sa-navy);
}

.pc-filters {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #D6E4F6;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #F7FBFF);
  overflow: visible;
}

.pc-filter-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.pc-filter-search .vendor-input { flex: 1; }

.pc-filter-tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pc-combo { position: relative; display: grid; gap: 6px; }
.pc-combo-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sa-muted);
}
.pc-combo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #D6E4F6;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--sa-navy);
  cursor: pointer;
}
.pc-combo-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-combo.is-cat .pc-combo-btn { background: #F3F8FF; border-color: #C9DCF7; }
.pc-combo.is-sub .pc-combo-btn { background: #F2FBF6; border-color: #C7E8D8; }
.pc-combo.is-ss .pc-combo-btn { background: #FFF8EE; border-color: #F0D9A8; }
.pc-combo.is-open .pc-combo-btn {
  border-color: var(--sa-primary);
  box-shadow: 0 0 0 3px rgba(13, 80, 170, 0.12);
}
.pc-combo.is-disabled .pc-combo-btn {
  opacity: 0.62;
  cursor: not-allowed;
  background: #F4F7FB;
}
.pc-combo-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #D6E4F6;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(13, 37, 76, 0.16);
  overflow: hidden;
}
.pc-combo-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #E8EEF6;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  background: #F8FBFF;
}
.pc-combo-list { max-height: 240px; overflow: auto; padding: 6px; }
.pc-combo-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--sa-navy);
}
.pc-combo-option em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: #6B7F9C;
  font-weight: 700;
}
.pc-combo-option:hover,
.pc-combo-option.is-active { background: #E8F1FF; }
.pc-combo-empty {
  padding: 12px 10px;
  color: var(--sa-muted);
  font-size: 0.8rem;
}

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

.pc-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: #EEF3F8;
  color: #3D4F6A;
  font-size: 0.78rem;
  font-weight: 700;
}

.pc-chip-photo { background: #E8F6EE; color: #0f7a55; }
.pc-chip-nophoto { background: #FFF4E0; color: #9A6700; }
.pc-chip-own { background: #E6F0FF; color: #0D50AA; }
.pc-chip-catalog { background: #EEE8FF; color: #5B3CC4; }
.pc-chip-stock { background: #DDF7EC; color: #0B6B46; }
.pc-chip-out { background: #FDECEC; color: #B42318; }
.pc-chip-new { background: #E8F0FF; color: #1D4ED8; }
.pc-chip-promo { background: #FFE8D6; color: #C2410C; }
.pc-chip-hit { background: #FDE8F3; color: #BE185D; }
.pc-chip-photo.is-on { background: #0f7a55; color: #fff; }
.pc-chip-nophoto.is-on { background: #9A6700; color: #fff; }
.pc-chip-own.is-on { background: #0D50AA; color: #fff; }
.pc-chip-catalog.is-on { background: #5B3CC4; color: #fff; }
.pc-chip-stock.is-on { background: #0B6B46; color: #fff; }
.pc-chip-out.is-on { background: #B42318; color: #fff; }
.pc-chip-new.is-on { background: #1D4ED8; color: #fff; }
.pc-chip-promo.is-on { background: #C2410C; color: #fff; }
.pc-chip-hit.is-on { background: #BE185D; color: #fff; }
.pc-chip-reset { background: #FDECEC; color: #B42318; }

.pc-hint-line {
  margin: 10px 0 0;
  color: #6B7F9C;
  font-size: 0.8rem;
}

.pc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.pc-pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #D6E4F6;
  color: var(--sa-navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.pc-pager-btn:hover { background: #E8F1FF; border-color: #B9D0F0; }
.pc-pager-btn.is-current {
  background: var(--sa-primary);
  border-color: var(--sa-primary);
  color: #fff;
}
.pc-pager-btn.is-off {
  opacity: 0.45;
  pointer-events: none;
}
.pc-pager-gap {
  min-width: 20px;
  text-align: center;
  color: #8AA0BA;
  font-weight: 800;
}
.pc-pager-meta {
  margin-left: auto;
  color: #6B7F9C;
  font-size: 0.78rem;
  font-weight: 700;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pc-empty-grid {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--sa-muted);
  background: #fff;
  border: 1px dashed #D6E4F6;
  border-radius: 16px;
}

.pc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E4EDF7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 37, 76, 0.05);
  animation: pcCardIn 0.45s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(13, 37, 76, 0.1);
}

.pc-card.is-dup { border-color: #F0C2C2; }
.pc-card.need-photo { border-color: #F0D48A; }

@keyframes pcCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pc-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.pc-num {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(16, 35, 63, 0.18);
}

.pc-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}
.pc-photo-spec {
  margin: 0 12px 4px;
  color: #5C7190;
  font-size: 0.75rem;
  line-height: 1.35;
}
.pc-review {
  display: inline-flex;
  margin: 0 12px 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #FFF6E5;
  color: #9A6700;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
}
.pc-card-edit {
  margin: 8px 0 4px;
}
.pc-card-edit summary {
  cursor: pointer;
  font-weight: 700;
  color: #0D50AA;
}
.pc-card-edit form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.addr-map { display: grid; gap: 8px; margin: 4px 0 12px; }
.addr-map-lead, .addr-map-results { margin: 0; color: #5C7190; font-size: 0.82rem; line-height: 1.4; }
.addr-map-search { display: flex; gap: 8px; }
.addr-map-search .vendor-input { flex: 1; }
.addr-map-search .btn { width: auto; }
.addr-map-results { display: grid; gap: 4px; }
.addr-map-results button {
  text-align: left;
  background: #F4F7FB;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.addr-map-canvas { height: 240px; border-radius: 14px; overflow: hidden; background: #E8EEF6; }
.pc-quiet {
  margin: 6px 0 0;
  color: #7E96B8;
  font-size: 0.75rem;
  line-height: 1.35;
}
.pc-card-edit textarea { resize: vertical; min-height: 72px; }
.pc-card-edit .btn { width: auto; }

.pc-photo-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #7E96B8;
  gap: 4px;
}

.pc-photo-empty span { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.pc-photo-empty em { font-style: normal; font-size: 0.78rem; }

.pc-photo.is-upload { cursor: pointer; }
.pc-photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pc-photo-overlay {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.18s ease;
}

.pc-photo.is-upload:hover .pc-photo-overlay,
.pc-card.need-photo .pc-photo-overlay { opacity: 1; transform: none; }

.pc-photo.is-drag { outline: 2px dashed var(--sa-primary); outline-offset: -6px; }
.pc-photo.is-busy { opacity: 0.65; }

.pc-photo-share {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(91, 60, 196, 0.92);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.pc-photo-note {
  margin: -6px 12px 10px;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #6B7F9C;
}

.pc-float-tip {
  position: absolute;
  right: 10px;
  top: 10px;
  max-width: 170px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.35;
  box-shadow: 0 10px 20px rgba(13, 80, 170, 0.25);
  animation: pcTip 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pcTip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pc-card-body { padding: 12px 12px 14px; display: grid; gap: 8px; }
.pc-copy {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.pc-copy-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.pc-name {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--sa-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-copy-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6B7F9C;
  background: #F3F7FC;
}
.pc-copy-name:hover .pc-copy-ico,
.pc-copy:hover { filter: brightness(0.98); }
.pc-copy-name:hover .pc-copy-ico { background: #E6F0FF; color: #0D50AA; }

.pc-path-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pc-path {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.pc-path.is-empty { color: #B42318; font-size: 0.72rem; font-weight: 700; }
.pc-crumb {
  max-width: 100%;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-crumb-sec { background: #EEF3F8; color: #4B607C; }
.pc-crumb-cat { background: #E6F0FF; color: #0D50AA; }
.pc-crumb-sub { background: #E8FBF3; color: #0f7a55; }
.pc-crumb-ss { background: #FFF4E0; color: #9A6700; }
.pc-copy-path {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #10233F;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pc-copy-path:hover { background: #0D50AA; }

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--sa-muted);
  font-size: 0.74rem;
}

.pc-tag {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EEF3F8;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pc-tag.own { background: #E8FBF3; color: #0f7a55; }
.pc-tag.catalog { background: #EEE8FF; color: #5B3CC4; }
.pc-tag.dup { background: #FDECEC; color: #B42318; }
.pc-tag.unit { background: #F3F7FC; color: #4B607C; }

.pc-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-id {
  display: grid;
  gap: 1px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.pc-id span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.78;
}
.pc-id b { font-size: 0.76rem; font-weight: 800; }
.pc-id-barcode { background: #E6F0FF; color: #0D50AA; }
.pc-id-code { background: #FFF4E0; color: #9A6700; }
.pc-id-brand { background: #FDE8F3; color: #BE185D; }
.pc-id:hover { transform: translateY(-1px); }

.pc-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #10233F;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(16, 35, 63, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
}
.pc-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pc-dup-note {
  margin: 0;
  font-size: 0.75rem;
  color: #B42318;
  background: #FFF4F4;
  border-radius: 8px;
  padding: 6px 8px;
}

.pc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pc-fields label {
  display: grid;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sa-muted);
}

.pc-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-flag {
  position: relative;
  cursor: pointer;
}

.pc-flag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pc-flag span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  transition: 0.15s ease;
}

.pc-flag svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-flag-new span { background: #E8F0FF; color: #1D4ED8; }
.pc-flag-sale span { background: #FFE8D6; color: #C2410C; }
.pc-flag-hit span { background: #FDE8F3; color: #BE185D; }
.pc-flag-on span { background: #E8FBF3; color: #0f7a55; }
.pc-flag-on { margin-left: auto; }

.pc-flag:hover span { filter: brightness(0.97); transform: translateY(-1px); }
.pc-flag:has(input:checked) span {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.pc-flag-new:has(input:checked) span { background: #1D4ED8; }
.pc-flag-sale:has(input:checked) span { background: #C2410C; }
.pc-flag-hit:has(input:checked) span { background: #BE185D; }
.pc-flag-on:has(input:checked) span { background: #0f7a55; }

.pc-sticky-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #D6E4F6;
  box-shadow: 0 12px 30px rgba(13, 37, 76, 0.12);
  backdrop-filter: blur(10px);
}

.pc-sticky-bar span { color: var(--sa-muted); font-size: 0.8rem; }

.pc-coach {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #10233F;
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.28);
  animation: pcCardIn 0.4s ease;
}

.pc-coach strong { display: block; margin-bottom: 6px; }
.pc-coach p { margin: 0 0 10px; font-size: 0.85rem; line-height: 1.45; opacity: 0.88; }
.pc-coach .btn { color: #fff; border-color: rgba(255,255,255,0.2); }

@media (max-width: 1100px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pc-grid,
  .pc-filter-tree,
  .pc-fields { grid-template-columns: 1fr; }
  .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-sticky-bar { flex-direction: column; align-items: stretch; }
  .pc-pager-meta { width: 100%; margin-left: 0; }
  .pc-photo { min-height: 180px; }
  .pc-photo.is-upload .pc-photo-overlay { opacity: 1; transform: none; }
}

.pc-photo-actions {
  display: flex;
  gap: 8px;
  margin: -2px 12px 10px;
}
.pc-photo-cta {
  display: block;
  flex: 1;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #E6F0FF;
  color: #0D50AA;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.pc-photo-remove {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #FDECEC;
  color: #B42318;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.pc-photo-remove[hidden] { display: none; }

.pp-sheet {
  background: #fff;
  border: 1px solid #D6E4F6;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(13, 37, 76, 0.05);
}

.pp-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}

.pp-photo-panel { display: grid; gap: 8px; }
.pp-drop {
  position: relative;
  min-height: 240px;
  border: 1.5px dashed #B9D0F0;
  border-radius: 18px;
  background: linear-gradient(180deg, #F7FBFF, #fff);
  overflow: hidden;
  cursor: pointer;
}
.pp-drop.is-drag { border-color: var(--sa-primary); background: #E8F1FF; }
.pp-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pp-empty {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.pp-empty-ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #E6F0FF;
  color: #0D50AA;
}
.pp-empty-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-empty strong { color: var(--sa-navy); font-size: 0.95rem; }
.pp-empty em {
  font-style: normal;
  color: #6B7F9C;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 260px;
}
.pp-empty-btn {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.pp-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.pp-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #EEF3F8;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.78);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
}
.pp-thumb.is-main span { background: #0f7a55; }
.pp-photo-note {
  margin: 0;
  color: #6B7F9C;
  font-size: 0.75rem;
  line-height: 1.4;
}

.pp-fields { display: grid; gap: 12px; }
.pp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pp-fields > .pp-row:has(.vendor-form-field:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-check { display: grid; gap: 8px; }
.pp-check-status {
  padding: 8px 10px;
  border-radius: 10px;
  background: #F3F7FC;
  color: #4B607C;
  font-size: 0.78rem;
  font-weight: 700;
}
.pp-check-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  background: #FFF7E8;
  border: 1px solid #F0D48A;
}
.pp-check.has-match .pp-check-card { background: #FFF4E0; }
.pp-check-photo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #EEF3F8;
}
.pp-check-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-check-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #7E96B8;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pp-check-body { display: grid; gap: 3px; min-width: 0; }
.pp-check-body strong {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9A6700;
}
.pp-check-body b {
  font-size: 0.9rem;
  color: var(--sa-navy);
  line-height: 1.3;
}
.pp-check-body em, .pp-check-body p {
  font-style: normal;
  margin: 0;
  font-size: 0.75rem;
  color: #6B7F9C;
  line-height: 1.4;
}
.pp-check-similar { display: grid; gap: 8px; }
.pp-check-similar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4B607C;
}
.pp-check-similar-item {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.pp-check-similar-item .pp-check-card {
  background: #F3F7FC;
  border-color: #D6E4F6;
}
.pp-check-similar-item:hover .pp-check-card { border-color: #0D50AA; }
.pp-reco {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #FFF4E0;
  color: #9A6700;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pp-help {
  display: block;
  font-style: normal;
  color: #6B7F9C;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.pp-cats { display: grid; gap: 8px; }
.pp-cats-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.pp-more {
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  padding: 8px 12px 12px;
}
.pp-more summary {
  cursor: pointer;
  font-weight: 800;
  color: #0D50AA;
  padding: 6px 0;
}
.pp-more .pp-row { margin-top: 10px; }
.pp-flags { margin-top: 4px; }
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pp-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.pp-drawer[hidden] { display: none !important; }
.pp-drawer-back {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 63, 0.42);
}
.pp-drawer-panel {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  background: #fff;
  padding: 18px 18px 28px;
  box-shadow: -18px 0 40px rgba(13, 37, 76, 0.18);
}
.pp-drawer-panel .pp-layout { grid-template-columns: 1fr; }
.pp-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pp-drawer-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.pp-drawer-head p { margin: 0; color: #6B7F9C; font-size: 0.82rem; }
.pp-drawer-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #F3F7FC;
  color: #3D4F6A;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
body.pp-drawer-lock { overflow: hidden; }

@media (max-width: 860px) {
  .pp-layout,
  .pp-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pp-sheet { padding: 14px; border-radius: 16px; }
  .pp-drawer { align-items: flex-end; }
  .pp-drawer-panel {
    width: 100%;
    height: min(94vh, 100%);
    border-radius: 20px 20px 0 0;
  }
}

.vendor-main:has(.ol-page) { max-width: 1080px; }

.ol-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.ol-tip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #D6E4F6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 37, 76, 0.04);
  overflow: hidden;
}

.ol-tip.is-fresh { background: linear-gradient(180deg, #FFF6EB, #fff); }
.ol-tip.is-page { background: linear-gradient(180deg, #F4F8FF, #fff); }
.ol-tip.is-open { background: linear-gradient(180deg, #F3FBF6, #fff); }

.ol-tip-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.ol-tip.is-fresh .ol-tip-ico { background: linear-gradient(135deg, #FBBF24, #D97706); color: #fff; }
.ol-tip.is-page .ol-tip-ico { background: linear-gradient(135deg, #60A5FA, #0D50AA); color: #fff; }
.ol-tip.is-open .ol-tip-ico { background: linear-gradient(135deg, #34D399, #059669); color: #fff; }

.ol-tip-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ol-tip strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sa-navy);
}
.ol-tip em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6B7F9C;
  font-weight: 600;
}

.ol-tip-bubble {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  animation: olFloat 2.2s ease-in-out infinite;
}
.ol-tip.is-fresh .ol-tip-bubble { background: #D97706; }
.ol-tip.is-open .ol-tip-bubble { background: #059669; }

@keyframes olFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

.ol-stat {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E8EEF6;
  box-shadow: 0 8px 20px rgba(13, 37, 76, 0.04);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ol-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(13, 37, 76, 0.08); }
.ol-stat span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ol-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--sa-navy);
}
.ol-stat.is-new strong { color: #C2410C; }
.ol-stat.is-work strong { color: #0F766E; }
.ol-stat.is-ship strong { color: #0369A1; }
.ol-stat.is-pay strong { color: #B42318; }
.ol-stat.is-today strong { color: #0D50AA; }
.ol-stat.is-on {
  border-color: transparent;
  color: #fff;
  background: #0D50AA;
}
.ol-stat.is-on span,
.ol-stat.is-on strong { color: #fff; }
.ol-stat.is-new.is-on { background: #C2410C; }
.ol-stat.is-work.is-on { background: #0F766E; }
.ol-stat.is-ship.is-on { background: #0369A1; }
.ol-stat.is-pay.is-on { background: #B42318; }
.ol-stat.is-today.is-on { background: #0D50AA; }

.ol-chip-new { background: #FFF4E0; color: #C2410C; }
.ol-chip-confirmed { background: #E6F0FF; color: #0D50AA; }
.ol-chip-assembling { background: #DDF7EC; color: #0B6B46; }
.ol-chip-shipped { background: #E0F2FE; color: #0369A1; }
.ol-chip-delivered,
.ol-chip-accepted { background: #E8FBF3; color: #0f7a55; }
.ol-chip-draft { background: #EEF3F8; color: #4B607C; }
.ol-chip-cancelled { background: #FDECEC; color: #B42318; }
.ol-chip-pay-due,
.ol-chip-pay-unpaid { background: #FDECEC; color: #B42318; }
.ol-chip-pay-awaiting { background: #FFF4E0; color: #9A6700; }
.ol-chip-pay-paid { background: #DDF7EC; color: #0B6B46; }
.ol-chip-origin { background: #EEE8FF; color: #5B3CC4; }
.ol-chip-origin2 { background: #E6F0FF; color: #0D50AA; }
.ol-chip-today { background: #E8F0FF; color: #1D4ED8; }
.ol-chip-week { background: #F3E8FF; color: #7C3AED; }
.ol-chip-new.is-on { background: #C2410C; color: #fff; }
.ol-chip-confirmed.is-on { background: #0D50AA; color: #fff; }
.ol-chip-assembling.is-on { background: #0B6B46; color: #fff; }
.ol-chip-shipped.is-on { background: #0369A1; color: #fff; }
.ol-chip-delivered.is-on,
.ol-chip-accepted.is-on { background: #0f7a55; color: #fff; }
.ol-chip-draft.is-on { background: #4B607C; color: #fff; }
.ol-chip-cancelled.is-on { background: #B42318; color: #fff; }
.ol-chip-pay-due.is-on,
.ol-chip-pay-unpaid.is-on { background: #B42318; color: #fff; }
.ol-chip-pay-awaiting.is-on { background: #9A6700; color: #fff; }
.ol-chip-pay-paid.is-on { background: #0B6B46; color: #fff; }
.ol-chip-origin.is-on { background: #5B3CC4; color: #fff; }
.ol-chip-origin2.is-on { background: #0D50AA; color: #fff; }
.ol-chip-today.is-on { background: #1D4ED8; color: #fff; }
.ol-chip-week.is-on { background: #7C3AED; color: #fff; }

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

.ol-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E1EAF5;
  box-shadow: 0 10px 22px rgba(13, 37, 76, 0.05);
  cursor: pointer;
  overflow: hidden;
  animation: pcCardIn 0.35s ease both;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ol-card:hover {
  transform: translateY(-2px);
  border-color: #C7D8EE;
  box-shadow: 0 16px 32px rgba(13, 37, 76, 0.1);
}
.ol-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #94A3B8;
}
.ol-card.is-new::before,
.ol-card.is-hot::before { background: linear-gradient(180deg, #FBBF24, #C2410C); }
.ol-card.is-confirmed::before { background: #0D50AA; }
.ol-card.is-assembling::before { background: #0F766E; }
.ol-card.is-shipped::before { background: #0284C7; }
.ol-card.is-delivered::before,
.ol-card.is-accepted::before { background: #059669; }
.ol-card.is-draft::before { background: #64748B; }
.ol-card.is-cancelled::before { background: #DC2626; }
.ol-card.is-hot {
  background: linear-gradient(180deg, #FFF8EE, #fff);
  border-color: #F3D2A4;
}

.ol-num {
  display: grid;
  place-items: center;
  min-height: 28px;
  margin-top: 6px;
  border-radius: 8px;
  background: #F3F7FC;
  color: #5B7394;
  font-size: 0.72rem;
  font-weight: 800;
}

.ol-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 37, 76, 0.12);
}
.ol-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ol-ico-new { background: linear-gradient(135deg, #FBBF24, #C2410C); }
.ol-ico-draft { background: linear-gradient(135deg, #94A3B8, #475569); }
.ol-ico-confirmed { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.ol-ico-assembling { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.ol-ico-shipped { background: linear-gradient(135deg, #22D3EE, #0284C7); }
.ol-ico-delivered,
.ol-ico-accepted { background: linear-gradient(135deg, #34D399, #059669); }
.ol-ico-cancelled { background: linear-gradient(135deg, #F87171, #DC2626); }

.ol-main { min-width: 0; display: grid; gap: 6px; }
.ol-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ol-copy {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.ol-copy:hover { color: #0D50AA; }
.ol-top .ol-copy {
  font-weight: 800;
  color: var(--sa-navy);
}
.ol-store {
  font-size: 1rem;
  font-weight: 800;
  color: #16345C;
}
.ol-when {
  margin-left: auto;
  color: #7A8FA8;
  font-size: 0.75rem;
  font-weight: 700;
}
.ol-pulse,
.ol-today {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  font-style: normal;
}
.ol-pulse {
  background: #C2410C;
  color: #fff;
  animation: olPulse 1.6s ease-in-out infinite;
}
.ol-today { background: #E6F0FF; color: #0D50AA; }

@keyframes olPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(194, 65, 12, 0); }
}

.ol-meta,
.ol-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ol-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #EEF3F8;
  color: #3D4F6A;
}
.ol-st-new { background: #FFF4E0; color: #C2410C; }
.ol-st-confirmed { background: #E6F0FF; color: #0D50AA; }
.ol-st-assembling { background: #DDF7EC; color: #0B6B46; }
.ol-st-shipped { background: #E0F2FE; color: #0369A1; }
.ol-st-delivered,
.ol-st-accepted { background: #E8FBF3; color: #0f7a55; }
.ol-st-draft { background: #EEF3F8; color: #4B607C; }
.ol-st-cancelled { background: #FDECEC; color: #B42318; }
.ol-pay-unpaid { background: #FDECEC; color: #B42318; }
.ol-pay-awaiting { background: #FFF4E0; color: #9A6700; }
.ol-pay-paid { background: #DDF7EC; color: #0B6B46; }
.ol-pay-refunded { background: #EEE8FF; color: #5B3CC4; }
.ol-who { background: #E6F0FF; color: #0D50AA; }
.ol-who2 { background: #EEE8FF; color: #5B3CC4; }
.ol-promo { background: #FFE8D6; color: #C2410C; }

.ol-facts span,
.ol-fact-copy,
.ol-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5A6F89;
  font-size: 0.78rem;
  font-weight: 700;
}
.ol-facts svg,
.ol-address svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ol-address { color: #6B7F9C; }

.ol-inline-tip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 10px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 700;
  animation: olFloat 2.2s ease-in-out infinite;
}

.ol-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  min-width: 120px;
}
.ol-side strong {
  color: var(--sa-navy);
  font-size: 1.05rem;
}
.ol-side small { font-size: 0.75rem; color: #7A8FA8; }
.ol-side em {
  font-style: normal;
  color: #6B7F9C;
  font-size: 0.75rem;
  font-weight: 700;
}
.ol-open {
  display: inline-flex;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #E6F0FF;
  color: #0D50AA;
  font-size: 0.75rem;
  font-weight: 800;
}

.ol-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 14px;
  border-radius: 12px;
  background: #10233F;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.ol-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.ol-coach {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #10233F;
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.28);
  display: none;
}
.ol-coach.is-on { display: block; animation: pcCardIn 0.4s ease; }
.ol-coach strong { display: block; margin-bottom: 6px; }
.ol-coach p { margin: 0 0 10px; font-size: 0.85rem; line-height: 1.45; opacity: 0.88; }
.ol-coach .btn { color: #fff; border-color: rgba(255,255,255,0.2); }

@media (max-width: 980px) {
  .ol-tips,
  .ol-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ol-card { grid-template-columns: 32px 36px minmax(0, 1fr); }
  .ol-side {
    grid-column: 2 / -1;
    grid-template-columns: 1fr auto auto;
    justify-items: start;
    align-items: center;
    min-width: 0;
  }
  .ol-inline-tip { animation: none; }
}

@media (max-width: 720px) {
  .ol-tips { grid-template-columns: 1fr; }
  .ol-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ol-card { grid-template-columns: 28px minmax(0, 1fr); padding: 12px; }
  .ol-ico { display: none; }
  .ol-when { margin-left: 0; width: 100%; }
}

.vendor-main:has(.sg-page) { max-width: 1080px; }

.sg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.sg-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 86px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #D6E4F6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 37, 76, 0.04);
}
.sg-step.is-1 { background: linear-gradient(180deg, #FFF6EB, #fff); }
.sg-step.is-2 { background: linear-gradient(180deg, #F4F8FF, #fff); }
.sg-step.is-3 { background: linear-gradient(180deg, #F3FBF6, #fff); }

.sg-step-num {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #5B7394;
  font-size: 0.68rem;
  font-weight: 800;
}

.sg-step-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.sg-step.is-1 .sg-step-ico { background: linear-gradient(135deg, #FBBF24, #D97706); }
.sg-step.is-2 .sg-step-ico { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.sg-step.is-3 .sg-step-ico { background: linear-gradient(135deg, #34D399, #059669); }
.sg-step-ico svg,
.sg-card-ico svg,
.sg-empty-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-step strong { display: block; font-size: 0.88rem; color: var(--sa-navy); }
.sg-step em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6B7F9C;
  font-weight: 600;
}

.sg-bubble {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  animation: olFloat 2.2s ease-in-out infinite;
}
.sg-step.is-1 .sg-bubble { background: #D97706; }
.sg-step.is-2 .sg-bubble { background: #0D50AA; }
.sg-step.is-3 .sg-bubble { background: #059669; }

.sg-page .vendor-section-tabs { margin-bottom: 16px; }

.sg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.sg-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E8EEF6;
  box-shadow: 0 8px 20px rgba(13, 37, 76, 0.04);
}
.sg-stat span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sg-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--sa-navy);
}
.sg-stat.is-stores strong { color: #0D50AA; }
.sg-stat.is-base strong { font-size: 1rem; color: #0f7a55; }

.sg-create {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #C7D8EE;
  background: linear-gradient(180deg, #F7FBFF, #fff);
  box-shadow: 0 12px 28px rgba(13, 37, 76, 0.06);
  animation: pcCardIn 0.3s ease;
}
.sg-create-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.sg-create-head h2 { margin: 0; font-size: 1.05rem; color: var(--sa-navy); }
.sg-create-head p { margin: 4px 0 0; color: #6B7F9C; font-size: 0.82rem; }

.sg-list-wrap { display: grid; gap: 10px; }
.sg-list-head h2 { margin: 0; font-size: 1.05rem; color: var(--sa-navy); }
.sg-list-head p { margin: 4px 0 8px; color: #6B7F9C; font-size: 0.82rem; }

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

.sg-card {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E1EAF5;
  box-shadow: 0 10px 22px rgba(13, 37, 76, 0.05);
  animation: pcCardIn 0.35s ease both;
}
.sg-card.is-base {
  background: linear-gradient(180deg, #F4FDF8, #fff);
  border-color: #CDEADB;
}

.sg-card-num {
  display: grid;
  place-items: center;
  min-height: 28px;
  margin-top: 6px;
  border-radius: 8px;
  background: #F3F7FC;
  color: #5B7394;
  font-size: 0.72rem;
  font-weight: 800;
}

.sg-card-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #818CF8, #4F46E5);
  box-shadow: 0 8px 16px rgba(13, 37, 76, 0.12);
}
.sg-card-ico.is-base { background: linear-gradient(135deg, #34D399, #059669); }
.sg-list .sg-card:nth-child(5n+1) .sg-card-ico { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.sg-list .sg-card:nth-child(5n+2) .sg-card-ico { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.sg-list .sg-card:nth-child(5n+3) .sg-card-ico { background: linear-gradient(135deg, #FBBF24, #D97706); }
.sg-list .sg-card:nth-child(5n+4) .sg-card-ico { background: linear-gradient(135deg, #F472B6, #DB2777); }
.sg-list .sg-card:nth-child(5n) .sg-card-ico { background: linear-gradient(135deg, #22D3EE, #0284C7); }

.sg-card-main { min-width: 0; display: grid; gap: 6px; }
.sg-card-main strong { color: var(--sa-navy); font-size: 1rem; }
.sg-card-main em {
  font-style: normal;
  color: #6B7F9C;
  font-size: 0.8rem;
  line-height: 1.4;
}

.sg-card-meta,
.sg-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sg-chip,
.sg-store {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #EEF3F8;
  color: #3D4F6A;
}
.sg-chip.is-ok { background: #DDF7EC; color: #0B6B46; }
.sg-chip.is-wait { background: #FFF4E0; color: #9A6700; }
.sg-chip.is-warn { background: #FFE8D6; color: #C2410C; }
.sg-store { background: #E6F0FF; color: #0D50AA; }
.sg-store.is-more { background: #EEE8FF; color: #5B3CC4; }

.sg-inline-tip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 10px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 700;
  animation: olFloat 2.2s ease-in-out infinite;
}

.sg-card-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 150px;
}

.sg-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px dashed #C7D8EE;
  background: #F7FBFF;
}
.sg-empty-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
  color: #fff;
}
.sg-empty strong { color: var(--sa-navy); }
.sg-empty p { margin: 0; color: #6B7F9C; font-size: 0.88rem; line-height: 1.45; max-width: 520px; }

.sg-coach {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #10233F;
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.28);
  display: none;
}
.sg-coach.is-on { display: block; animation: pcCardIn 0.4s ease; }
.sg-coach strong { display: block; margin-bottom: 6px; }
.sg-coach p { margin: 0 0 10px; font-size: 0.85rem; line-height: 1.45; opacity: 0.88; }
.sg-coach .btn { color: #fff; border-color: rgba(255,255,255,0.2); }

@media (max-width: 980px) {
  .sg-steps { grid-template-columns: 1fr; }
  .sg-card { grid-template-columns: 32px 36px minmax(0, 1fr); }
  .sg-card-side {
    grid-column: 2 / -1;
    justify-items: start;
    grid-template-columns: repeat(2, max-content);
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .sg-stats { grid-template-columns: 1fr; }
  .sg-card { grid-template-columns: 28px minmax(0, 1fr); }
  .sg-card-ico { display: none; }
  .sg-card-side { grid-column: 1 / -1; }
}

.vendor-main:has(.db-page) { max-width: 1120px; }

.db-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.db-tip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #D6E4F6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 37, 76, 0.04);
}
.db-tip.is-new { background: linear-gradient(180deg, #FFF6EB, #fff); }
.db-tip.is-pay { background: linear-gradient(180deg, #F4F8FF, #fff); }
.db-tip.is-work { background: linear-gradient(180deg, #F3FBF6, #fff); }
.db-tip-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.db-tip.is-new .db-tip-ico { background: linear-gradient(135deg, #FBBF24, #C2410C); }
.db-tip.is-pay .db-tip-ico { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.db-tip.is-work .db-tip-ico { background: linear-gradient(135deg, #34D399, #059669); }
.db-tip-ico svg,
.db-order-ico svg,
.db-action-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.db-tip strong { display: block; font-size: 0.88rem; color: var(--sa-navy); }
.db-tip em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6B7F9C;
  font-weight: 600;
}
.db-bubble {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #C2410C;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  animation: olFloat 2.2s ease-in-out infinite;
}

.db-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.db-alert {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  animation: pcCardIn 0.35s ease;
}
.db-alert.is-new { background: #FFF4E0; color: #C2410C; }
.db-alert.is-pay { background: #FDECEC; color: #B42318; }
.db-alert.is-cat { background: #EEE8FF; color: #5B3CC4; }
.db-alert strong { font-size: 0.92rem; }
.db-alert em { font-style: normal; font-size: 0.75rem; line-height: 1.35; opacity: 0.85; }

.db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.db-stat {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E8EEF6;
  box-shadow: 0 8px 20px rgba(13, 37, 76, 0.04);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.db-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(13, 37, 76, 0.08); }
.db-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.db-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--sa-navy);
  line-height: 1.2;
}
.db-stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.7rem;
  color: #7A8FA8;
  font-weight: 700;
}
.db-stat.is-new strong { color: #C2410C; }
.db-stat.is-new.is-hot { background: linear-gradient(180deg, #FFF6EB, #fff); border-color: #F3D2A4; }
.db-stat.is-work strong { color: #0F766E; }
.db-stat.is-ship strong { color: #0369A1; }
.db-stat.is-pay strong { color: #B42318; }
.db-stat.is-sum strong { color: #0D50AA; }
.db-stat.is-stock strong { color: #0f7a55; }
.db-stat.is-today strong { color: #1D4ED8; }

.db-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  margin-bottom: 16px;
}

.db-block {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E1EAF5;
  box-shadow: 0 10px 22px rgba(13, 37, 76, 0.04);
  margin-bottom: 16px;
}
.db-grid .db-block { margin-bottom: 0; }
.db-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.db-block-head h2 { margin: 0; font-size: 1.05rem; color: var(--sa-navy); }
.db-block-head p { margin: 4px 0 0; color: #6B7F9C; font-size: 0.8rem; }

.db-orders { display: grid; gap: 8px; }
.db-order {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #E8EEF6;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.db-order:hover { transform: translateY(-1px); border-color: #C7D8EE; }
.db-order.is-new { background: #FFF8EE; border-color: #F3D2A4; }
.db-order-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #94A3B8, #475569);
}
.db-order-ico.is-new { background: linear-gradient(135deg, #FBBF24, #C2410C); }
.db-order-ico.is-confirmed { background: linear-gradient(135deg, #60A5FA, #0D50AA); }
.db-order-ico.is-assembling { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.db-order-ico.is-shipped { background: linear-gradient(135deg, #22D3EE, #0284C7); }
.db-order-ico.is-delivered,
.db-order-ico.is-accepted { background: linear-gradient(135deg, #34D399, #059669); }
.db-order-ico.is-cancelled { background: linear-gradient(135deg, #F87171, #DC2626); }
.db-order strong { display: block; color: var(--sa-navy); font-size: 0.82rem; }
.db-order em { display: block; font-style: normal; color: #6B7F9C; font-size: 0.74rem; font-weight: 700; }
.db-order-side { display: grid; justify-items: end; gap: 3px; }
.db-order-side b { color: var(--sa-navy); font-size: 0.88rem; }
.db-order-side time { color: #7A8FA8; font-size: 0.68rem; font-weight: 700; }
.db-chip {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  background: #EEF3F8;
  color: #3D4F6A;
}
.db-chip.is-new { background: #FFF4E0; color: #C2410C; }
.db-chip.is-confirmed { background: #E6F0FF; color: #0D50AA; }
.db-chip.is-assembling { background: #DDF7EC; color: #0B6B46; }
.db-chip.is-shipped { background: #E0F2FE; color: #0369A1; }
.db-chip.is-delivered,
.db-chip.is-accepted { background: #E8FBF3; color: #0f7a55; }
.db-chip.is-cancelled { background: #FDECEC; color: #B42318; }

.db-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-top li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.db-top-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #F3F7FC;
  color: #5B7394;
  font-size: 0.72rem;
  font-weight: 800;
}
.db-top strong { display: block; color: var(--sa-navy); font-size: 0.84rem; }
.db-top em { display: block; font-style: normal; color: #7A8FA8; font-size: 0.72rem; font-weight: 700; }
.db-top b { color: #0D50AA; font-size: 0.84rem; }

.db-debt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.db-debt-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  background: #FFF8F6;
  border: 1px solid #F6D5D0;
  text-decoration: none;
}
.db-debt-item strong { color: var(--sa-navy); }
.db-debt-item em { font-style: normal; color: #7A8FA8; font-size: 0.74rem; font-weight: 700; }
.db-debt-item b { color: #B42318; }

.db-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.db-action {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #E1EAF5;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.db-action:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(13, 37, 76, 0.08); }
.db-action.is-orders { background: linear-gradient(180deg, #F4F8FF, #fff); }
.db-action.is-catalog { background: linear-gradient(180deg, #F6F2FF, #fff); }
.db-action.is-fin { background: linear-gradient(180deg, #F3FBF6, #fff); }
.db-action.is-del { background: linear-gradient(180deg, #F0FBFF, #fff); }
.db-action-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.db-action.is-orders .db-action-ico { background: linear-gradient(135deg, #34D399, #059669); }
.db-action.is-catalog .db-action-ico { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.db-action.is-fin .db-action-ico { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.db-action.is-del .db-action-ico { background: linear-gradient(135deg, #22D3EE, #0284C7); }
.db-action strong { color: var(--sa-navy); }
.db-action em { font-style: normal; color: #6B7F9C; font-size: 0.74rem; line-height: 1.35; font-weight: 600; }

@media (max-width: 1100px) {
  .db-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db-grid,
  .db-alerts,
  .db-tips,
  .db-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .db-stats,
  .db-grid,
  .db-alerts,
  .db-tips,
  .db-actions,
  .db-debt { grid-template-columns: 1fr; }
  .db-order { grid-template-columns: 32px minmax(0, 1fr); }
  .db-order-side { grid-column: 2; justify-items: start; }
}

.logo-panel-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: #E8F1FF;
  display: grid;
  place-items: center;
  color: #0D50AA;
  font-size: 1.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-preview.is-empty { background: #F3F7FC; color: #6B7F9C; }
.logo-form { flex: 1; min-width: 220px; }
.logo-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.logo-actions .btn { width: auto; margin: 0; }
.logo-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 8px 8px 8px;
  border: 1px dashed #C5D6EC;
  border-radius: 14px;
  background: #F7FAFE;
  cursor: pointer;
}
.logo-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.logo-file span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0D50AA;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}
.logo-file em {
  font-style: normal;
  color: #6B7F9C;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
