/* 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;
  --primary: #1f6feb;
  --primary-hover: #388bfd;
  --accent-red: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

mark {
  background: transparent;
  color: inherit;
  padding: 0;
}

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);
}

.btn-refresh-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0;
  font-size: 13px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-refresh-nav:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-refresh-nav.refreshing {
  pointer-events: none;
  opacity: 0.75;
}

.btn-refresh-nav.refreshing .refresh-icon {
  display: inline-block;
  animation: spin-refresh 0.75s linear infinite;
}

@keyframes spin-refresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Экраны входа и регистрации */
#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) var(--radius) 0 0;
  padding: 10px 18px;
  margin-bottom: 0px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Бегущая полоса таймера сканирования и фонового обновления площадок (15 минут) */
.scanner-sync-bar {
  position: relative;
  background: var(--bg-subtle, #14171f);
  border: 1px solid var(--border, #2a2f3d);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scanner-sync-bar:hover {
  background: rgba(30, 36, 51, 0.7);
  border-color: rgba(56, 189, 248, 0.4);
}

.scanner-sync-bar.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0px;
  border-color: rgba(56, 189, 248, 0.4);
}

.scanner-sync-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.scanner-sync-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #10b981, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: width 1s linear;
}

.scanner-sync-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  gap: 12px;
  flex-wrap: wrap;
}

