/* AI-TENDER DEMO — ENTERPRISE B2B DESIGN (TASTE SKILL) */
:root {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --bg-subtle: #21262d;
  --bg-input: #0b0e14;
  --bg-hover: #262c36;
  --border: #30363d;
  --border-light: #444c56;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.screen-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px;
}

.hidden {
  display: none !important;
}

/* Логотипы-монограммы */
.brand-logo-badge {
  min-width: 48px;
  height: 36px;
  padding: 0 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--text-main);
}

.nav-logo-badge {
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

/* Экраны входа и регистрации */
#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
}

.onboarding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.brand-header h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.auth-mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.step {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
}

.step.active {
  color: var(--text-main);
  background: var(--bg-subtle);
  font-weight: 600;
  border: 1px solid var(--border-light);
}

/* Поля форм */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #58a6ff;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.hint-text {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.error-text {
  color: #f85149 !important;
}

.badge-hint {
  font-size: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* Карточка подтверждения ФНС */
.company-card-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid #2ea043;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.comp-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.msp-pill {
  font-size: 11px;
  background: #1c2e22;
  border: 1px solid #2ea043;
  color: #7ee787;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.card-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Кнопки */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover {
  background: var(--bg-hover);
  border-color: #58a6ff;
}

.btn-primary {
  background: #21262d;
  border-color: #38444d;
  color: #f0f6fc;
}

.btn-success {
  background: #1c2e22;
  border-color: #2ea043;
  color: #7ee787;
}

.btn-danger {
  background: #331818;
  border-color: #da3633;
  color: #f85149;
}

/* Зона дропа файлов */
.drop-zone {
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  background: var(--bg-input);
  margin-bottom: 12px;
  font-size: 12px;
}

/* Верхняя панель управления */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.stats-bar {
  display: flex;
  gap: 22px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.b2b-sync-indicator {
  cursor: pointer;
}

.sync-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-bottom: 3px;
}

.sync-dot.active {
  background: #3fb950;
}

.nav-right {
  display: flex;
  gap: 8px;
}

/* Шапка раздела и фильтры */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-main);
  width: 260px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.tab-btn.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* Сетка карточек закупок */
.tenders-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tender-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s ease;
}

.tender-card:hover {
  border-color: var(--border-light);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.platform-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tender-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.tender-orig-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #58a6ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.tender-orig-link:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.btn-orig-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tender-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin: 6px 0 4px 0;
}

.tender-title.clickable-title {
  cursor: pointer;
  transition: color 0.15s ease;
}

.tender-title.clickable-title:hover {
  color: #58a6ff;
  text-decoration: underline;
}

.tender-customer {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blocker-warning {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: #331818;
  border: 1px solid #da3633;
  color: #f85149;
  margin: 6px 0;
}

/* Финансовые метрики закупки в 3 колонки */
.tender-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  margin: 10px 0;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.meta-val.green {
  color: #7ee787;
}

.tender-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.tender-dates-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tender-pub-date {
  font-size: 11px;
  color: var(--text-dim);
}

.tender-deadline {
  font-size: 11px;
  color: #eab308;
  font-weight: 500;
}

.tender-actions {
  display: flex;
  gap: 8px;
}

/* Бейджи вердикта */
.verdict-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.verdict-go {
  background: #1c2e22;
  border-color: #2ea043;
  color: #7ee787;
}

.verdict-maybe {
  background: #2d2516;
  border-color: #bb8009;
  color: #e3b341;
}

.verdict-notgo {
  background: #331818;
  border-color: #da3633;
  color: #f85149;
}

/* Модальные окна */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.modal-large {
  width: 95vw;
  max-width: 1440px;
  max-height: 94vh;
  overflow-y: auto;
}

#analysis-modal .modal-box {
  width: 96vw;
  max-width: 1560px;
  max-height: 94vh;
}


.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  user-select: none;
  z-index: 20;
  pointer-events: auto;
}

.close-btn:hover {
  background: var(--bg-hover);
  color: #fff;
  border-color: var(--border-light);
}

.close-btn:active {
  transform: scale(0.92);
}

/* Заключение ИИ-экономиста */
.ai-summary-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid #58a6ff;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.ai-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #58a6ff;
  margin-bottom: 5px;
}

.ai-summary-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
}

.ai-provider-pill {
  font-size: 10px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Финансовый коридор ставок */
.pricing-corridor-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
}

.corridor-metric {
  display: flex;
  flex-direction: column;
}

