:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;

  --border: #dde3ea;

  --text: #111827;
  --muted: #6b7280;

  --primary: #0ea5e9;
  --primary-hover: #0284c7;

  --success-bg: #dcfce7;
  --success-text: #166534;

  --gray-bg: #e5e7eb;
  --gray-text: #374151;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}

/* ОСНОВНАЯ БОКОВАЯ ПАНЕЛЬ */

.sidebar {
  background: linear-gradient(180deg, #263140 0%, #334155 100%);
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.06);
}

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

.sidebar__link {
  color: #f8fafc;
  padding: 13px 14px;
  border-radius: 12px;
  display: block;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.35;
  position: relative;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transform: translateX(2px);
}

.sidebar__link--active {
  background: #dbeafe;
  color: #0284c7;
  font-weight: 700;
}

.sidebar__link--active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #0ea5e9;
}

.sidebar__footer {
  margin-top: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ВНУТРЕННЯЯ ПАНЕЛЬ ОРГАНИЗАЦИИ */

.app-layout--org {
  grid-template-columns: 270px 1fr;
}

.sidebar--org {
  background: linear-gradient(180deg, #676767 0%, #767676 100%);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar--org .sidebar__logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  margin-bottom: 28px;
  color: #ffffff;
}

.sidebar__section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 10px 10px 12px;
  color: #ffffff;
}

.sidebar__nav--org-clean {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  gap: 0;
}

.sidebar__nav--org-clean .sidebar__link {
  color: #f8fafc;
  background: transparent;
  padding: 14px 14px;
  line-height: 1.35;
  letter-spacing: 0.1px;
  font-weight: 600;
  position: relative;
  border-radius: 14px;
  margin: 0;
  transform: none;
}

.sidebar__nav--org-clean .sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transform: none;
}

.sidebar__nav--org-clean .sidebar__link + .sidebar__link {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__nav--org-clean .sidebar__link--active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.sidebar__nav--org-clean .sidebar__link--active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #38bdf8;
}

.sidebar--org .sidebar__footer {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.5;
}

/* ОСНОВНОЙ КОНТЕНТ */

.main {
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 26px 32px 14px;
}

.topbar__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.topbar__subtitle {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

.content {
  padding: 0 32px 32px;
}

/* КАРТОЧКИ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.card__title {
  margin: 0;
  font-size: 22px;
}

.card__subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.card--hero {
  border: 1px solid #d9e4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.card--section-head {
  margin-bottom: 14px;
}

/* КНОПКИ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}

.btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #d1d5db;
}

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

/* СЕТКИ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.info-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.info-item__label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.info-item__value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

/* ФОРМЫ */

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.form-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* ТАБЛИЦЫ */

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.table-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.table-card__count {
  font-size: 13px;
  color: var(--muted);
  background: #eef4f8;
  padding: 8px 10px;
  border-radius: 999px;
}

.table-wrap {
  overflow: auto;
}

.table-wrap--workers {
  overflow: auto;
  max-height: 620px;
  border-radius: 0 0 18px 18px;
}

.table--premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table--premium thead th {
  background: #f7fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 #dde3ea;
}

.table--premium tbody td {
  padding: 18px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
  font-size: 14px;
  color: #1e293b;
}

.table--premium tbody tr {
  transition: background 0.15s ease;
}

.table--premium tbody tr:hover {
  background: #f9fbfd;
}

.employee-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef6fb;
  color: #0369a1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  background: #dff0fa;
  text-decoration: none;
}

/* СТАТУСЫ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.badge-success {
  background: linear-gradient(180deg, #dcfce7 0%, #c7f3d7 100%);
  color: #166534;
}

.badge-muted {
  background: linear-gradient(180deg, #eceff3 0%, #e2e8f0 100%);
  color: #475569;
}

/* ПУСТЫЕ СОСТОЯНИЯ */

.empty-text {
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 18px 6px 6px;
}

.empty-state__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.empty-state__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ЛИПКОСТЬ ВНУТРИ ОРГАНИЗАЦИИ */

.org-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.org-topbar__actions {
  align-self: start;
}

.org-topbar__actions .btn {
  position: static;
}

.card--sticky-org {
  position: sticky;
  top: 18px;
  z-index: 30;
}

/* Блок "Работники организации" не липкий */
.card--section-head {
  position: static;
}

/* Блок "Список работников" липкий */
.table-card__top--sticky {
  position: sticky;
  top: 126px;
  z-index: 29;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-bottom: 1px solid var(--border);
}

