
/* ============================================================
   КАДРОВЫЙ ПОТЕНЦИАЛ — Design System v2.0
   Тёплая палитра · Современный UI · Плавные анимации
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ---------- Токены ---------- */
:root {
  /* Поверхности */
  --bg:          #faf7f2;
  --surface:     #fffdf8;
  --surface-2:   #fff9f0;
  --surface-off: #f5efe4;
  --border:      rgba(160,110,60,0.14);
  --divider:     #ecdfd0;

  /* Текст */
  --text:        #2e2318;
  --text-muted:  #7a6148;
  --text-faint:  #b09a80;

  /* Акцент — янтарный/терракотовый */
  --primary:         #c07a38;
  --primary-hover:   #a8622a;
  --primary-active:  #8b4d1e;
  --primary-light:   #f7e8d4;
  --primary-glow:    rgba(192,122,56,0.18);

  /* Вторичный — оливковый */
  --secondary:       #6d8a5a;
  --secondary-light: #e8f0e4;

  /* Статусы */
  --success:  #4a8c5c;
  --warning:  #c08a30;
  --error:    #b84040;

  /* Радиус */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(80,45,15,0.07), 0 1px 2px rgba(80,45,15,0.05);
  --shadow-md: 0 4px 16px rgba(80,45,15,0.09), 0 2px 6px rgba(80,45,15,0.06);
  --shadow-lg: 0 12px 36px rgba(80,45,15,0.12), 0 4px 12px rgba(80,45,15,0.07);
  --shadow-xl: 0 24px 60px rgba(80,45,15,0.14), 0 8px 20px rgba(80,45,15,0.08);

  /* Переходы */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid:  260ms;
  --t-slow: 420ms;

  /* Типографика */
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Фоновый паттерн */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(192,122,56,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(109,138,90,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(46,35,24,0.94);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  color: #fff8ee;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.22);
  animation: slideDown var(--t-slow) var(--ease) both;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fde8c0;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.logo p {
  font-size: 0.72rem;
  color: rgba(255,248,238,0.52);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

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

.btn-header {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 18px;
  border-radius: var(--r-full);
  color: rgba(255,248,238,0.88);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-header:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-header:active { transform: translateY(0); }

/* ---------- Контейнер ---------- */
.container {
  max-width: 1380px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  animation: fadeUp var(--t-slow) var(--ease) 0.1s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Карточка ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #e8a84a, var(--secondary));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* ---------- Главный экран ---------- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--primary-active);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-start {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  border: none;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-radius: var(--r-full);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              filter var(--t-fast);
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
  filter: brightness(1.06);
}

.btn-start:active { transform: translateY(0); }

/* ---------- Форма ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-active);
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--primary);
  margin: 2rem 0 1.2rem;
  line-height: 1.3;
}

.subgroup {
  margin-left: 0.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--divider);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--divider);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c07a38' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Нативный select скрытый (кастомизирован через JS) */
select.native-hidden {
  display: none !important;
}

textarea { resize: vertical; min-height: 80px; }

.validation-error {
  color: var(--error);
  font-size: 0.76rem;
  margin-top: 4px;
  display: block;
  animation: shake 0.3s var(--ease);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

input.validation-error-input,
select.validation-error-input,
textarea.validation-error-input {
  border-color: var(--error);
  background: #fff5f3;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 3px 12px var(--primary-glow);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              filter var(--t-fast);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.06);
}

.btn-cancel {
  background: var(--surface-off);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn-cancel:hover {
  background: var(--divider);
  border-color: var(--text-faint);
  transform: translateY(-1px);
}

/* ---------- Блок направлений работы ---------- */
.goal-block,
.task-block,
.work-direction-block {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  background: var(--surface-2);
  transition: box-shadow var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
  animation: fadeUp var(--t-mid) var(--ease) both;
}

.goal-block:hover,
.task-block:hover,
.work-direction-block:hover {
  box-shadow: var(--shadow-sm);
}

.process-block {
  border: 1.5px solid var(--divider);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--surface);
  animation: fadeUp var(--t-fast) var(--ease) both;
}

/* ---------- Таблица базы ---------- */
.surveys-table {
  width: 100%;
  border-collapse: collapse;
}

.surveys-table th {
  background: var(--surface-off);
  color: var(--primary-active);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 2px solid var(--divider);
  white-space: nowrap;
  position: sticky;
  top: 64px;
}

.surveys-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--divider);
  font-size: 0.87rem;
  color: var(--text);
  vertical-align: middle;
  transition: background var(--t-fast);
}

.surveys-table tr:hover td {
  background: var(--primary-light);
}

.surveys-table tr:last-child td { border-bottom: none; }

.empty-row td {
  text-align: center;
  color: var(--text-faint);
  padding: 2.5rem;
  font-style: italic;
}

/* ---------- Кнопки экспорта ---------- */
.export-btn {
  background: var(--surface-off);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.export-btn:hover {
  background: var(--primary-light);
  color: var(--primary-active);
  transform: translateY(-1px);
}

.export-all-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              filter var(--t-fast);
}

.export-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px var(--primary-glow);
  filter: brightness(1.06);
}

/* ---------- Фильтры ---------- */
.filter-area {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 10px;
  align-items: end;
}

/* ---------- Модальное окно ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,12,5,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--t-mid) var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  max-width: 440px;
  width: 92%;
  border-radius: var(--r-xl);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: popUp var(--t-mid) var(--ease);
  position: relative;
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-active);
  margin-bottom: 1.4rem;
  text-align: center;
}

.modal-content .field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.error-msg {
  color: var(--error);
  font-size: 0.82rem;
  margin: -4px 0 10px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-full);
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform var(--t-fast), filter var(--t-fast);
}

.modal-buttons button:first-child {
  background: var(--surface-off);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.modal-buttons button:last-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.modal-buttons button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.modal-buttons button:active { transform: translateY(0); }

/* ---------- Тост ---------- */
.toast-msg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text);
  color: #fef1df;
  padding: 11px 22px;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn var(--t-mid) var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.toast-msg i { color: var(--primary); }

/* ---------- Дашборд ---------- */
.dash-wrap {
  animation: fadeUp var(--t-slow) var(--ease) both;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--divider);
}

.dash-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-active);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-header h2 i { color: var(--primary); font-size: 1.3rem; }