.c-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.c-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.c-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.highlight-green .c-val { color: #7ee787; }
.highlight-red .c-val { color: #f85149; }

.analysis-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .analysis-two-col { grid-template-columns: 1fr; }
}

.analysis-section {
  margin-bottom: 16px;
}

.analysis-section h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.danger-title {
  color: #f85149;
}

.reasons-list {
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.plan-list {
  list-style-type: '✓ ';
  color: var(--text-main);
}

.risks-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.risk-item {
  background: var(--bg-input);
  border-left: 3px solid #bb8009;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 12px;
}

.risk-item.critical {
  border-left-color: #da3633;
}

.risk-source {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* Таблица сметы */
.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}

.estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.estimate-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.estimate-table th:nth-child(1), .estimate-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.estimate-table th:nth-child(2), .estimate-table td:nth-child(2) {
  min-width: 280px;
}

.estimate-table th:nth-child(3), .estimate-table td:nth-child(3) {
  width: 75px;
  text-align: center;
}

.estimate-table th:nth-child(4), .estimate-table td:nth-child(4) {
  width: 60px;
  text-align: center;
}

.estimate-table th:nth-child(5), .estimate-table td:nth-child(5) {
  min-width: 260px;
}

.estimate-table th:nth-child(6), .estimate-table td:nth-child(6) {
  min-width: 140px;
  text-align: right;
}

.estimate-table th:nth-child(7), .estimate-table td:nth-child(7) {
  min-width: 180px;
}


.reject-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.disclaimer {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Настройки профиля */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.settings-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
  margin-bottom: 12px;
}

/* Изученные документы и выжимки ТЗ */
.docs-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.doc-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s ease;
}

.doc-chip:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.doc-chip .doc-cat {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-input);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.excerpts-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.excerpt-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid #58a6ff;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.excerpt-card.contest-warning {
  border-left-color: #f85149;
  background: #251818;
}

.excerpt-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}

.excerpt-source {
  font-weight: 700;
  color: #58a6ff;
}

.excerpt-clause {
  color: var(--text-muted);
  font-style: italic;
}

.excerpt-text {
  color: var(--text-main);
}

/* Статусы номенклатуры в смете */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.status-exact {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.status-pill.status-similar {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.4);
}

.status-pill.status-ai {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.45);
  box-shadow: 0 0 8px rgba(248, 81, 73, 0.15);
}

.status-pill.status-nodata {
  background: var(--bg-input);
  color: var(--text-dim);
  border: 1px solid var(--border);
  text-decoration: line-through;
}

.status-pill.status-usersaved {
  background: rgba(163, 113, 247, 0.15);
  color: #a371f7;
  border: 1px solid rgba(163, 113, 247, 0.45);
  box-shadow: 0 0 8px rgba(163, 113, 247, 0.15);
}

.price-ai-risk {
  color: #f85149 !important;
  font-weight: 700;
}

.price-usersaved {
  color: #a371f7 !important;
  font-weight: 700;
}

.price-no-data {
  color: var(--text-dim) !important;
  text-decoration: line-through;
  font-weight: 600;
}

/* Интерактивное редактирование и запоминание цен */
.price-cell-interactive {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-edit-price {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-edit-price:hover {
  background: rgba(163, 113, 247, 0.15);
  color: #a371f7;
  border-color: #a371f7;
}

.price-edit-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 320px;
}

.price-inline-input {
  width: 135px;
  min-width: 125px;
  background: #0d1117;
  border: 1.5px solid #a371f7;
  color: #38bdf8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 113, 247, 0.25);
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.price-inline-input:focus {
  border-color: #d2a8ff;
  box-shadow: 0 0 0 4px rgba(210, 168, 255, 0.35);
  color: #fff;
}

.btn-save-price {
  background: #8957e5;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(137, 87, 229, 0.35);
}

.btn-save-price:hover {
  background: #a371f7;
  transform: translateY(-1px);
}

.btn-cancel-price {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel-price:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}


.user-saved-note {
  font-size: 10px;
  color: #a371f7;
  margin-top: 2px;
  font-weight: 500;
}

.modal-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #a371f7;
  border-radius: 50%;
  animation: spin-modal 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin-modal {
  to { transform: rotate(360deg); }
}

.table-loading-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.ai-stub-note {
  font-size: 10px;
  color: #f85149;
  margin-top: 2px;
  font-weight: 600;
}

/* Баннеры предупреждений в смете */
.banner-ai-warning {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-left: 4px solid #f85149;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  color: #ff7b72;
  margin-bottom: 8px;
  line-height: 1.4;
}

.banner-nodata-warning {
  background: rgba(139, 148, 158, 0.1);
  border: 1px solid var(--border);
  border-left: 4px solid #8b949e;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Переключатель режимов демо для отсутствующих цен */
.price-mode-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.btn-group-toggle {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.btn-mode {
  background: var(--bg-card);
  color: var(--text-muted);
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode:not(:last-child) {
  border-right: 1px solid var(--border);
}

.btn-mode:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.btn-mode.active {
  background: var(--bg-main);
  color: var(--text-main);
  box-shadow: inset 0 -2px 0 #f85149;
}

.btn-mode#btn-mode-nodata.active {
  box-shadow: inset 0 -2px 0 #8b949e;
}

/* Стили менеджера прайс-листа и сохраненных цен */
.settings-modal-tabs .tab-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
}

.settings-modal-tabs .tab-btn.active {
  background: var(--bg-hover);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.input-inline-name, .input-inline-unit, .input-inline-price {
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.btn-save-inline-price:hover {
  background: rgba(34, 197, 94, 0.3) !important;
}

.btn-delete-inline-price:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}