/* Шапка таблицы липкая под заголовком "Список работников" */
.table-wrap--workers .table--premium thead th {
  position: sticky;
  top: 126px;
  z-index: 20;
  background: #f7fafc;
}

/* Адаптив */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar,
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-layout--org {
    grid-template-columns: 1fr;
  }

  .org-topbar {
    grid-template-columns: 1fr;
  }

  .card--sticky-org,
  .table-card__top--sticky,
  .table-wrap--workers .table--premium thead th {
    position: static;
  }

  .table-wrap--workers {
    max-height: none;
  }
}

.table-wrap--workers {
  overflow: auto;
  max-height: 620px;
  border-radius: 18px;
}

.table-wrap--workers .table--premium thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 #dde3ea;
}
.table--premium th:first-child,
.table--premium td:first-child {
  width: 50px;
  text-align: center;
  font-weight: 600;
  color: #64748b;
}
.table-filter-row th {
  background: #ffffff;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.table-filter-row .table-filter {
  width: 100%;
  min-width: 70px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 8px;
  font-size: 12px;
  color: #334155;
  box-shadow: none;
}

.table-filter-row .table-filter:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10);
}

.table-filter-row select.table-filter {
  cursor: pointer;
}

.table--premium th:first-child,
.table--premium td:first-child {
  width: 54px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
.term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.term-ok {
  background: linear-gradient(180deg, #dcfce7 0%, #c7f3d7 100%);
  color: #166534;
}

.term-warn {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.term-danger {
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.term-muted {
  background: linear-gradient(180deg, #eceff3 0%, #e2e8f0 100%);
  color: #475569;
}

.sidebar__link--disabled { opacity: .55; }
.sidebar__badge { float:right; font-size:11px; opacity:.72; }
.hero-row { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.hero-title { font-size:22px; font-weight:800; margin:4px 0 2px; }
.hero-pills { display:flex; gap:10px; flex-wrap:wrap; }
.pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:#111827; color:#fff; font-size:12px; font-weight:700; }
.pill-soft { background:#eef2ff; color:#3730a3; }
.org-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.card--sticky-org { padding:16px 20px; flex:1; min-width:300px; }
.org-topbar__actions { display:flex; gap:12px; flex-wrap:wrap; }
.dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-bottom:20px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px 18px; box-shadow:var(--shadow); }
.stat-card__label { color:var(--muted); font-size:13px; margin-bottom:10px; }
.stat-card__value { font-size:30px; font-weight:800; margin-bottom:6px; }
.stat-card__meta { color:var(--muted); font-size:13px; }
.progress { height:8px; background:#e5e7eb; border-radius:999px; overflow:hidden; margin-top:8px; }
.progress span { display:block; height:100%; background:linear-gradient(90deg,#0ea5e9,#2563eb); border-radius:999px; }
.notice { border-radius:14px; padding:14px 16px; margin-bottom:18px; font-weight:600; }
.notice--success { background:#ecfdf3; color:#166534; border:1px solid #bbf7d0; }
.notice--warn { background:#fff7ed; color:#9a3412; border:1px solid #fdba74; }
.info-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; }
.info-item { background:#f8fafc; border:1px solid var(--border); border-radius:16px; padding:14px 16px; }
.info-item__label { color:var(--muted); font-size:12px; margin-bottom:6px; }
.info-item__value { font-size:15px; font-weight:700; line-height:1.45; }
.actions-inline { display:flex; gap:10px; flex-wrap:wrap; }
.btn-sm { padding:8px 12px; font-size:13px; }
.table-wrap { width:100%; overflow:auto; }
.table-wrap--sticky thead th { position:sticky; top:0; background:#f8fafc; z-index:2; }
.table--premium { width:100%; border-collapse:separate; border-spacing:0; min-width:980px; }
.table--premium th, .table--premium td { padding:14px 14px; border-bottom:1px solid #e5e7eb; text-align:left; vertical-align:top; }
.table--premium th { font-size:13px; color:#475467; font-weight:800; }
.table--premium tbody tr:hover { background:#f8fbff; }
.empty-state { padding:28px 8px 10px; text-align:center; }
.empty-state__title { font-size:20px; font-weight:800; margin-bottom:8px; }
.empty-state__text { color:var(--muted); max-width:680px; margin:0 auto; line-height:1.55; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.form-field { display:flex; flex-direction:column; gap:8px; }
.form-field--full { grid-column:1/-1; }
.form-field label { font-weight:700; font-size:14px; }
.form-field input, .form-field select, .form-field textarea { border:1px solid var(--border); background:#fff; border-radius:14px; padding:12px 14px; font:inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline:none; border-color:#7dd3fc; box-shadow:0 0 0 4px rgba(14,165,233,.12); }
.form-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:14px; border:1px solid #0284c7; background:#0ea5e9; color:#fff; font-weight:700; text-decoration:none; cursor:pointer; }
.btn:hover { text-decoration:none; background:#0284c7; }
.btn-secondary { background:#fff; color:#0f172a; border-color:#cbd5e1; }
.btn-secondary:hover { background:#f8fafc; }
.section-title { margin:8px 0 14px; font-size:18px; font-weight:800; }
.upload-box { border:1px dashed #93c5fd; background:#f8fbff; padding:18px; border-radius:18px; }
.upload-box__hint { color:var(--muted); margin-top:10px; line-height:1.5; }
.term { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.term-ok { background:#dcfce7; color:#166534; }
.term-muted { background:#e5e7eb; color:#374151; }
@media (max-width: 1000px) { .app-layout, .app-layout--org { grid-template-columns:1fr; } .sidebar { padding-bottom:18px; } .topbar { padding:20px 18px 10px; } .content { padding:0 18px 22px; } }


.org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;}
.org-tile{background:var(--surface-soft);border:1px solid var(--border);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:16px;}
.org-tile__top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.org-tile__title{font-size:22px;font-weight:800;color:#0f172a;line-height:1.15;}
.org-tile__subtitle{margin-top:6px;color:var(--muted);line-height:1.4;}
.org-tile__meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;color:#334155;font-size:14px;}
.org-tile__progress{display:flex;flex-direction:column;gap:8px;}
.org-tile__progress-head{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#334155;}
.org-tile__actions{display:flex;gap:10px;flex-wrap:wrap;}
.card--workers{padding-top:0;}
.workers-head{padding:24px 24px 16px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);border-bottom:1px solid var(--border);margin:0 -24px 0;}
.workers-head--sticky{position:sticky;top:0;z-index:5;border-radius:18px 18px 0 0;}
.workers-head__stats{display:flex;gap:12px;flex-wrap:wrap;padding:0 24px 4px;}
.mini-stat{display:flex;gap:10px;align-items:center;padding:10px 14px;background:#f7fafc;border:1px solid var(--border);border-radius:14px;color:#475569;font-size:14px;}
.mini-stat strong{font-size:18px;color:#0f172a;}
.mini-stat--progress{background:#eff6ff;}
.table-wrap--workers{max-height:640px;}
.table-wrap--sticky thead th{position:sticky;top:0;z-index:3;background:#f8fafc;}
@media (max-width: 900px){.org-tile__meta{grid-template-columns:1fr;}.workers-head__stats{padding:0 16px 4px;}.workers-head{padding:18px 16px 12px;margin:0 -24px 0;}}

/* ===== PREMIUM UI ===== */

body {
    font-size: 22px;
    line-height: 1.65;
    letter-spacing: 0.2px;
    color: #1f2937;
}

/* Заголовки */
h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 10px;
}

h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 8px;
}

h3 {
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
}

p,
label,
span,
div,
input,
select,
textarea,
button,
a,
td,
th {
    font-size: 16px;
}

/* Боковое меню */
.sidebar,
.sidebar a,
.sidebar .menu-item {
    font-size: 18px;
    line-height: 1.45;
}

.sidebar a,
.sidebar .menu-item {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Карточки */
.page-card,
.stat-card,
.card {
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

/* Заголовок организации */
.org-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.org-header h2 {
    margin: 0 0 4px 0;
    font-size: 30px;
}

/* Кнопки */
button,
.btn,
.btn-primary,
.btn-secondary {
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 14px;
    min-height: 34px;
}

/* Поля формы */
input,
select,
textarea {
    font-size: 17px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
}

label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 14px;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}

table td {
    font-size: 20px;
    padding: 16px 14px;
    vertical-align: middle;
}

table tr {
    background: #ffffff;
}

table tr + tr td {
    border-top: 1px solid #e5e7eb;
}

/* Если у тебя таблица работников в отдельном контейнере */
.table-wrap,
.table-container {
    max-height: 65vh;
    overflow: auto;
    border-radius: 18px;
}

/* Статистика */
.stat-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

/* Подписи и вторичный текст */
.muted,
.text-muted,
.helper-text,
small {
    font-size: 14px;
    color: #6b7280;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* Пустое состояние */
.empty-state {
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    background: #fafafa;
}

.empty-state p {
    font-size: 17px;
    margin-bottom: 14px;
}
/* УВЕЛИЧИТЬ ТЕКСТ В ТАБЛИЦАХ */
table td {
    font-size: 18px !important;
}

table th {
    font-size: 16px !important;
}
table th {
    font-size: 13px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Плашка типа организации */
.pill {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
}
.hero-pills {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 14px;
}
/* УМЕНЬШАЕМ ВЫСОТУ СТАТ-КАРТОЧЕК */
.stat-card {
    padding: 16px 18px !important;
    border-radius: 14px;
}

/* Заголовок */
.stat-card__label {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Процент (100%, 83%) */
.stat-card__value {
    font-size: 22px;
    margin-bottom: 2px;
}

/* Подпись */
.stat-card__meta {
    font-size: 12px;
    margin-bottom: 6px;
}

/* Полоска прогресса */
.progress {
    height: 6px;
    margin-top: 6px;
}
.stat-card {
    padding: 12px 14px !important;
}
/* ВЕРХНИЙ БЛОК ОРГАНИЗАЦИИ */
.card--hero {
    padding: 12px 16px !important;
    border-radius: 12px;
}

.hero-title {
    font-size: 18px !important;
}

.card__subtitle {
    font-size: 12px !important;
    margin-top: 2px;
}

.hero-row {
    align-items: center;
    gap: 10px;
}
.org-topbar__actions .btn {
    padding: 6px 12px !important;
    font-size: 13px;
}
.stat-card {
    padding: 10px 12px !important;
}

.stat-card__label {
    font-size: 11px;
    margin-bottom: 2px;
}

.stat-card__value {
    font-size: 18px;
    margin-bottom: 0;
}

.stat-card__meta {
    font-size: 11px;
    margin-bottom: 4px;
}

.progress {
    height: 4px;
}
.org-topbar {
    margin-bottom: 8px !important;
}

.dashboard-grid {
    gap: 8px !important;
    margin-bottom: 10px;
}
.dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    min-height: auto;
}
/* ===== FIX: radio / checkbox не должны выглядеть как обычные input ===== */
input[type="radio"],
input[type="checkbox"] {
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    appearance: auto !important;
    -webkit-appearance: radio !important;
    accent-color: #0ea5e9;
}

.radio-group,
.radio-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.radio-item input[type="radio"] {
    flex: 0 0 auto;
}

/* Чтобы формы не разъезжались */
.form-field input:not([type="radio"]):not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;
}


/* ===== ЛОГОТИП И FAVICON: PRO ОХРАНУ ТРУДА ===== */

/* Новый бренд-блок в базовом меню */
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 28px;
  margin-bottom: 2px;
}

.sidebar__brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.sidebar__brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sidebar__brand-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.sidebar__brand-subtitle {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

/* Поддержка старых внутренних шаблонов, где ещё стоит <div class="sidebar__logo">СУОТ</div> */
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px !important;
  margin-bottom: 28px !important;
}

.sidebar__logo::before {
  content: "";
  width: 44px;
  height: 44px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 12px;
  background-image: url("/static/img/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* На маленьких экранах не ломаем меню */
@media (max-width: 1100px) {
  .sidebar__brand {
    padding-bottom: 18px;
  }

  .sidebar__brand-title,
  .sidebar__logo {
    font-size: 26px !important;
  }

  .sidebar__brand-logo,
  .sidebar__logo::before {
    width: 38px;
    height: 38px;
  }
}


/* ===== УВЕЛИЧЕННЫЙ ЛОГОТИП В ЛЕВОМ МЕНЮ ===== */

.sidebar__brand {
  display: block !important;
  padding: 0 0 28px !important;
  margin-bottom: 6px !important;
}

.sidebar__brand-logo {
  display: block !important;
  width: 150px !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 54px !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sidebar__brand-text {
  display: none !important;
}

/* Для внутренних страниц, где еще используется старый текстовый логотип СУОТ */
.sidebar__logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 32px !important;
  margin-bottom: 28px !important;
}

.sidebar__logo::before {
  width: 64px !important;
  height: 64px !important;
  border-radius: 14px !important;
  background-size: contain !important;
}


/* ===== БРЕНД В ЛЕВОМ МЕНЮ: ЛОГОТИП + СУОТ ===== */

.sidebar__brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 4px 0 30px !important;
  margin-bottom: 4px !important;
}

.sidebar__brand-logo {
  display: block !important;
  width: 150px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sidebar__brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.05 !important;
  min-width: 0 !important;
}

.sidebar__brand-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.08) !important;
}

.sidebar__brand-subtitle {
  margin-top: 6px !important;
  max-width: 190px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.68) !important;
  white-space: normal !important;
}

/* Поддержка старых внутренних шаблонов, где стоит только <div class="sidebar__logo">СУОТ</div> */
.sidebar__logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  margin-bottom: 30px !important;
}

.sidebar__logo::before {
  content: "" !important;
  display: block !important;
  width: 150px !important;
  height: 44px !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  background-image: url("/static/img/logo.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .sidebar__brand-logo,
  .sidebar__logo::before {
    width: 128px !important;
  }

  .sidebar__brand-title,
  .sidebar__logo {
    font-size: 36px !important;
  }
}


/* ===== КОМПАКТНЫЙ БРЕНД ВВЕРХУ МЕНЮ ===== */

.sidebar {
  padding-top: 18px !important;
}

.sidebar__brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 0 0 22px !important;
  margin-bottom: 0 !important;
}

.sidebar__brand-logo {
  display: block !important;
  width: 138px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.sidebar__brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 118px !important;
  min-width: 118px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.sidebar__brand-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  line-height: 0.92 !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-align: center !important;
}

.sidebar__brand-subtitle {
  margin-top: 4px !important;
  width: 118px !important;
  max-width: 118px !important;
  font-size: 8px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.72) !important;
  white-space: normal !important;
  text-align: center !important;
}

/* Для внутренних страниц со старым <div class="sidebar__logo">СУОТ</div> */
.sidebar__logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 138px !important;
  gap: 4px !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  line-height: 0.92 !important;
  color: #ffffff !important;
  margin: 0 0 22px 0 !important;
  text-align: center !important;
}

.sidebar__logo::before {
  content: "" !important;
  display: block !important;
  width: 138px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  background-image: url("/static/img/logo.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}


/* ===== PREMIUM: СВЕТЛЕЕ БОКОВАЯ ПАНЕЛЬ + КОМПАКТНЫЙ БРЕНД ===== */

.sidebar,
.sidebar--org {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #334155 0%, #2f3f52 48%, #28384c 100%) !important;
  color: #ffffff !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04) !important;
  padding-top: 18px !important;
}

/* Бренд ближе к верху и аккуратнее */
.sidebar__brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  padding: 0 0 24px !important;
  margin: 0 !important;
}

.sidebar__brand-logo {
  display: block !important;
  width: 154px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.sidebar__brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 132px !important;
  min-width: 132px !important;
  line-height: 1 !important;
  margin: -2px 0 0 0 !important;
}

.sidebar__brand-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 0.92 !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-align: center !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16) !important;
}

.sidebar__brand-subtitle {
  margin-top: 4px !important;
  width: 132px !important;
  max-width: 132px !important;
  font-size: 8px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.76) !important;
  white-space: normal !important;
  text-align: center !important;
}

/* Если в каких-то внутренних страницах используется старый .sidebar__logo */
.sidebar__logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 154px !important;
  gap: 3px !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 0.92 !important;
  color: #ffffff !important;
  margin: 0 0 24px 0 !important;
  text-align: center !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16) !important;
}

.sidebar__logo::before {
  content: "" !important;
  display: block !important;
  width: 154px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  background-image: url("/static/img/logo.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Меню чуть мягче и премиальнее */
.sidebar__link {
  color: rgba(255, 255, 255, 0.94) !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.10) !important;
}

.sidebar__link--active {
  background: rgba(255, 250, 242, 0.92) !important;
  color: #1f2937 !important;
}

.sidebar__link--active::before {
  background: #d28a2e !important;
}

.sidebar__footer {
  color: rgba(255, 255, 255, 0.72) !important;
}


/* ===== УБИРАЕМ ЛИШНИЙ БЛОК СТАТИСТИКИ В КАРТОЧКЕ ОРГАНИЗАЦИИ ===== */

/* Старый вариант блока */
.dashboard-grid {
  display: none !important;
}

/* Новый премиальный вариант блока, если он используется в шаблоне */
.org-stat-grid {
  display: none !important;
}

/* После удаления блока делаем отступ между шапкой организации и содержимым меньше */
.org-topbar {
  margin-bottom: 12px !important;
}

.org-premium-hero {
  margin-bottom: 14px !important;
}