.scanner-sync-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner-sync-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.scanner-sync-title {
  font-weight: 600;
  color: var(--text-main, #f1f5f9);
}

.scanner-sync-hint-pill {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-left: 4px;
}

.scanner-sync-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scanner-sync-countdown {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.3px;
}

.scanner-sync-chevron {
  font-size: 12px;
  color: #38bdf8;
  transition: transform 0.2s ease;
  display: inline-block;
}

.scanner-sync-bar.expanded .scanner-sync-chevron {
  transform: rotate(180deg);
}

/* Раскрывающаяся панель сводки сканера */
.scanner-drawer {
  background: var(--bg-card, #171b26);
  border: 1px solid var(--border, #2a2f3d);
  border-top: none;
  border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
  margin-bottom: 20px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: slide-down 0.2s ease-out;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scanner-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border, #2a2f3d);
  padding-bottom: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.scanner-drawer-tabs {
  display: flex;
  gap: 8px;
}

.drawer-tab-btn {
  background: var(--bg-subtle, #14171f);
  border: 1px solid var(--border, #2a2f3d);
  color: var(--text-muted, #94a3b8);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-tab-btn:hover {
  color: var(--text-main, #f1f5f9);
  border-color: var(--border-light, #334155);
}

.drawer-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border, #2a2f3d);
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.drawer-stats-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.drawer-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-subtle, #14171f);
  border: 1px solid var(--border, #2a2f3d);
  color: var(--text-main, #f1f5f9);
}

.drawer-chip-val {
  font-weight: 700;
  color: #10b981;
}

.drawer-items-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle, #14171f);
  border: 1px solid var(--border, #2a2f3d);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.drawer-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.drawer-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.drawer-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-item-plat {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
}

.drawer-item-plat.purged {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.drawer-item-id {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
}

.drawer-item-id:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.drawer-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #f1f5f9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-customer {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.drawer-item-price {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.drawer-item-reason {
  font-size: 11px;
  color: #ef4444;
  font-weight: 500;
}

.drawer-item-time {
  font-size: 10px;
  color: var(--text-dim, #64748b);
}

.drawer-empty-state {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

body.light-theme .scanner-sync-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .scanner-drawer {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .drawer-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .scanner-sync-title {
  color: #0f172a;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.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);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-profile-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  margin-right: 6px;
}

.company-profile-box strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.company-profile-box .user-info {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.btn-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

/* Шапка раздела и фильтры */
.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;
}

.scope-toggle-group {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.btn-scope {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-scope:hover {
  color: var(--text-main);
}

.btn-scope.active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.btn-delete {
  color: var(--accent-red, #ef4444) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: var(--accent-red, #ef4444) !important;
}

.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;
}

/* Пульсирующий индикатор загрузки и синхронизации тендеров */
.tenders-sync-loader {
  animation: fadeInLoader 0.25s ease-out;
}

@keyframes fadeInLoader {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sync-spinner-pulse {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sync-spinner-pulse .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  animation: pulse-ring-anim 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.sync-spinner-pulse .pulse-core {
  font-size: 26px;
  animation: spin-slow 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
}

@keyframes pulse-ring-anim {
  0% {
    transform: scale(0.65);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   СВЕТЛАЯ ТЕМА ОФОРМЛЕНИЯ (ENTERPRISE CLEAN LIGHT THEME)
   ========================================================================== */
body.light-theme {
  --bg-main: #f6f8fa;
  --bg-card: #ffffff;
  --bg-subtle: #f0f2f5;
  --bg-input: #ffffff;
  --bg-hover: #eef1f4;
  --border: #d0d7de;
  --border-light: #afb8c1;
  --text-main: #1f2328;
  --text-muted: #57606a;
  --text-dim: #8c959f;
  --primary: #0969da;
  --primary-hover: #0860ca;
  --accent-red: #cf222e;
}

body.light-theme .top-nav,
body.light-theme .onboarding-card,
body.light-theme .modal-box {
  background: #ffffff;
  border-color: #d0d7de;
  box-shadow: 0 1px 4px rgba(31, 35, 40, 0.08);
}

body.light-theme .tender-card {
  background: #ffffff;
  border-color: #d0d7de;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06);
}

body.light-theme .tender-card:hover {
  border-color: #0969da;
  box-shadow: 0 6px 16px rgba(31, 35, 40, 0.1);
}

body.light-theme .tender-meta-grid {
  background: #f6f8fa;
  border-color: #d8dee4;
}

body.light-theme .tender-meta-grid .meta-val {
  color: #1f2328;
}

body.light-theme .tender-meta-grid .meta-val.green {
  color: #1a7f37;
}

body.light-theme .tender-title {
  color: #0969da;
}

body.light-theme .tender-customer {
  color: #57606a;
}

body.light-theme .tender-pub-date,
body.light-theme .tender-deadline {
  color: #57606a;
}

body.light-theme .btn-secondary,
body.light-theme .btn-icon,
body.light-theme .brand-logo-badge,
body.light-theme .nav-logo-badge {
  background: #f6f8fa;
  border-color: #d0d7de;
  color: #24292f;
}

body.light-theme .btn-secondary:hover,
body.light-theme .btn-icon:hover {
  background: #eaeef2;
  border-color: #afb8c1;
}

body.light-theme .btn-primary {
  background: #0969da;
  border-color: #0969da;
  color: #ffffff;
}

body.light-theme .btn-primary:hover {
  background: #0860ca;
}

body.light-theme .btn-success {
  background: #dafbe1;
  border-color: #4ac26b;
  color: #1a7f37;
}

body.light-theme .filter-tab-btn {
  background: transparent;
  color: #57606a;
}

body.light-theme .filter-tab-btn.active {
  background: #ffffff;
  color: #1f2328;
  border-color: #d0d7de;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.08);
}

body.light-theme .filter-tabs {
  background: #f6f8fa;
  border-color: #d0d7de;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background: #ffffff;
  border-color: #d0d7de;
  color: #1f2328;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

body.light-theme .scope-toggle-group {
  background: #f6f8fa !important;
  border-color: #d0d7de !important;
}

body.light-theme .btn-scope {
  color: #57606a !important;
  background: transparent !important;
}

body.light-theme .btn-scope:hover {
  color: #1f2328 !important;
}

body.light-theme .btn-scope.active {
  background: #0969da !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.12);
}

body.light-theme .btn-delete {
  color: #cf222e !important;
  border-color: #ff8182 !important;
}

body.light-theme .btn-delete:hover {
  background: #ffebe9 !important;
  border-color: #cf222e !important;
}

body.light-theme .tag-pill {
  background: #eef2f6;
  color: #24292f;
  border-color: #d0d7de;
}

body.light-theme .tag-urgent {
  background: #ffebe9;
  color: #cf222e;
  border-color: #ff8182;
}

body.light-theme .tag-fresh {
  background: #dafbe1;
  color: #1a7f37;
  border-color: #82e596;
}

body.light-theme .tag-score {
  background: #ddf4ff;
  color: #0969da;
  border-color: #54aeff;
}

body.light-theme .tag-verdict-not-go {
  background: #ffebe9;
  color: #cf222e;
  border-color: #ff8182;
}

body.light-theme .tag-verdict-go {
  background: #dafbe1;
  color: #1a7f37;
  border-color: #4ac26b;
}

body.light-theme .search-box input {
  background: #ffffff;
  border-color: #d0d7de;
  color: #1f2328;
}

body.light-theme .estimate-table th {
  background: #f6f8fa;
  border-color: #d0d7de;
  color: #57606a;
}

body.light-theme .estimate-table td {
  border-color: #d0d7de;
  color: #1f2328;
}

body.light-theme .estimate-table tr:hover td {
  background: #f6f8fa;
}

body.light-theme .modal-header,
body.light-theme .modal-footer {
  border-color: #d0d7de;
}

/* ==========================================================================
   Панель пагинации процедур (серверная пагинация для всей базы и профиля)
   ========================================================================== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-top: 18px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 170px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(31, 111, 235, 0.45);
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--text-dim);
  font-size: 13px;
  user-select: none;
}

.pagination-limit-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.limit-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.limit-pill-group {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-subtle);
  padding: 2px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.btn-limit {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-limit:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-limit.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(31, 111, 235, 0.4);
}

/* Адаптация пагинации под светлую тему */
body.light-theme .pagination-container {
  background: #ffffff;
  border-color: #d0d7de;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-theme .pagination-info,
body.light-theme .limit-label {
  color: #57606a;
}

body.light-theme .pagination-btn {
  background: #f6f8fa;
  color: #24292f;
  border-color: #d0d7de;
}

body.light-theme .pagination-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #afb8c1;
  color: #0969da;
}

body.light-theme .pagination-btn.active {
  background: #0969da;
  border-color: #0969da;
  color: #ffffff;
}

body.light-theme .limit-pill-group {
  background: #f6f8fa;
  border-color: #d0d7de;
}

body.light-theme .btn-limit {
  color: #57606a;
}

body.light-theme .btn-limit:hover {
  color: #24292f;
  background: #eaeef2;
}

body.light-theme .btn-limit.active {
  background: #0969da;
  color: #ffffff;
}

/* Кнопка быстрого обновления в панели фильтров */
.btn-refresh-toolbar {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-refresh-toolbar:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-refresh-toolbar.refreshing {
  pointer-events: none;
  opacity: 0.75;
}

.btn-refresh-toolbar.refreshing .refresh-icon {
  display: inline-block;
  animation: spin-refresh 0.75s linear infinite;
}

/* Колокольчик и выпадающий список оповещений */
.notifications-wrapper {
  position: relative;
  display: inline-block;
}

.btn-notifications {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notifications:hover,
.btn-notifications.active {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.bell-icon {
  font-size: 15px;
  line-height: 1;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f85149;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  text-align: center;
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 6px rgba(248, 81, 73, 0.6);
  pointer-events: none;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notif-fade-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notif-fade-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0d1117;
  border-bottom: 1px solid var(--border);
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-header-title strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.notif-unread-count-pill {
  font-size: 10px;
  font-weight: 700;
  background: rgba(31, 111, 235, 0.2);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.4);
  padding: 1px 7px;
  border-radius: 10px;
}

.notif-mark-all-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
}

.notif-body {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  text-decoration: none;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #1c2128;
}

.notif-item.unread {
  background: rgba(31, 111, 235, 0.08);
}

.notif-item.unread:hover {
  background: rgba(31, 111, 235, 0.14);
}

.notif-item.unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #388bfd;
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-item-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #3fb950;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-dim);
}

.notif-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.notif-item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #f0f6fc;
}

.notif-item-score {
  font-weight: 700;
  color: #3fb950;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.notif-footer {
  padding: 8px 16px;
  background: #0d1117;
  border-top: 1px solid var(--border);
  text-align: center;
}

.notif-footer-hint {
  font-size: 10px;
  color: var(--text-dim);
}

/* Light theme overrides for notifications and toolbar */
body.light-theme .notifications-dropdown {
  background: #ffffff;
  border-color: #d0d7de;
  box-shadow: 0 16px 40px rgba(140, 149, 159, 0.3);
}

body.light-theme .notif-header,
body.light-theme .notif-footer {
  background: #f6f8fa;
  border-color: #d0d7de;
}

body.light-theme .notif-item {
  border-bottom-color: #eaeef2;
}

body.light-theme .notif-item:hover {
  background: #f3f4f6;
}

body.light-theme .notif-item.unread {
  background: #edf5ff;
}

body.light-theme .notif-item.unread:hover {
  background: #e1effe;
}

body.light-theme .btn-refresh-toolbar {
  background: #ffffff;
  border-color: #d0d7de;
  color: #24292f;
}

body.light-theme .btn-refresh-toolbar:hover {
  background: #f6f8fa;
  border-color: #0969da;
  color: #0969da;
}


/* ==========================================================================
   TENDERFLOW SIDEBAR & ENTERPRISE LIGHT THEME (ADAPTED ORIGINAL AI-TENDER)
   ========================================================================== */

:root,
body,
body.light-theme {
  --bg-main: #f7f9fa !important;
  --bg-card: #ffffff !important;
  --bg-subtle: #f0f2f5 !important;
  --bg-input: #ffffff !important;
  --bg-hover: #eef1f4 !important;
  --border: #e2e8ea !important;
  --border-light: #cbd5e1 !important;
  --text-main: #202e35 !important;
  --text-muted: #849197 !important;
  --text-dim: #94a3b8 !important;
  --primary: #167d65 !important;
  --primary-hover: #0f5132 !important;
  --accent-red: #ef4444 !important;
  --green: #167d65 !important;
}

body {
  background-color: #f7f9fa !important;
  color: #202e35 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 1. Макет приложения (Двухколоночный: Сайдбар слева, Контент справа) */
.app-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #f7f9fa;
  box-sizing: border-box;
}

.app-layout.hidden,
#main-screen.hidden,
#auth-screen.hidden {
  display: none !important;
}

/* 2. Боковая панель навигации (Sidebar) */
.app-sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  background: #ffffff !important;
  border-right: 1px solid #e9edef !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  padding: 20px 14px 16px 14px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 6px 4px;
}

.sidebar-brand .brand-logo-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #167d65;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.sidebar-brand .brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #167d65;
  letter-spacing: -0.3px;
}

/* Карточка текущей рабочей зоны / организации */
.sidebar-workspace-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin: 16px 0 14px 0;
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-workspace-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.workspace-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workspace-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #f0fdf4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #167d65;
}

.workspace-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workspace-name {
  font-size: 13px;
  font-weight: 700;
  color: #202e35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-sub {
  font-size: 11px;
  color: #849197;
  white-space: nowrap;
}

.workspace-chevron {
  font-size: 14px;
  color: #849197;
  padding-left: 6px;
}

/* Заголовки секций в меню */
.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #849197;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 16px 0 6px 8px;
}

/* Список пунктов меню */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  background: #f2f5f7;
  color: #202e35;
}

.sidebar-nav-item.active {
  background: #e8f5f0 !important;
  color: #167d65 !important;
  font-weight: 600;
}

.sidebar-nav-item.active .nav-icon {
  color: #167d65;
}

.nav-icon {
  color: #6b7280;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background: #e2e8ea;
  color: #202e35;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
}

.sidebar-nav-item.active .nav-badge {
  background: #167d65;
  color: #ffffff;
}

/* Нижний блок профиля в сайдбаре */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e9edef;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #f5e6d3;
  color: #785b3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.user-info-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #202e35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: #849197;
  white-space: nowrap;
}

.btn-sidebar-logout {
  background: transparent;
  border: none;
  color: #849197;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-sidebar-logout:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* 3. Основная контентная область */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
  background-color: #f7f9fa;
}

.app-views-wrapper {
  padding: 24px 32px 60px 32px;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}

.app-view.hidden {
  display: none !important;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9edef;
}

.view-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #202e35;
  margin-bottom: 4px;
}

/* 4. Карточки обзора (Overview) */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-card-title {
  font-size: 12px;
  color: #849197;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-icon {
  font-size: 18px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #202e35;
  line-height: 1.2;
}

.stat-card-sub {
  font-size: 12px;
  color: #849197;
  margin-top: 6px;
}

.overview-actions-panel {
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.settings-panel-box {
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 5. Карточки процедур (ОРИГИНАЛЬНЫЙ ДИЗАЙН И СТРУКТУРА AI-TENDER) */
.tender-card {
  background: #ffffff !important;
  border: 1px solid #e2e8ea !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: all 0.15s ease !important;
}

.tender-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}

.platform-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 8px;
}

.tender-orig-link {
  color: #0284c7 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.tender-orig-link:hover {
  text-decoration: underline !important;
}

.match-score-pill {
  border: 1px solid #167d65 !important;
  background: #f0fdf4 !important;
  color: #167d65 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

.verdict-badge.verdict-go {
  background: #167d65 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
}

.verdict-badge.verdict-notgo {
  background: #1e293b !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
}

.verdict-badge.verdict-maybe {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
}

.tender-title.clickable-title {
  color: #0369a1 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 6px 0 4px 0 !important;
  cursor: pointer !important;
}

.tender-title.clickable-title:hover {
  text-decoration: underline !important;
}

.tender-customer {
  color: #64748b !important;
  font-size: 13px !important;
  margin-bottom: 12px !important;
}

/* Финансовый коридор из 3 колонок */
.tender-meta-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8ea !important;
  border-radius: 8px !important;
  margin: 10px 0 14px 0 !important;
}

.tender-meta-row > div {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.meta-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.meta-val {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.meta-val.green {
  color: #167d65 !important;
}

/* Футер карточки: даты слева, кнопки справа */
.tender-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.tender-dates-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  font-size: 11.5px !important;
  color: #64748b !important;
}

.tender-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-secondary {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.btn-primary {
  background: #167d65 !important;
  border: 1px solid #167d65 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-primary:hover {
  background: #0f5132 !important;
  border-color: #0f5132 !important;
}

.btn-success {
  background: #f0fdf4 !important;
  border: 1px solid #167d65 !important;
  color: #167d65 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-success:hover {
  background: #dcfce7 !important;
}

.btn-delete {
  border: 1px solid #ef4444 !important;
  color: #ef4444 !important;
  background: transparent !important;
}

.btn-delete:hover {
  background: #fee2e2 !important;
}

/* 6. Полоса таймера сканера */
.scanner-sync-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8ea !important;
  padding: 8px 32px !important;
}

.scanner-sync-title {
  color: #202e35 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.scanner-sync-countdown {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* 7. Лента уведомлений в Обзоре (view-overview) */
.overview-notifications-section {
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.overview-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.overview-notif-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-notif-icon {
  font-size: 20px;
}

.overview-notif-title {
  font-size: 16px;
  font-weight: 700;
  color: #202e35;
  margin: 0;
  letter-spacing: -0.2px;
}

.overview-notif-pill {
  background: #e6f4f1;
  color: #167d65;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.overview-notif-actions {
  display: flex;
  gap: 8px;
}

.overview-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-notif-card {
  background: #ffffff;
  border: 1px solid #edf2f4;
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-notif-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.overview-notif-card .notif-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.overview-notif-card .notif-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #202e35;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s ease;
}

.overview-notif-card .notif-card-title:hover {
  color: #167d65;
}

.overview-notif-card .notif-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #627278;
}

.overview-notif-card .notif-card-price {
  font-weight: 700;
  color: #167d65;
  font-size: 13px;
}

.overview-notif-card .notif-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.overview-notif-empty {
  text-align: center;
  padding: 36px 16px;
  color: #849197;
  background: #f8fafb;
  border-radius: 10px;
  border: 1px dashed #d5dee1;
  font-size: 13px;
}