.dash-global-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 16px 18px;
  background: var(--surface-off);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.dash-filter-item { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; }
.dash-filter-item label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}

.dash-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  animation: fadeUp var(--t-slow) var(--ease) both;
}

.dash-kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dash-kpi i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.dash-kpi-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.dash-kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp var(--t-slow) var(--ease) both;
}

.dash-panel h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-active);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.dash-panel h3 i { color: var(--primary); font-size: 0.9rem; }

.dash-donut-wrap { display: flex; justify-content: center; margin-bottom: 14px; }

.dash-legend { display: flex; flex-direction: column; gap: 8px; }

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dash-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-legend-item b { color: var(--text); font-weight: 700; }

/* ---------- Таблица дашборда ---------- */
.dash-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--surface-off);
  border-radius: var(--r-md);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.dash-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.dash-table th {
  background: var(--surface-off);
  color: var(--primary-active);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--divider);
  white-space: nowrap;
}

.dash-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  vertical-align: middle;
}

.dash-table tr:hover td { background: var(--primary-light); }
.dash-table tr:last-child td { border-bottom: none; }

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.sortable-col { cursor: pointer; user-select: none; }
.sortable-col:hover { background: var(--primary-light) !important; }

/* ---------- Кнопка выхода ---------- */
.btn-logout {
  background: rgba(184,64,64,0.1);
  border: 1px solid rgba(184,64,64,0.2);
  color: var(--error);
  border-radius: var(--r-full);
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-logout:hover {
  background: rgba(184,64,64,0.18);
  transform: translateY(-1px);
}

/* ---------- Метрики (прогресс-бары) ---------- */
.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.metric-label {
  width: 210px;
  min-width: 210px;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.25;
}

.metric-track {
  flex: 1;
  height: 8px;
  background: var(--surface-off);
  border-radius: var(--r-full);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s var(--ease);
  position: relative;
}

.metric-value {
  min-width: 42px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.83rem;
}

/* ---------- Статус-чипы ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-high { background: #e7f4ea; color: #2f7a44; }
.status-mid  { background: #fff1df; color: #b46e1f; }
.status-low  { background: #fde9e6; color: var(--error); }

/* ---------- KPI карточки ---------- */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.kpi-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.kpi-value { font-size: 2rem; color: var(--text); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.kpi-note  { font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Отчёт / аналитика ---------- */
.report-cover {
  background: linear-gradient(135deg, var(--primary-active) 0%, #7a4d24 55%, #9d6d37 100%);
  color: #fff8ed;
  border-radius: var(--r-xl);
  padding: 34px 32px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.report-cover::before {
  content: '';
  position: absolute;
  top: 18px; right: 20px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}

.report-cover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #e8a84a, var(--secondary));
}

.report-cover-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
  font-weight: 700;
}

.report-cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.report-cover-subtitle {
  font-size: 0.96rem;
  line-height: 1.6;
  opacity: 0.88;
  max-width: 760px;
}

.report-cover-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.report-cover-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  font-size: 0.8rem;
}

.analysis-block {
  margin: 22px 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--divider);
}

.analysis-block:last-child { border-bottom: none; }

.analysis-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.analysis-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--divider);
  min-width: 56px;
}

