/* ==========================================================================
   GurtParts UI — единая дизайн-система портала GERMAT SK s.r.o.
   Подключается последней и только для gurtparts.eu (см. head.htm).
   Все правила ограничены body.portal-site-gurt; :not(#gp) поднимает
   специфичность над общими модульными стилями остальных порталов
   (OCarParts, GreenTech24, RentRem24) без !important.
   ========================================================================== */

body.portal-site-gurt:not(#gp) {
  --g-font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --g-bg: #f3f1ed;
  --g-surface: #ffffff;
  --g-surface-2: #f8f6f3;
  --g-surface-3: #efebe5;
  --g-line: #e4dfd7;
  --g-line-soft: #eeeae4;
  --g-line-strong: #cfc8bd;

  --g-ink: #1d1b18;
  --g-text: #3a362f;
  --g-muted: #736c62;

  --g-graphite: #1f1d1a;
  --g-graphite-2: #2a2723;
  --g-graphite-line: #3a3631;
  --g-on-dark: #f4efe7;
  --g-on-dark-muted: #b3aca1;

  --g-accent: #b4600e;
  --g-accent-hover: #964f0b;
  --g-accent-soft: #fbf0e3;
  --g-accent-line: #edcfa9;
  --g-accent-bright: #ec9a45;
  --g-ring: 0 0 0 3px rgba(180, 96, 14, .2);

  --g-success: #1d7a4c;
  --g-success-soft: #e5f3ea;
  --g-success-line: #bfe0cc;
  --g-warning: #8a5d00;
  --g-warning-soft: #fdf3d8;
  --g-warning-line: #efd898;
  --g-danger: #b1352e;
  --g-danger-soft: #fbeae8;
  --g-danger-line: #efc2bd;
  --g-info: #2c6590;
  --g-info-soft: #e8f1f8;
  --g-info-line: #c3d9ea;

  --g-r-sm: 6px;
  --g-r: 10px;
  --g-r-lg: 14px;
  --g-shadow-sm: 0 1px 2px rgba(29, 27, 24, .05);
  --g-shadow: 0 1px 2px rgba(29, 27, 24, .04), 0 6px 20px rgba(29, 27, 24, .05);
  --g-shadow-lg: 0 24px 64px rgba(29, 27, 24, .22);

  /* Переменные модулей переводятся на общие токены. */
  --light-bg: var(--g-bg);
  --light-surface: var(--g-surface);
  --light-surface-soft: var(--g-surface-2);
  --light-ink: var(--g-ink);
  --light-text: var(--g-text);
  --light-muted: var(--g-muted);
  --light-line: var(--g-line);
  --light-blue: var(--g-accent);
  --light-blue-dark: var(--g-accent-hover);
  --light-blue-soft: var(--g-accent-soft);
  --light-shadow: var(--g-shadow);

  --dashboard-accent: var(--g-accent);
  --dashboard-accent-dark: var(--g-accent-hover);
  --dashboard-accent-soft: var(--g-accent-soft);
  --dashboard-ink: var(--g-ink);
  --dashboard-canvas: var(--g-bg);

  --pu-accent: var(--g-accent);
  --pu-accent-dark: var(--g-accent-hover);
  --pu-ink: var(--g-ink);
  --pu-surface: var(--g-bg);

  --pl-green: var(--g-accent);
  --pl-green-dark: var(--g-accent-hover);
  --pl-green-soft: var(--g-accent-soft);
  --pl-ink: var(--g-ink);
  --pl-muted: var(--g-muted);
  --pl-line: var(--g-line);
  --pl-amber: #d89b2b;
  --pl-amber-soft: var(--g-warning-soft);

  --ah-ink: var(--g-ink);
  --ah-blue: var(--g-accent);
  --ah-blue-dark: var(--g-accent-hover);
  --ah-mint: var(--g-accent-soft);
  --ah-line: var(--g-line);
  --ah-danger: var(--g-danger);
  --ah-warn-bg: var(--g-warning-soft);

  --portal-border: var(--g-line-strong);
  --portal-surface: var(--g-surface);
  --portal-muted: var(--g-muted);

  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 14px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.portal-site-gurt.sto-review-page:not(#gp) {
  --sto-ink: var(--g-ink);
  --sto-muted: var(--g-muted);
  --sto-line: var(--g-line);
  --sto-bg: var(--g-bg);
  --sto-card: var(--g-surface);
  --sto-green: var(--g-accent);
  --sto-green-2: var(--g-accent);
  --sto-soft: var(--g-accent-soft);
  --sto-amber: #c98a1c;
  --sto-red: var(--g-danger);
  --sto-blue: var(--g-info);
  --sto-shadow: var(--g-shadow);
}

body.portal-site-gurt:not(#gp) .manual-order-shell,
body.portal-site-gurt:not(#gp) .manual-order-theme-gurt {
  --mo-accent: var(--g-accent);
  --mo-accent-soft: var(--g-accent-soft);
  --mo-rgb: 180, 96, 14;
}

/* --------------------------------------------------------------------------
   1. Типографика: один шрифт на весь портал
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :not(code):not(pre):not(kbd):not(samp) {
  font-family: var(--g-font);
}

body.portal-site-gurt:not(#gp) :is(h1, h2, h3, h4, h5) {
  color: var(--g-ink);
  font-weight: 650;
  letter-spacing: -.015em;
}

body.portal-site-gurt:not(#gp) a { color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) a:hover { color: var(--g-accent); }

body.portal-site-gurt:not(#gp) :is(td, th, .od-money, .gi-money, .cw-number, .od-kpis strong, .pu-stat strong, .pl-metrics strong, .gi-stats strong, .sto-summary strong, .cw-kpis strong) {
  font-variant-numeric: tabular-nums;
}

body.portal-site-gurt:not(#gp) ::selection { background: #f3d6b3; color: var(--g-ink); }

body.portal-site-gurt:not(#gp) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: var(--g-ring);
  outline: 0;
}

/* --------------------------------------------------------------------------
   2. Верхняя навигация — графит, как на странице входа
   -------------------------------------------------------------------------- */

body.portal-site-gurt.portal-auth:not(#gp) > nav.navbar {
  backdrop-filter: none;
  background: var(--g-graphite) !important;
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 4px 18px rgba(0, 0, 0, .12);
  min-height: 60px;
  padding: 8px 20px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-brand {
  align-items: center;
  color: var(--g-on-dark) !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: -.01em;
  margin-right: 18px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-brand::before {
  background: var(--g-accent);
  border-radius: 8px;
  box-shadow: none;
  color: #fff;
  content: attr(data-portal-mark);
  font-size: 11px;
  font-weight: 750;
  height: 32px;
  letter-spacing: .02em;
  transform: none;
  width: 32px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-nav { align-items: center; gap: 2px; }

body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--g-on-dark-muted) !important;
  font-size: 13.5px;
  font-weight: 500;
  margin: 0;
  padding: 8px 11px !important;
  position: relative;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link:hover,
body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link:focus {
  background: rgba(255, 255, 255, .06);
  color: var(--g-on-dark) !important;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link.active {
  background: rgba(236, 154, 69, .12);
  color: #fff !important;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link.active::after {
  background: var(--g-accent-bright);
  border-radius: 2px;
  bottom: -9px;
  content: "";
  height: 2px;
  left: 11px;
  position: absolute;
  right: 11px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-toggle::after { opacity: .55; vertical-align: .18em; }

body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-menu {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(29, 27, 24, .18);
  margin-top: 10px;
  min-width: 240px;
  padding: 6px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-item {
  border-radius: 8px;
  color: var(--g-text);
  font-size: 13.5px;
  padding: 9px 12px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-item:hover,
body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-item:focus {
  background: var(--g-surface-2);
  color: var(--g-ink);
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-item.active {
  background: var(--g-accent-soft);
  color: var(--g-accent-hover);
  font-weight: 600;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-text {
  color: var(--g-on-dark-muted) !important;
  font-size: 12.5px !important;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .btn-outline-light {
  background: transparent;
  border: 1px solid var(--g-graphite-line);
  border-radius: 8px;
  color: var(--g-on-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .btn-outline-light:hover,
body.portal-site-gurt.portal-auth:not(#gp) > nav .btn-outline-light:focus {
  background: rgba(255, 255, 255, .08);
  border-color: #57524a;
  color: #fff;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-toggler {
  border-color: var(--g-graphite-line);
  border-radius: 8px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(244,239,231,.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Поиск наличия в шапке */
body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--g-graphite-line);
  border-radius: 10px;
  height: 40px;
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search:focus-within {
  background: rgba(255, 255, 255, .1);
  border-color: var(--g-accent-bright);
  box-shadow: 0 0 0 3px rgba(236, 154, 69, .18);
}

body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search__icon { color: var(--g-on-dark-muted); }
body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search input { color: var(--g-on-dark); font-size: 13.5px; }
body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search input::placeholder { color: #8d867b; }

body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search > button[type="submit"] {
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  height: 30px;
  margin-right: 4px;
  padding: 0 13px;
  transform: none;
}

body.portal-site-gurt:not(#gp) .ah-suggestions { border-radius: 12px; }
body.portal-site-gurt:not(#gp) .ah-suggestions > .ah-suggestion { border-radius: 8px; }
body.portal-site-gurt:not(#gp) .ah-drawer { border-radius: 16px; }
body.portal-site-gurt:not(#gp) .ah-result-hero { background: var(--g-surface-2); border: 1px solid var(--g-line); border-radius: 12px; }
body.portal-site-gurt:not(#gp) .ah-close { background: var(--g-surface-3); color: var(--g-text); }
body.portal-site-gurt:not(#gp) .ah-catalog-message,
body.portal-site-gurt:not(#gp) .ah-replacement { background: var(--g-info-soft); border-color: var(--g-info-line); color: var(--g-info); }
body.portal-site-gurt:not(#gp) .ah-status { background: var(--g-success-soft); color: var(--g-success); }
body.portal-site-gurt:not(#gp) .ah-button { border-radius: 10px; }
body.portal-site-gurt:not(#gp) .ah-button--secondary { border-color: var(--g-line-strong); }
body.portal-site-gurt:not(#gp) .ah-toast { background: var(--g-graphite); }

/* --------------------------------------------------------------------------
   3. Холст и контейнеры страниц
   -------------------------------------------------------------------------- */

body.portal-site-gurt.portal-auth:not(#gp)::before { display: none; }

body.portal-site-gurt.portal-auth:not(#gp) > main.bd-content {
  background: var(--g-bg);
  min-height: calc(100vh - 60px);
  padding: 1px 0 56px;
}

body.portal-site-gurt.portal-inner:not(#gp) .bd-content > .container {
  backdrop-filter: none;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-lg);
  box-shadow: var(--g-shadow);
  color: var(--g-text);
  margin: 28px auto;
  max-width: 1180px;
  padding: 0 28px 28px;
}

body.portal-site-gurt.portal-inner:not(#gp) .bd-content > .container .page-header {
  background: transparent;
  border-bottom: 1px solid var(--g-line);
  border-radius: 0;
  padding: 24px 0 18px;
}

body.portal-site-gurt.portal-inner:not(#gp) .bd-content > .container .page-header h1 { color: var(--g-ink); font-size: 26px; margin: 0 0 4px; }
body.portal-site-gurt.portal-inner:not(#gp) .bd-content > .container .page-header p { color: var(--g-muted); }

body.portal-site-gurt:not(#gp) :is(.portal-kicker, .od-eyebrow, .pu-kicker, .pl-kicker, .gi-eyebrow, .sto-eyebrow, .manual-order-kicker, .dashboard-eyebrow, .ah-eyebrow, .cw-section-head span, .dashboard-section-heading p, .dashboard-panel-heading p, .dashboard-notice > p, .pu-client-files__head > div > span, .pu-modal__eyebrow) {
  color: var(--g-accent) !important;
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.portal-site-gurt:not(#gp) .pu-kicker::before { background: var(--g-accent); height: 3px; width: 18px; }

body.portal-site-gurt:not(#gp) :is(.od-shell, .cw-shell, .pu-page, .pl-shell, .gi, .sto-shell, .supplier-tool, .notice-shell, .invoice-page) {
  backdrop-filter: none;
  color: var(--g-text);
}

body.portal-site-gurt:not(#gp) :is(.od-shell, .supplier-tool, .notice-shell, .pu-page, .invoice-page) {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.portal-site-gurt:not(#gp) :is(.od-shell, .cw-shell, .pl-shell, .gi, .sto-shell, .pu-wrap) { max-width: 1320px; }
body.portal-site-gurt:not(#gp) .od-shell { padding: 24px 24px 56px; }
body.portal-site-gurt:not(#gp) .pu-page { min-height: 0; padding: 24px 24px 56px; }
body.portal-site-gurt:not(#gp) .cw-shell { padding: 24px 24px 56px; }
body.portal-site-gurt:not(#gp) .pl-shell { padding: 24px 24px 56px; }
body.portal-site-gurt:not(#gp) .gi { margin-top: 24px; }
body.portal-site-gurt:not(#gp) .sto-shell { padding: 24px 24px 56px; }

/* --------------------------------------------------------------------------
   4. Заголовочные блоки разделов — одна светлая «шапка страницы»
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .gi-hero, .sto-hero, .supplier-hero, .notice-hero, .manual-order-hero) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-lg);
  box-shadow: var(--g-shadow);
  color: var(--g-text);
  margin: 0 0 18px;
  min-height: 0;
  overflow: hidden;
  padding: 24px 28px;
  position: relative;
}

body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .gi-hero, .sto-hero, .supplier-hero, .notice-hero, .manual-order-hero)::before {
  background: var(--g-accent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .sto-hero, .manual-order-hero)::after,
body.portal-site-gurt:not(#gp) .pu-hero:after,
body.portal-site-gurt:not(#gp) .pl-hero:after { display: none; }

body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .gi-hero, .sto-hero, .supplier-hero, .notice-hero) h1 {
  color: var(--g-ink) !important;
  font-size: clamp(24px, 2.6vw, 30px) !important;
  font-weight: 650;
  letter-spacing: -.02em !important;
  line-height: 1.15;
  margin: 6px 0 6px !important;
}

body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .gi-hero, .sto-hero, .supplier-hero, .notice-hero) p {
  color: var(--g-muted) !important;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

body.portal-site-gurt:not(#gp) .gi .gi-hero { border-bottom: 1px solid var(--g-line); }
body.portal-site-gurt:not(#gp) .gi-period,
body.portal-site-gurt:not(#gp) .gi-hero-actions small { color: var(--g-muted); }

/* Ручной заказ: шапка + вкладки + панель образуют одну карточку */
body.portal-site-gurt:not(#gp) .manual-order-hero {
  border-radius: var(--g-r-lg) var(--g-r-lg) 0 0;
  box-shadow: none;
  margin: 0;
}
body.portal-site-gurt:not(#gp) .manual-order-mark {
  background: var(--g-accent-soft);
  border: 1px solid var(--g-accent-line);
  border-radius: 12px;
  box-shadow: none;
  color: var(--g-accent-hover);
  flex-basis: 48px;
  height: 48px;
  width: 48px;
}
body.portal-site-gurt:not(#gp) .manual-order-hero strong { color: var(--g-ink); font-size: 22px; font-weight: 650; }
body.portal-site-gurt:not(#gp) .manual-order-hero small { color: var(--g-muted); }

/* Блок выбора месяца в распределении */
body.portal-site-gurt:not(#gp) .od-month {
  background: var(--g-surface-2);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: none;
  color: var(--g-text);
}
body.portal-site-gurt:not(#gp) .od-month label { color: var(--g-text); font-weight: 600; }
body.portal-site-gurt:not(#gp) .od-month input { border: 1px solid var(--g-line-strong); }

body.portal-site-gurt:not(#gp) .pu-status,
body.portal-site-gurt:not(#gp) .cw-hero-output {
  backdrop-filter: none;
  background: var(--g-surface-2);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: none;
}
body.portal-site-gurt:not(#gp) :is(.pu-status span, .pu-status small, .cw-hero-output small, .cw-hero-output span) { color: var(--g-muted); }
body.portal-site-gurt:not(#gp) :is(.pu-status strong, .cw-hero-output strong) { color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .cw-hero-output .cw-output-mark {
  align-items: center;
  background: var(--g-accent);
  border-color: var(--g-accent);
  border-radius: 10px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  flex: 0 0 52px;
  font-size: 11px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  width: 52px;
}
body.portal-site-gurt:not(#gp) .cw-step-badge { background: var(--g-accent-soft); border-color: var(--g-accent-line); color: var(--g-accent-hover); }

/* --------------------------------------------------------------------------
   5. Карточки, панели, KPI
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.od-card, .cw-card, .pu-panel, .pu-client-files, .pl-card, .pl-filters, .gi-panel, .sto-card, .supplier-panel, .notice-card, .notice-category-panel, .notice-search, .dashboard-panel, .invoice-page .card, .cw-status-card) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: var(--g-r-lg);
  box-shadow: var(--g-shadow-sm);
  color: var(--g-text);
}

body.portal-site-gurt:not(#gp) :is(.od-kpis article, .cw-kpis article, .pu-stat, .pl-metrics article, .gi-stats > button, .gi-stats > div, .sto-summary article) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: var(--g-shadow-sm);
  color: var(--g-text);
  padding: 16px 18px;
}

body.portal-site-gurt:not(#gp) .gi-stats > button:hover { background: var(--g-surface-2); border-color: var(--g-accent-line); }
body.portal-site-gurt:not(#gp) .pl-metrics :is(.received, .shipping, .waiting, .value, .coverage) { border-top: 1px solid var(--g-line); }
body.portal-site-gurt:not(#gp) .pl-metrics .waiting { box-shadow: inset 0 3px 0 #d89b2b, var(--g-shadow-sm); }

body.portal-site-gurt:not(#gp) :is(.od-kpis span, .cw-kpis span, .pl-metrics span, .gi-stats span, .sto-summary span) {
  color: var(--g-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  min-height: 0;
  text-transform: none;
}

body.portal-site-gurt:not(#gp) :is(.od-kpis strong, .cw-kpis strong, .pu-stat strong, .pl-metrics strong, .gi-stats strong, .sto-summary strong) {
  color: var(--g-ink) !important;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 4px;
}

body.portal-site-gurt:not(#gp) :is(.od-kpis small, .pl-metrics small, .gi-stats small, .pu-stat small) { color: var(--g-muted); font-size: 12px; }
body.portal-site-gurt:not(#gp) .pu-stat i { background: var(--g-accent-soft); border-radius: 6px; color: var(--g-accent-hover); }

body.portal-site-gurt:not(#gp) :is(.od-section-head h2, .cw-section-head h2, .pu-panel h2, .pl-card-head h2, .sto-card-head h2, .pu-client-files__head h2) {
  color: var(--g-ink) !important;
  font-size: 19px;
  font-weight: 650;
}

body.portal-site-gurt:not(#gp) :is(.od-section-head > span, .cw-section-head small, .pl-card-head small) { color: var(--g-muted); font-size: 13px; }

body.portal-site-gurt:not(#gp) :is(.od-empty, .cw-empty, .pu-empty, .gi-empty, .dashboard-empty, .manual-order-empty, .pu-client-files__locked) {
  background: var(--g-surface-2);
  border: 1px dashed var(--g-line-strong);
  border-radius: 12px;
  color: var(--g-muted);
}

body.portal-site-gurt:not(#gp) .pu-client-file-grid article,
body.portal-site-gurt:not(#gp) .pu-client-file-grid .pu-client-file--plain,
body.portal-site-gurt:not(#gp) .pu-client-file-grid .pu-client-file--accessory { background: var(--g-surface-2); border-color: var(--g-line); border-radius: 12px; }
body.portal-site-gurt:not(#gp) .pu-client-file-grid article > b { background: var(--g-graphite); border-radius: 8px; }
body.portal-site-gurt:not(#gp) .pu-download { background: var(--g-accent-soft); border-color: var(--g-accent-line); border-radius: 12px; }

/* --------------------------------------------------------------------------
   6. Вкладки и подменю разделов
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.od-order-menu, .cw-subnav) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: var(--g-shadow-sm);
  gap: 4px;
  padding: 4px;
}

body.portal-site-gurt:not(#gp) .od-order-menu { margin: 20px auto 0; max-width: 1272px; }

body.portal-site-gurt:not(#gp) :is(.od-order-menu-link, .cw-subnav-link) {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  color: var(--g-text);
  min-height: 0;
  padding: 10px 14px;
  transform: none;
}

body.portal-site-gurt:not(#gp) :is(.od-order-menu-link, .cw-subnav-link):hover {
  background: var(--g-surface-2);
  border-color: transparent;
  color: var(--g-ink);
  transform: none;
}

body.portal-site-gurt:not(#gp) :is(.od-order-menu-link, .cw-subnav-link).active {
  background: var(--g-accent-soft);
  border-color: var(--g-accent-line);
  box-shadow: none;
  color: var(--g-ink);
}

body.portal-site-gurt:not(#gp) :is(.od-order-menu-link strong, .cw-subnav-link strong) { font-size: 14px; font-weight: 600; }
body.portal-site-gurt:not(#gp) :is(.od-order-menu-link small, .od-order-menu-link span, .cw-subnav-link small, .od-order-menu-link.active small, .od-order-menu-link.active span, .cw-subnav-link.active small) { color: var(--g-muted); font-size: 12px; }

body.portal-site-gurt:not(#gp) .cw-subnav-number { background: var(--g-surface-3); border: 0; border-radius: 8px; color: var(--g-text); }
body.portal-site-gurt:not(#gp) .cw-subnav-link.active .cw-subnav-number { background: var(--g-accent); color: #fff; }

body.portal-site-gurt:not(#gp) .od-tabs { gap: 4px; }
body.portal-site-gurt:not(#gp) .od-tabs a {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 8px;
  color: var(--g-text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
}
body.portal-site-gurt:not(#gp) .od-tabs a:hover { background: var(--g-accent-soft); border-color: var(--g-accent-line); color: var(--g-accent-hover); text-decoration: none; }

body.portal-site-gurt:not(#gp) .manual-order-tabs {
  background: var(--g-surface-2);
  border: 1px solid var(--g-line);
  border-top: 0;
  gap: 4px;
  padding: 8px;
}
body.portal-site-gurt:not(#gp) .manual-order-tab {
  background: transparent;
  border-radius: 8px;
  color: var(--g-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  transform: none;
}
body.portal-site-gurt:not(#gp) .manual-order-tab:hover { background: var(--g-surface-3); color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .manual-order-tab.is-active { background: var(--g-surface); box-shadow: 0 0 0 1px var(--g-line), var(--g-shadow-sm); color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .manual-order-panel { border-color: var(--g-line); border-radius: 0 0 var(--g-r-lg) var(--g-r-lg); box-shadow: var(--g-shadow-sm); }

/* --------------------------------------------------------------------------
   7. Таблицы
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.od-table-wrap, .cw-table-wrap, .manual-order-table-wrap, .manual-order-preview) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
}

body.portal-site-gurt:not(#gp) :is(.od-table-wrap th, .cw-table-wrap th, .manual-order-table th, .manual-order-preview th, .pu-table th, .pl-table th, .gi th, .table thead th, .dashboard-shell th) {
  background: var(--g-surface-2);
  border-bottom: 1px solid var(--g-line);
  border-top: 0;
  color: var(--g-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

body.portal-site-gurt:not(#gp) :is(.od-table-wrap td, .cw-table-wrap td, .manual-order-table td, .manual-order-preview td, .pu-table td, .pl-table td, .gi td, .table td) {
  background: transparent;
  border-color: var(--g-line-soft);
  color: var(--g-text);
  font-size: 13px;
}

body.portal-site-gurt:not(#gp) :is(.od-table-wrap, .cw-table-wrap, .pl-table, .gi, .table) tbody tr:hover,
body.portal-site-gurt:not(#gp) .pl-table tr:hover td,
body.portal-site-gurt:not(#gp) .pl-table tr.selected td { background: #faf7f2; }

body.portal-site-gurt:not(#gp) :is(.cw-table-wrap code, .pu-table code) { background: var(--g-surface-3); border-radius: 5px; color: var(--g-ink); padding: 2px 6px; }
body.portal-site-gurt:not(#gp) .manual-order-preview-title { background: var(--g-surface-2); border-bottom: 1px solid var(--g-line); color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .manual-order-table .manual-customer { background: var(--g-surface-2); color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .pl-part,
body.portal-site-gurt:not(#gp) .gi .gi-invoice-number { color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .gi-unread td:first-child { border-left-color: var(--g-accent); }
body.portal-site-gurt:not(#gp) .gi-type { background: var(--g-surface-3); color: var(--g-text); }

/* --------------------------------------------------------------------------
   8. Кнопки
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.btn, .od-primary, .od-button, .od-mini, .pu-button, .sto-button, .dashboard-primary, .dashboard-result-primary, .dashboard-result-secondary, .pl-export, .pl-filters button, .pl-maintenance button, .gi button, .manual-icon-button, .cw-send-mail, .cw-remove-item, .cw-download) {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

body.portal-site-gurt:not(#gp) :is(.btn, .od-primary, .od-button, .pu-button, .sto-button, .dashboard-primary, .pl-export, .pl-filters button, .pl-maintenance button) {
  font-size: 14px;
  min-height: 40px;
}

/* Обычные списки селекторов (не :is): у каждого своя специфичность,
   поэтому модификатор (.pu-button--primary) побеждает базовый класс по порядку. */

/* Второстепенное действие */
body.portal-site-gurt:not(#gp) .btn-secondary,
body.portal-site-gurt:not(#gp) .btn-light,
body.portal-site-gurt:not(#gp) .btn-outline-secondary,
body.portal-site-gurt:not(#gp) .btn-outline-info,
body.portal-site-gurt:not(#gp) .btn-outline-primary,
body.portal-site-gurt:not(#gp) .od-button,
body.portal-site-gurt:not(#gp) .od-mini,
body.portal-site-gurt:not(#gp) .pu-button,
body.portal-site-gurt:not(#gp) .sto-button-secondary,
body.portal-site-gurt:not(#gp) .sto-button-ghost,
body.portal-site-gurt:not(#gp) .dashboard-result-secondary,
body.portal-site-gurt:not(#gp) .ah-button--secondary,
body.portal-site-gurt:not(#gp) .manual-icon-button,
body.portal-site-gurt:not(#gp) .pu-client-file-grid article a,
body.portal-site-gurt:not(#gp) #giViewer button {
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  color: var(--g-text) !important;
}

body.portal-site-gurt:not(#gp) .btn-secondary:hover,
body.portal-site-gurt:not(#gp) .btn-light:hover,
body.portal-site-gurt:not(#gp) .btn-outline-secondary:hover,
body.portal-site-gurt:not(#gp) .btn-outline-info:hover,
body.portal-site-gurt:not(#gp) .btn-outline-primary:hover,
body.portal-site-gurt:not(#gp) .od-button:hover,
body.portal-site-gurt:not(#gp) .od-mini:hover,
body.portal-site-gurt:not(#gp) .pu-button:hover,
body.portal-site-gurt:not(#gp) .sto-button-secondary:hover,
body.portal-site-gurt:not(#gp) .sto-button-ghost:hover,
body.portal-site-gurt:not(#gp) .dashboard-result-secondary:hover,
body.portal-site-gurt:not(#gp) .ah-button--secondary:hover,
body.portal-site-gurt:not(#gp) .manual-icon-button:hover,
body.portal-site-gurt:not(#gp) .pu-client-file-grid article a:hover,
body.portal-site-gurt:not(#gp) #giViewer button:hover {
  background: var(--g-surface-2);
  border-color: #b9b0a3;
  color: var(--g-ink) !important;
}

/* Основное действие */
body.portal-site-gurt:not(#gp) .btn-success,
body.portal-site-gurt:not(#gp) .btn-primary,
body.portal-site-gurt:not(#gp) .btn-warning,
body.portal-site-gurt:not(#gp) .od-primary,
body.portal-site-gurt:not(#gp) .pu-button--primary,
body.portal-site-gurt:not(#gp) .sto-button-primary,
body.portal-site-gurt:not(#gp) .dashboard-primary,
body.portal-site-gurt:not(#gp) .dashboard-result-primary,
body.portal-site-gurt:not(#gp) .ah-button--primary,
body.portal-site-gurt:not(#gp) .pl-export,
body.portal-site-gurt:not(#gp) .pl-filters button,
body.portal-site-gurt:not(#gp) .pl-maintenance button,
body.portal-site-gurt:not(#gp) .gi button,
body.portal-site-gurt:not(#gp) .od-month button,
body.portal-site-gurt:not(#gp) .cw-shell .btn-success,
body.portal-site-gurt:not(#gp) #giViewer button[aria-pressed=true] {
  background: var(--g-accent);
  border: 1px solid var(--g-accent);
  color: #fff !important;
}

body.portal-site-gurt:not(#gp) .btn-success:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .btn-primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .btn-warning:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .od-primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .pu-button--primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .sto-button-primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .dashboard-primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .dashboard-result-primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .ah-button--primary:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .pl-export:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .pl-filters button:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .pl-maintenance button:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .gi button:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .od-month button:is(:hover, :focus),
body.portal-site-gurt:not(#gp) .cw-shell .btn-success:is(:hover, :focus) {
  background: var(--g-accent-hover);
  border-color: var(--g-accent-hover);
  color: #fff !important;
}

/* Исключения внутри модулей, где button — не основное действие */
body.portal-site-gurt:not(#gp) .gi .gi-light,
body.portal-site-gurt:not(#gp) .pl-maintenance button.secondary {
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  color: var(--g-text) !important;
}
body.portal-site-gurt:not(#gp) .gi .gi-light:hover,
body.portal-site-gurt:not(#gp) .pl-maintenance button.secondary:hover { background: var(--g-surface-2); color: var(--g-ink) !important; }
body.portal-site-gurt:not(#gp) .gi .gi-text { background: transparent; border: 0; color: var(--g-muted) !important; }

body.portal-site-gurt:not(#gp) .gi .gi-stats > button {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  color: var(--g-text) !important;
  font-weight: 400;
}
body.portal-site-gurt:not(#gp) .gi .gi-stats > button:hover { background: var(--g-surface-2); border-color: var(--g-accent-line); }

body.portal-site-gurt:not(#gp) .gi .gi-invoice-number,
body.portal-site-gurt:not(#gp) .gi .gi-invoice-number:hover {
  background: transparent;
  border: 0;
  color: var(--g-accent-hover) !important;
  padding: 0;
}

body.portal-site-gurt:not(#gp) .btn-danger,
body.portal-site-gurt:not(#gp) .btn-outline-danger,
body.portal-site-gurt:not(#gp) .cw-remove-item,
body.portal-site-gurt:not(#gp) .od-remove-row,
body.portal-site-gurt:not(#gp) .manual-delete:hover {
  background: var(--g-surface);
  border: 1px solid var(--g-danger-line);
  color: var(--g-danger) !important;
}
body.portal-site-gurt:not(#gp) .btn-danger:hover,
body.portal-site-gurt:not(#gp) .btn-outline-danger:hover,
body.portal-site-gurt:not(#gp) .cw-remove-item:hover,
body.portal-site-gurt:not(#gp) .od-remove-row:hover { background: var(--g-danger-soft); }

body.portal-site-gurt:not(#gp) :is(.btn, button):disabled { cursor: not-allowed; opacity: .5; }

/* --------------------------------------------------------------------------
   9. Поля ввода
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.form-control, .custom-select, .custom-file-label, .od-upload input[type=file], .od-import input[type=file], .od-number, .od-code, .od-name, .od-month input, .gi-filters input, .gi-filters select, .pl-filters input, .pl-filters select, .sto-search input, .cw-row-input, .cw-row-select, .cw-row-note, .cw-field .form-control-file, .manual-order-table .form-control),
body.portal-site-gurt:not(#gp) .cw-shell .form-control,
body.portal-site-gurt:not(#gp) .sto-form-card :is(input:not([type="checkbox"]):not([type="file"]):not([type="radio"]), select, textarea),
body.portal-site-gurt:not(#gp) .sto-review-panel :is(select, textarea) {
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: 8px;
  box-shadow: none;
  color: var(--g-ink);
  font-size: 14px;
}

body.portal-site-gurt:not(#gp) :is(.form-control, .custom-select, .od-number, .od-code, .od-name, .gi-filters input, .gi-filters select, .pl-filters input, .pl-filters select, .sto-search input, .cw-row-input, .cw-row-select, .cw-row-note, .manual-order-table .form-control):focus,
body.portal-site-gurt:not(#gp) .cw-shell .form-control:focus,
body.portal-site-gurt:not(#gp) .sto-form-card :is(input, select, textarea):focus {
  background: var(--g-surface);
  border-color: var(--g-accent);
  box-shadow: var(--g-ring);
  color: var(--g-ink);
  outline: 0;
}

body.portal-site-gurt:not(#gp) .form-control::placeholder { color: #9a9387; }
body.portal-site-gurt:not(#gp) .custom-file-label::after { background: var(--g-surface-2); border-left: 1px solid var(--g-line); color: var(--g-text); }

body.portal-site-gurt:not(#gp) label,
body.portal-site-gurt:not(#gp) .gi-filters label,
body.portal-site-gurt:not(#gp) .pl-filters label span,
body.portal-site-gurt:not(#gp) .sto-form-card label,
body.portal-site-gurt:not(#gp) .sto-review-panel label {
  color: var(--g-text) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.portal-site-gurt:not(#gp) .dashboard-search label { color: var(--g-on-dark) !important; font-size: 15px; }

body.portal-site-gurt:not(#gp) input[type=file]::file-selector-button {
  background: var(--g-surface-2);
  border: 1px solid var(--g-line-strong);
  border-radius: 6px;
  color: var(--g-text);
  cursor: pointer;
  font: 500 13px var(--g-font);
  margin-right: 10px;
  padding: 6px 12px;
}
body.portal-site-gurt:not(#gp) input[type=file]::file-selector-button:hover { background: var(--g-surface-3); color: var(--g-ink); }

body.portal-site-gurt:not(#gp) :is(.form-text, .text-muted, .cw-field small, .cw-subline, .od-history-meta, .manual-order-intro, .manual-order-note, .gi-note, .gi td small) { color: var(--g-muted) !important; }

body.portal-site-gurt:not(#gp) :is(.cw-field, .cw-help-strip, .catalog-query-row, .cw-form-action, .gi-filters, .gi-part-hint, .sto-mobile-panel, .sto-confirm, .sto-progress-card, .sto-detail-box, .pl-maintenance, .pl-detail-grid > div, .manual-order-summary > div) {
  background: var(--g-surface-2);
  border-color: var(--g-line);
  box-shadow: none;
  color: var(--g-text);
}

body.portal-site-gurt:not(#gp) .cw-field { border-radius: 12px; transform: none; }
body.portal-site-gurt:not(#gp) .cw-field:focus-within { border-color: var(--g-accent); box-shadow: var(--g-ring); }
body.portal-site-gurt:not(#gp) .cw-field-head { color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .cw-field-head b { background: var(--g-accent-soft); border-color: var(--g-accent-line); color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .cw-help-strip > span { background: var(--g-info-soft); color: var(--g-info); }
body.portal-site-gurt:not(#gp) :is(.cw-help-strip p, .cw-form-action > span small) { color: var(--g-muted); }
body.portal-site-gurt:not(#gp) :is(.cw-help-strip strong, .cw-form-action > span) { color: var(--g-text); }
body.portal-site-gurt:not(#gp) .manual-order-summary strong { color: var(--g-ink); }
body.portal-site-gurt:not(#gp) :is(input[type=checkbox], input[type=radio]) { accent-color: var(--g-accent); }

/* --------------------------------------------------------------------------
   10. Статусы, бейджи, уведомления
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.od-pill, .od-source, .od-source-badge, .cw-pill, .cw-status, .pu-badge, .sto-status, .gi-badge, .ah-status, .badge) {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 4px 9px;
  text-transform: none;
}

body.portal-site-gurt:not(#gp) :is(.od-pill, .od-source-distribution, .od-source-badge.distribution, .cw-pill-success, .cw-status-success, .pu-badge--added, .sto-status.approved, .gi-badge, .badge-success) { background: var(--g-success-soft); color: var(--g-success) !important; }
body.portal-site-gurt:not(#gp) :is(.od-source-manual, .od-source-badge.manual, .cw-pill-warning, .cw-status-draft, .pu-badge--changed, .sto-status.needs_changes, .badge-warning) { background: var(--g-warning-soft); color: var(--g-warning) !important; }
body.portal-site-gurt:not(#gp) :is(.od-pill.od-bad, .cw-pill-danger, .cw-status-danger, .pu-badge--removed, .sto-status.rejected, .ah-status.is-blocked, .badge-danger) { background: var(--g-danger-soft); color: var(--g-danger) !important; }
body.portal-site-gurt:not(#gp) :is(.cw-status-info, .sto-status.submitted, .badge-info) { background: var(--g-info-soft); color: var(--g-info) !important; }
body.portal-site-gurt:not(#gp) :is(.sto-status.draft, .badge-secondary) { background: var(--g-surface-3); color: var(--g-text) !important; }

body.portal-site-gurt:not(#gp) :is(.od-notice, .alert, .cw-notice, .pl-message, .sto-notice, .gi-message, .dashboard-result-error, .cw-photo-summary) {
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

body.portal-site-gurt:not(#gp) :is(.od-info, .alert-info) { background: var(--g-info-soft); border-color: var(--g-info-line); color: var(--g-info); }
body.portal-site-gurt:not(#gp) :is(.od-success, .alert-success, .cw-success, .pl-message.success, .sto-notice, .gi-message, .cw-photo-summary) { background: var(--g-success-soft); border-color: var(--g-success-line); color: var(--g-success); }
body.portal-site-gurt:not(#gp) :is(.alert-warning, .cw-warning, .od-review) { background: var(--g-warning-soft); border-color: var(--g-warning-line); color: var(--g-warning); }
body.portal-site-gurt:not(#gp) :is(.od-error, .alert-danger, .cw-error, .pl-message.error, .sto-notice.sto-error, .gi-error, .dashboard-result-error) { background: var(--g-danger-soft); border-color: var(--g-danger-line); color: var(--g-danger); }
body.portal-site-gurt:not(#gp) :is(.od-info, .od-success, .od-error, .alert, .cw-notice) { border-left-color: currentColor; }
body.portal-site-gurt:not(#gp) .cw-photo-summary span { color: var(--g-success); }
body.portal-site-gurt:not(#gp) .alert { margin-left: 0; margin-right: 0; }

body.portal-site-gurt:not(#gp) :is(.od-history-downloads a, .cw-download) { background: var(--g-accent-soft); color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .cw-send-mail { background: var(--g-success-soft); border: 1px solid var(--g-success-line); color: var(--g-success); }
body.portal-site-gurt:not(#gp) .cw-confirmation-head { background: var(--g-accent-soft); border-color: var(--g-accent-line); }
body.portal-site-gurt:not(#gp) .cw-confirmation-head strong { color: var(--g-ink); }
body.portal-site-gurt:not(#gp) .cw-confirmation-head span { color: var(--g-muted); }
body.portal-site-gurt:not(#gp) .cw-confirmation-head b { background: var(--g-accent); color: #fff; }
body.portal-site-gurt:not(#gp) .cw-result-table tr.cw-row-confirmed { background: #f2f8f4; }

body.portal-site-gurt:not(#gp) .od-bar { background: var(--g-surface-3); }
body.portal-site-gurt:not(#gp) .od-bar i { background: var(--g-accent); }
body.portal-site-gurt:not(#gp) .od-collapsible > summary::after { background: var(--g-surface-3); color: var(--g-text); }

/* --------------------------------------------------------------------------
   11. Модальные окна и диалоги
   -------------------------------------------------------------------------- */

body.portal-site-gurt:not(#gp) :is(.modal-content, .pu-modal__card, .pl-detail-dialog, .dashboard-part-result) {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 16px;
  box-shadow: var(--g-shadow-lg);
  color: var(--g-text);
}
body.portal-site-gurt:not(#gp) :is(.modal-header, .modal-footer) { border-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .pu-modal__card::before { background: var(--g-accent); height: 4px; }
body.portal-site-gurt:not(#gp) .pu-modal__metrics strong { background: var(--g-surface-2); border-radius: 10px; color: var(--g-ink); }
body.portal-site-gurt:not(#gp) :is(.pu-modal__close, .pl-detail-close, .dashboard-result-close) { background: var(--g-surface-3); border: 0; color: var(--g-text) !important; }
body.portal-site-gurt:not(#gp) :is(.pu-modal__backdrop, .pl-detail-backdrop, .ah-backdrop) { background: rgba(20, 18, 15, .55); }
body.portal-site-gurt:not(#gp) :is(.dashboard-part-result, #giViewer, #giGelangensDialog)::backdrop { background: rgba(20, 18, 15, .6); }
body.portal-site-gurt:not(#gp) #giViewer { background: var(--g-bg); color: var(--g-text); }
body.portal-site-gurt:not(#gp) #giViewer header { background: var(--g-surface); border-bottom: 1px solid var(--g-line); }
body.portal-site-gurt:not(#gp) #giViewer a { color: var(--g-accent-hover); }

/* --------------------------------------------------------------------------
   12. Главная (dashboard)
   -------------------------------------------------------------------------- */

body.portal-site-gurt.dashboard-home:not(#gp) { background: var(--g-bg); }
body.portal-site-gurt.dashboard-home:not(#gp) > main.bd-content { background: var(--g-bg); }

body.portal-site-gurt:not(#gp) .dashboard-shell { max-width: 1240px; padding: 28px 24px 64px; }

body.portal-site-gurt:not(#gp) .dashboard-welcome { gap: 20px; margin-bottom: 20px; }
body.portal-site-gurt:not(#gp) .dashboard-welcome h1 { color: var(--g-ink); font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin: 6px 0 4px; }
body.portal-site-gurt:not(#gp) .dashboard-welcome > div > p:last-child { color: var(--g-muted); font-size: 14px; }

body.portal-site-gurt:not(#gp) .dashboard-primary {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  padding: 0 18px;
  white-space: nowrap;
}

/* Поиск детали — главный рабочий инструмент */
body.portal-site-gurt:not(#gp) .dashboard-search {
  background: var(--g-graphite);
  border: 1px solid #000;
  border-radius: var(--g-r-lg);
  box-shadow: var(--g-shadow);
  margin-bottom: 28px;
  padding: 22px 24px;
  position: relative;
}
body.portal-site-gurt:not(#gp) .dashboard-search label { color: var(--g-on-dark); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-search > div { gap: 8px; max-width: 760px; }
body.portal-site-gurt:not(#gp) .dashboard-search input {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--g-ink);
  font-size: 15px;
  min-height: 48px;
  padding: 0 16px;
}
body.portal-site-gurt:not(#gp) .dashboard-search input:focus { border-color: var(--g-accent-bright); box-shadow: 0 0 0 3px rgba(236, 154, 69, .3); }
body.portal-site-gurt:not(#gp) .dashboard-search button { background: var(--g-accent); border-radius: 10px; font-size: 14px; font-weight: 600; padding: 0 24px; }
body.portal-site-gurt:not(#gp) .dashboard-search button:hover { background: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .dashboard-search > small { color: var(--g-on-dark-muted); font-size: 12.5px; margin-top: 10px; }
body.portal-site-gurt:not(#gp) .dashboard-search.is-loading small { color: var(--g-accent-bright); }

body.portal-site-gurt:not(#gp) .dashboard-section { margin-top: 28px; }
body.portal-site-gurt:not(#gp) .dashboard-section-heading { margin-bottom: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-section-heading h2 { color: var(--g-ink); font-size: 19px; font-weight: 650; margin-top: 4px; }
body.portal-site-gurt:not(#gp) .dashboard-section-heading > span { color: var(--g-muted); font-size: 13px; }

body.portal-site-gurt:not(#gp) .dashboard-grid { gap: 12px; }

body.portal-site-gurt:not(#gp) .dashboard-card {
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  box-shadow: var(--g-shadow-sm);
  color: var(--g-ink);
  gap: 2px 14px;
  min-height: 84px;
  padding: 16px 18px;
  transform: none;
}
body.portal-site-gurt:not(#gp) .dashboard-card:is(:hover, :focus) {
  border-color: var(--g-accent-line);
  box-shadow: 0 0 0 3px var(--g-accent-soft), var(--g-shadow-sm);
  color: var(--g-ink);
  transform: none;
}

body.portal-site-gurt:not(#gp) .dashboard-icon {
  background: var(--g-surface-2) !important;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  color: var(--g-text) !important;
  font-size: 11px !important;
  font-weight: 700;
  height: 44px;
  letter-spacing: .02em;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  width: 44px;
}
body.portal-site-gurt:not(#gp) .dashboard-card:is(:hover, :focus) .dashboard-icon {
  background: var(--g-accent) !important;
  border-color: var(--g-accent);
  color: #fff !important;
}

body.portal-site-gurt:not(#gp) .dashboard-card-copy strong { color: var(--g-ink); font-size: 14.5px; font-weight: 600; }
body.portal-site-gurt:not(#gp) .dashboard-card-copy small { color: var(--g-muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
body.portal-site-gurt:not(#gp) .dashboard-arrow { color: #b3ab9f; font-size: 18px; }
body.portal-site-gurt:not(#gp) .dashboard-card:is(:hover, :focus) .dashboard-arrow { color: var(--g-accent); }

body.portal-site-gurt:not(#gp) .dashboard-lower-grid { gap: 12px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 28px; }
body.portal-site-gurt:not(#gp) :is(.dashboard-panel, .dashboard-notice) { border-radius: var(--g-r-lg); padding: 20px 22px; }
body.portal-site-gurt:not(#gp) .dashboard-panel-heading h2,
body.portal-site-gurt:not(#gp) .dashboard-notice h2 { color: var(--g-ink); font-size: 17px; font-weight: 650; margin: 4px 0 0; }
body.portal-site-gurt:not(#gp) .dashboard-panel-heading-row a { color: var(--g-accent-hover); font-size: 13px; font-weight: 600; }

body.portal-site-gurt:not(#gp) .dashboard-activity-list { margin-top: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-activity-list li { border-top-color: var(--g-line-soft); gap: 12px; padding: 12px 0; }
body.portal-site-gurt:not(#gp) .dashboard-activity-list strong { color: var(--g-ink); font-size: 13.5px; font-weight: 600; }
body.portal-site-gurt:not(#gp) .dashboard-activity-list small { color: var(--g-muted); font-size: 12.5px; }
body.portal-site-gurt:not(#gp) .dashboard-dot { flex-basis: 8px; }
body.portal-site-gurt:not(#gp) .dashboard-dot-green { background: var(--g-success); }
body.portal-site-gurt:not(#gp) .dashboard-dot-blue { background: var(--g-info); }
body.portal-site-gurt:not(#gp) .dashboard-dot-orange { background: var(--g-accent-bright); }
body.portal-site-gurt:not(#gp) .dashboard-empty strong { color: var(--g-text); font-size: 13.5px; }
body.portal-site-gurt:not(#gp) .dashboard-empty small { color: var(--g-muted); font-size: 12.5px; }

body.portal-site-gurt:not(#gp) .dashboard-notice { background: var(--g-surface); border: 1px solid var(--g-line); box-shadow: var(--g-shadow-sm); position: relative; overflow: hidden; }
body.portal-site-gurt:not(#gp) .dashboard-notice::before { background: var(--g-accent); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
body.portal-site-gurt:not(#gp) .dashboard-notice > span { color: var(--g-muted); font-size: 13.5px; line-height: 1.6; }
body.portal-site-gurt:not(#gp) .dashboard-notice > div { gap: 4px; margin-top: 14px; }
body.portal-site-gurt:not(#gp) .dashboard-notice a {
  border-radius: 8px;
  color: var(--g-accent-hover);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 -8px;
  padding: 6px 8px;
}
body.portal-site-gurt:not(#gp) .dashboard-notice a:hover { background: var(--g-accent-soft); text-decoration: none; }

/* Карточка найденной детали */
body.portal-site-gurt:not(#gp) .dashboard-part-result > header { border-bottom-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .dashboard-part-result > header span { color: var(--g-muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
body.portal-site-gurt:not(#gp) .dashboard-part-result > header h2 { color: var(--g-ink); font-size: 21px; }
body.portal-site-gurt:not(#gp) .dashboard-result-mark { background: var(--g-accent); border-radius: 12px; box-shadow: none; font-size: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-result-copy small,
body.portal-site-gurt:not(#gp) .dashboard-result-price small,
body.portal-site-gurt:not(#gp) .dashboard-result-facts > div > span { color: var(--g-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
body.portal-site-gurt:not(#gp) .dashboard-result-copy strong { color: var(--g-ink); font-size: 15px; }
body.portal-site-gurt:not(#gp) .dashboard-result-copy code { color: var(--g-muted); font-family: var(--g-font); font-size: 13px; }
body.portal-site-gurt:not(#gp) .dashboard-result-price strong { color: var(--g-ink); font-size: 24px; font-weight: 650; }
body.portal-site-gurt:not(#gp) .dashboard-result-price span { color: var(--g-muted); font-size: 11.5px; }
body.portal-site-gurt:not(#gp) .dashboard-result-facts { border-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .dashboard-result-facts > div { border-left-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .dashboard-result-facts strong { color: var(--g-ink); font-size: 13.5px; }
body.portal-site-gurt:not(#gp) .dashboard-result-facts small { color: var(--g-muted); font-size: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-result-facts strong i { background: #d89b2b; }
body.portal-site-gurt:not(#gp) .dashboard-result-facts strong i.is-positive { background: var(--g-success); }
body.portal-site-gurt:not(#gp) .dashboard-result-facts strong i.is-negative { background: var(--g-danger); }
body.portal-site-gurt:not(#gp) .dashboard-result-history { background: var(--g-surface-2); border: 1px solid var(--g-line); }
body.portal-site-gurt:not(#gp) .dashboard-result-history > i { background: var(--g-graphite); }
body.portal-site-gurt:not(#gp) .dashboard-result-history.has-history > i { background: var(--g-success); }
body.portal-site-gurt:not(#gp) .dashboard-result-history strong { color: var(--g-ink); font-size: 13px; }
body.portal-site-gurt:not(#gp) :is(.dashboard-result-history span, .dashboard-result-history a) { font-size: 12px; }
body.portal-site-gurt:not(#gp) .dashboard-result-history a { color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) .dashboard-part-result > footer > small { color: var(--g-muted); font-size: 12px; }
body.portal-site-gurt:not(#gp) :is(.dashboard-result-secondary, .dashboard-result-primary) { font-size: 13.5px; min-height: 40px; padding: 0 16px; }

/* Прочие модули: акценты зелёного → янтарь */
body.portal-site-gurt:not(#gp) .pl-hero { background: var(--g-surface); }
body.portal-site-gurt:not(#gp) .pl-history-link { color: var(--g-accent-hover); }
body.portal-site-gurt:not(#gp) :is(.pl-positive, .pl-price-down) { color: var(--g-success) !important; }
body.portal-site-gurt:not(#gp) .pl-price-up { color: var(--g-danger) !important; }
body.portal-site-gurt:not(#gp) .pl-waiting { color: var(--g-warning) !important; }
body.portal-site-gurt:not(#gp) .pu-history li::before { background: var(--g-accent); }
body.portal-site-gurt:not(#gp) :is(.sto-registry-item:hover, .sto-registry-item.active) { background: var(--g-surface-2); border-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .sto-review-panel { background: var(--g-surface-2); border-color: var(--g-line); }
body.portal-site-gurt:not(#gp) .sto-document-top > span { background: var(--g-info-soft); }
body.portal-site-gurt:not(#gp) :is(.sto-upload, .sto-photo-drop) { background: var(--g-surface-2); border-color: var(--g-line-strong); }
body.portal-site-gurt:not(#gp) :is(.sto-upload, .sto-photo-drop):hover { background: var(--g-accent-soft); border-color: var(--g-accent); }
body.portal-site-gurt:not(#gp) .sto-checklist div { color: var(--g-text); }

/* --------------------------------------------------------------------------
   13. Страница входа
   -------------------------------------------------------------------------- */

body.portal-site-gurt.portal-login:not(#gp) { background: #151412; color: var(--g-on-dark); }
body.portal-site-gurt.portal-login:not(#gp) .login-cover::before { background: var(--g-accent); height: 3px; }
body.portal-site-gurt.portal-login:not(#gp) .eyebrow { color: var(--g-accent-bright); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
body.portal-site-gurt.portal-login:not(#gp) .brand-title { color: #fff; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
body.portal-site-gurt.portal-login:not(#gp) .brand-copy { color: #c9c2b8; font-size: 15px; }
body.portal-site-gurt.portal-login:not(#gp) .login-card {
  background: var(--g-surface);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color: var(--g-text);
  padding: 32px;
}
body.portal-site-gurt.portal-login:not(#gp) .login-card h1 { color: var(--g-ink); font-size: 24px; font-weight: 650; }
body.portal-site-gurt.portal-login:not(#gp) .login-card .intro { color: var(--g-muted); }
body.portal-site-gurt.portal-login:not(#gp) .login-card .form-control { border-radius: 10px; height: 48px; }
body.portal-site-gurt.portal-login:not(#gp) .login-card .btn { border-radius: 10px; font-size: 15px; min-height: 48px; }
body.portal-site-gurt.portal-login:not(#gp) :is(.security-note, .company-details) { color: var(--g-muted); font-size: 12px; }
body.portal-site-gurt.portal-login:not(#gp) .company-details { border-top-color: var(--g-line); }
body.portal-site-gurt.portal-login:not(#gp) .company-details strong { color: var(--g-ink); }

/* --------------------------------------------------------------------------
   14. Адаптивность и доступность
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
  body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1439.98px) {
  body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-brand { font-size: 0; gap: 0; margin-right: 10px; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-text { display: none; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link { font-size: 13px; padding: 8px 8px !important; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link.active::after { left: 8px; right: 8px; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-availability { margin: 0 8px; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search { min-width: 0; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search input { width: 110px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.portal-site-gurt.portal-auth:not(#gp) > nav { padding-left: 12px; padding-right: 12px; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link { font-size: 12.5px; padding: 8px 6px !important; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search__icon { display: none; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .ah-search input { width: 90px; }
}

@media (max-width: 991.98px) {
  body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-collapse {
    background: var(--g-graphite-2);
    border: 1px solid var(--g-graphite-line);
    border-radius: 12px;
    box-shadow: none;
    margin-top: 8px;
    padding: 8px;
  }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-nav { align-items: stretch; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .nav-link.active::after { display: none; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .dropdown-menu { box-shadow: none; margin: 2px 0 6px; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .navbar-text { display: block; margin: 6px 11px; max-width: none; }
  body.portal-site-gurt.portal-auth:not(#gp) > nav .btn-outline-light { width: 100%; }
  body.portal-site-gurt:not(#gp) .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body.portal-site-gurt:not(#gp) :is(.od-shell, .cw-shell, .pu-page, .pl-shell, .sto-shell, .dashboard-shell) { padding: 16px 16px 44px; }
  body.portal-site-gurt:not(#gp) .gi { padding: 0 16px; }
  body.portal-site-gurt:not(#gp) :is(.od-hero, .cw-hero, .pu-hero, .pl-hero, .gi-hero, .sto-hero, .manual-order-hero) { padding: 20px 18px 20px 22px; }
  body.portal-site-gurt.portal-inner:not(#gp) .bd-content > .container { margin: 16px; padding: 0 16px 20px; width: auto; }
  body.portal-site-gurt:not(#gp) .od-order-menu { margin: 16px 16px 0; }
  body.portal-site-gurt:not(#gp) :is(.dashboard-grid, .dashboard-lower-grid) { grid-template-columns: 1fr; }
  body.portal-site-gurt:not(#gp) .dashboard-welcome { align-items: stretch; }
  body.portal-site-gurt:not(#gp) .dashboard-primary { justify-content: center; }
  body.portal-site-gurt:not(#gp) .dashboard-search { padding: 18px 16px; }
  body.portal-site-gurt:not(#gp) .dashboard-search button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  body.portal-site-gurt:not(#gp) * { animation: none !important; transition: none !important; }
}