.analysis-title-wrap h2 { margin: 0 0 4px; color: var(--primary-active); font-size: 1.5rem; }
.analysis-title-wrap p  { margin: 0; color: var(--text-muted); font-size: 0.84rem; }

.section-title-analytics {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-active);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  margin: 0 0 14px;
}

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

.profile-card-analytics {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.profile-card-analytics:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.profile-card-analytics h4 { margin: 0 0 4px; color: var(--primary-active); font-size: 1.05rem; }
.profile-card-analytics .subtitle { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.profile-card-analytics .count { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.profile-card-analytics .count-label { color: var(--text-muted); font-size: 0.76rem; }

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}

/* ---------- MTDI блок ---------- */
.mtdi-stat-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mtdi-stat-kpi-val { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.mtdi-stat-kpi-label { font-size: 0.78rem; color: var(--text-faint); }

.subscale-title {
  font-weight: 700;
  color: var(--primary);
  margin: 18px 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.section-block:last-child { border-bottom: none; }

.section-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-active);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ---------- Скролл ---------- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--surface-off); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---------- Выделение текста ---------- */
::selection { background: var(--primary-light); color: var(--primary-active); }

/* ---------- Фокус-кольцо ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .filter-area { grid-template-columns: 1fr 1fr; }
  .profile-grid-analytics { grid-template-columns: 1fr 1fr; }
  .verdict-grid-analytics  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header { padding: 0 1rem; }
  .logo p  { display: none; }
  .container { padding: 0 0.9rem; margin: 1rem auto; }
  .card { padding: 1.2rem; }
  .filter-area { grid-template-columns: 1fr; }
  .dash-charts-row { grid-template-columns: 1fr; }
  .metric-row { flex-direction: column; align-items: stretch; }
  .metric-label { width: auto; min-width: auto; }
  .profile-grid-analytics { grid-template-columns: 1fr; }
  .verdict-grid-analytics  { grid-template-columns: 1fr 1fr; }
  .surveys-table th, .surveys-table td { font-size: 0.78rem; padding: 8px 10px; }
}

/* ---------- Утилиты ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Главная: карточки выбора типа опроса ── */
.hero-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.home-cards-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.home-survey-card {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px 24px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid);
  animation: fadeUp var(--t-slow) var(--ease) both;
}

.home-survey-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.home-survey-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 4px;
  transition: background var(--t-mid), color var(--t-mid);
}

.home-survey-card:hover .home-survey-card-icon {
  background: var(--primary);
  color: #fff;
}

.home-survey-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-active);
  line-height: 1.2;
}

.home-survey-card-desc {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
  min-height: 36px;
}

/* ── Модал авторизации ── */
.modal-auth-icon {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.modal-auth-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}

.modal-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field-group .field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.modal-field-group .field-label i {
  color: var(--primary);
  font-size: 0.75rem;
  width: 14px;
}

/* Одинаковый размер полей логина и пароля */
.modal-field-group input[type="text"],
.modal-field-group input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--divider);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.modal-field-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Обёртка поля пароля с кнопкой показа */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 44px !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 0.88rem;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.password-toggle:hover { color: var(--primary); }

@media (max-width: 600px) {
  .home-cards-row { flex-direction: column; align-items: center; }
  .home-survey-card { width: 100%; max-width: 320px; }
}

/* ── Sticky ячейки в MTDI-таблицах ── */
.dash-table tr:hover td[style*="position:sticky"] {
  background: var(--primary-light) !important;
}

.dash-table thead th[style*="position:sticky"] {
  background: var(--surface-off) !important;
  box-shadow: 2px 0 6px rgba(80,45,15,0.06);
}

/* Скролл-контейнер таблиц MTDI */
.dash-panel [style*="overflow-x:auto"] {
  scrollbar-width: thin;
  scrollbar-color: var(--divider) transparent;
}

/* ── MTDI: строка выбора сотрудника ── */
.mtdi-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  animation: fadeUp var(--t-fast) var(--ease) both;
}

/* ── MTDI: горизонтальные заголовки таблицы блоков ── */
#mtdiBlockTable thead th {
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════
   КАСТОМНЫЙ SELECT — приятный выпадающий список
   ═══════════════════════════════════════════ */

.custom-select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* Скрываем нативный select */
.custom-select-wrap select.native-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Триггер (видимая кнопка) */
.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--divider);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.94rem;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast);
  white-space: normal;
  overflow: visible;
  height: auto;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.cs-trigger:hover {
  border-color: var(--primary);
  background: #fff;
}

.cs-trigger.open {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.cs-trigger-label {
  flex: 1;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.cs-trigger-label.placeholder {
  color: var(--text-faint);
}

/* Стрелка */
.cs-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--primary);
  transition: transform var(--t-mid) var(--ease);
}

.cs-trigger.open .cs-arrow {
  transform: rotate(180deg);
}

/* Выпадающая панель */
.cs-body-dropdown {
  /* позиция задаётся через JS (fixed) */
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  animation: csDropIn var(--t-mid) var(--ease) both;
}

@keyframes csDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Поиск внутри дропдауна (для длинных списков) */
.cs-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}

.cs-search input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--divider);
  background: var(--surface-off);
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color var(--t-fast);
}

.cs-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Список опций */
.cs-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--divider) transparent;
}

.cs-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}


.cs-option:hover {
  background: var(--primary-light);
  color: var(--primary-active);
}

.cs-option.selected {
  background: var(--primary-light);
  color: var(--primary-active);
  font-weight: 600;
}

.cs-option.selected::after {
  content: '';
  margin-left: auto;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23c07a38' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.cs-option.empty-opt {
  color: var(--text-faint);
  font-style: italic;
}

/* Пустой результат поиска */
.cs-no-results {
  padding: 14px 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-style: italic;
}


/* ── Кнопка справки ── */
.help-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #fff8f0;
  border: 1px solid #d4a96a;
  border-radius: 20px;
  color: #8b5a2b;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: help;
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s;
}
.help-hint:hover {
  background: #fdefd8;
  box-shadow: 0 2px 8px rgba(139,90,43,0.13);
}
.help-hint i {
  font-size: 1rem;
  color: #c47a2b;
}

/* ── Кнопка «Предложения доработки» ── */
.btn-suggestions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #fff3e0;
  border: 1.5px solid #d4923a;
  border-radius: 20px;
  color: #8b5a2b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.btn-suggestions:hover {
  background: #ffe0b2;
  box-shadow: 0 2px 10px rgba(139,90,43,0.15);
}
.btn-suggestions i {
  color: #e08a30;
}

/* ── Sticky thead в модале предложений ── */
#suggestionsScroll { border-radius: 8px; border: 1px solid #e0cbb8; }
#suggestionsTable thead th {
  position: sticky;
  top: 0;
  background: #f5ede0;
  z-index: 2;
  white-space: nowrap;
  border-bottom: 2px solid #d4a96a;
}

/* ── Стили кастомных select внутри модала "Предложения доработки" ── */
#impModalOverlay .cs-trigger {
  height: 38px;
  padding: 0 36px 0 12px;
  border: 1.5px solid #e0cbb8;
  border-radius: 10px;
  background: #fffaf4;
  color: #4a3520;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(180,120,60,0.07);
}

#impModalOverlay .cs-trigger:hover {
  border-color: #c07a38;
  background: #fff8ef;
  box-shadow: 0 0 0 3px rgba(192,122,56,0.12);
}

#impModalOverlay .cs-trigger.open,
#impModalOverlay .cs-trigger:focus {
  border-color: #a85c20;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192,122,56,0.18);
}

#impModalOverlay .cs-trigger .cs-arrow {
  color: #c07a38;
}

#impModalOverlay .cs-trigger-label.placeholder {
  color: #b89878;
}

#impModalOverlay input[type=text] {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #e0cbb8;
  border-radius: 10px;
  background: #fffaf4;
  color: #4a3520;
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  box-shadow: 0 1px 3px rgba(180,120,60,0.07);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

#impModalOverlay input[type=text]:hover {
  border-color: #c07a38;
  background: #fff8ef;
}

#impModalOverlay input[type=text]:focus {
  border-color: #a85c20;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192,122,56,0.18);
}

/* ════════════════════════════════
   База опросов — группы блоков
════════════════════════════════ */
.db-group {
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  margin: 16px 0 0;
}

.db-group--filters {
  background: #f7f4ef;
  border: 1.5px solid #e8ddd0;
}

.db-group--export {
  background: #f0f4f7;
  border: 1.5px solid #ccdae6;
}

.db-group__header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.db-group--filters .db-group__header {
  color: #8a6540;
}

.db-group--export .db-group__header {
  color: #3a6080;
}

/* Кнопки быстрых пресетов (внутри блока фильтров) */
.btn-preset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  background: #7d9b76;
  color: #fff;
}
.btn-preset:hover { opacity: .85; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-preset--purple { background: #8d7aa8; }
.btn-preset--blue   { background: #6f92a8; }
.btn-preset--amber  { background: #b58b4c; }
.btn-preset--reset  { background: #9a6a55; }

/* Кнопки выгрузки */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s, transform .1s;
  color: #fff;
}
.btn-export:hover { opacity: .88; box-shadow: 0 3px 10px rgba(0,0,0,.18); transform: translateY(-1px); }
.btn-export--excel  { background: #2e7d32; }
.btn-export--csv    { background: #9b6e3e; }
.btn-export--xml    { background: #6f7f55; }
.btn-export--bundle { background: #b24f3e; }

/* ── Валидация Да/Нет полей ── */
.yes-no-field {
  border: 1.5px solid var(--divider);
  border-radius: var(--r-md);
  padding: 0 12px;
  height: 42px;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--surface-2);
  width: 100%;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.yes-no-field:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192,122,56,0.15);
}

select.validation-error-input,
.yes-no-field.validation-error-input,
.cs-trigger.validation-error-input {
  border-color: #d93025 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,0.15) !important;
}

.validation-error {
  color: #d93025;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.validation-error::before {
  content: "⚠";
}

/* ── Стрелка "прокрутить вниз" (валидация формы) ── */
#scrollDownArrow {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary, #c07a38);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  animation: arrowPop .25s var(--ease, cubic-bezier(.4,0,.2,1)) both;
  transition: background .15s, transform .15s, box-shadow .15s;
}

#scrollDownArrow:hover {
  background: #a85c20;
  transform: translateY(2px) scale(1.07);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
}

@keyframes arrowPop {
  from { opacity: 0; transform: translateY(16px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ════════════════════════════════
   База опросов — кнопки выгрузки
════════════════════════════════ */

/* Кнопки в строке таблицы */
.row-export-btns {
  display: flex;
  gap: 5px;
  align-items: center;
}

.row-export-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}

.row-export-btn i {
  font-size: 1rem;
  line-height: 1;
}

.row-export-btn span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.row-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  opacity: 0.92;
}

.row-export-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.row-export-btn--excel  { background: linear-gradient(135deg, #1e7e3e, #2e9e50); }
.row-export-btn--csv    { background: linear-gradient(135deg, #7a4f2a, #a06835); }
.row-export-btn--xml    { background: linear-gradient(135deg, #4a5e30, #6a8244); }

/* Компактные кнопки блока "Выгрузка данных" */
.export-all-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-export-compact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 80px;
  padding: 10px 8px;
  border: none;
  border-radius: var(--r-lg);
  cursor: pointer;
  color: #fff;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}

.btn-export-compact i {
  font-size: 1.3rem;
  line-height: 1;
}

.btn-export-compact__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-export-compact__sub {
  font-size: 0.6rem;
  opacity: 0.8;
  font-weight: 500;
  white-space: nowrap;
}

.btn-export-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,.22);
  opacity: 0.92;
}

.btn-export-compact:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-export-compact--excel  { background: linear-gradient(145deg, #1e7e3e, #2e9e50); }
.btn-export-compact--csv    { background: linear-gradient(145deg, #7a4f2a, #a06835); }
.btn-export-compact--xml    { background: linear-gradient(145deg, #4a5e30, #6a8244); }
.btn-export-compact--bundle { background: linear-gradient(145deg, #7a2a2a, #a03535); }

/* Кнопка Администрирование */
.btn-header--admin {
    background: linear-gradient(135deg, #4a3080, #6a46b0) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}
.btn-header--admin:hover {
    background: linear-gradient(135deg, #3a2060, #5a36a0) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(90,54,160,0.35);
}

/* Кнопка Выйти в хедере */
.btn-header--logout {
    background: transparent !important;
    color: var(--color-error, #a12c7b) !important;
    border: 1.5px solid var(--color-error, #a12c7b) !important;
    font-weight: 600;
}
.btn-header--logout:hover {
    background: var(--color-error, #a12c7b) !important;
    color: #fff !important;
}
