*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

.page-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 800px;
}

/* Навигация */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #fbbf24 55%, #d97706 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  position: relative;
}

.logo-icon::after {
  content: "₽";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
}

.logo-text {
  letter-spacing: 0.01em;
}

.logo:hover {
  opacity: 0.96;
}

.nav-links a {
  margin-left: 20px;
  color: #e5e7eb;
  font-size: 14px;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero */

.hero { padding: 48px 0 28px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.hero-subtitle {
  margin: 0 0 16px;
  opacity: 0.92;
}

.hero-benefits {
  padding-left: 18px;
  font-size: 14px;
}

/* Формы */

.loan-form {
  background: #fff;
  color: #111827;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.form-step h2 {
  margin-top: 0;
  font-size: 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  width: 100%;
}

.display-box {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  background: #f9fafb;
}

.display-box input {
  border: none;
  background: transparent;
  width: 90px;
  font-size: 16px;
  text-align: right;
  outline: none;
}

.display-box span {
  margin-left: 6px;
  font-size: 14px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}


/* Поля и слайдеры */
.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.display-box input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

.display-box span {
  color: #6b7280;
  font-size: 14px;
}

.display-box input:focus {
  outline: none;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

textarea,
input[type="text"],
input[type="number"] {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  background: #ffffff;
}


/* Кнопки */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out, background 0.15s;
}

.btn-primary {
  background: #facc15;
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #eab308;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: #111827;
  color: #f9fafb;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.buttons-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Общие секции */

.section {
  padding: 32px 0;
  background: #ffffff;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

h1, h2, h3, h4 {
  margin-top: 0;
}

.conditions-list,
.steps-list,
.docs-list {
  padding-left: 18px;
}

/* Карточка с итогами на шаге 2 */

.summary-card {
  background: #111827;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
}

.summary-main {
  margin: 4px 0 4px;
  font-size: 18px;
}

.summary-secondary {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.mt-24 {
  margin-top: 24px;
}

/* FAQ */

.faq-list details {
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 12px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
}

/* Документы */

.doc-tabs {
  margin-bottom: 16px;
}

.doc-tab {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  background: #111827;
  color: #f9fafb;
}

/* Админка */

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-search-input {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  min-width: 220px;
}

.admin-export-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #f9fafb;
  font-size: 13px;
  cursor: pointer;
}

.admin-export-btn:hover {
  background: #020617;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  background: #f3f4f6;
  text-align: left;
}

.admin-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.admin-table tbody tr:hover {
  background: #eff6ff;
}

.admin-delete-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  background: #f97373;
  color: #fff;
  cursor: pointer;
}

.admin-delete-btn:hover {
  background: #ef4444;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 32px 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
}

.footer-logo {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.5;
}

.footer-text.small {
  font-size: 11px;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.footer-links li {
  margin-bottom: 6px;
}

/* Адаптив */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 28px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .loan-form {
    padding: 18px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}



.hero-inner {
  align-items: center;
  gap: 40px;
  animation: heroFadeIn 0.45s ease-out;
}

.loan-form {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.loan-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

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


.admin-page .container {
  max-width: 1120px;
}

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

.admin-title {
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.admin-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.admin-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section:last-of-type { padding-bottom: 8px; }

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 28px;
  }
  .hero-text h1 {
    font-size: 22px;
    line-height: 1.25;
  }
  .loan-form {
    padding: 16px 14px;
  }
}


.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table tbody td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .admin-card {
    padding: 12px;
  }
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}


.section-flow {
  background: #f9fafb;
}

.section-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.flow-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 55%);
}

.flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.flow-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 13px;
  color: #4b5563;
}

.conditions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.conditions-block h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.conditions-block .list li {
  font-size: 14px;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .conditions-layout {
    grid-template-columns: 1fr;
  }
}

.display-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  background: #f9fafb;
}

.display-box input {
  border: none;
  background: transparent;
  width: 80px;
  font-size: 16px;
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.display-box span {
  margin-left: 2px;
  font-size: 14px;
}

.display-btn {
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
  padding: 0;
}

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

.required-mark {
  color: #ef4444;
  margin-left: 4px;
}


.admin-container-wide{max-width:1500px;margin:0 auto;}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

.admin-title {
  font-size: 26px;
}

.admin-subtitle {
  font-size: 14px;
}

.admin-card {
  padding: 20px 20px 18px;
}

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

.admin-actions-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-search-input {
  min-width: 260px;
  font-size: 13px;
  padding: 8px 12px;
}

.admin-table {
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 10px;
}

.admin-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.status-badge {
  min-width: 110px;
  text-align: center;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.status-select {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.status-save-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
}

.status-save-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .admin-container-wide{max-width:1500px;margin:0 auto;}
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-input {
    width: 100%;
  }
}


/* --- Admin panel refined typography --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.admin-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-table th,
.admin-table td {
  vertical-align: middle;
}

/* Actions column */
.cell-actions {
  min-width: 170px;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.status-select {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.status-save-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.status-save-btn:hover {
  background: #1d4ed8;
}

.row-delete-form {
  margin-top: 2px;
}

.admin-delete-btn {
  font-size: 12px;
  padding: 3px 0;
  border: none;
  background: none;
  color: #dc2626;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-delete-btn:hover {
  color: #b91c1c;
}

/* Slightly calmer row background */
.admin-table tbody tr:nth-child(even) {
  background-color: #f3f4f6;
}

@media (max-width: 768px) {
  .cell-actions {
    min-width: 150px;
  }

  .status-form {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ====== ADMIN PANEL REDESIGN ====== */
.admin-page {
  background: #f3f4f6;
  padding-top: 32px;
  padding-bottom: 40px;
}

.admin-container-wide{max-width:1500px;margin:0 auto;}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.admin-header-main {
  max-width: 720px;
}

.admin-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.admin-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.admin-header-text {
  white-space: nowrap;
}

.admin-shell {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 18px 18px 16px;
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.admin-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.admin-search-wrap {
  max-width: 480px;
}

.admin-input {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background: #f9fafb;
}

.admin-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: #ffffff;
}

.admin-input-search {
  width: 100%;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.admin-filter-label {
  font-size: 12px;
  color: #6b7280;
}

.admin-input-date {
  padding-inline: 10px;
  background: #ffffff;
}

.admin-input-select {
  padding-right: 26px;
  background: #ffffff;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.32);
}

.btn-primary:hover {
  background: #020617;
  border-color: #020617;
}

.btn-outline {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.btn-outline:hover {
  border-color: #111827;
}

.btn-link {
  border: none;
  padding: 0;
  background: none;
  font-size: 12px;
  color: #ef4444;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: #b91c1c;
}

.btn-icon {
  font-size: 14px;
}

/* Table wrapper */
.admin-table-card {
  margin-top: 4px;
}

.admin-table-scroll {
  overflow-x: auto;
}

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

.admin-table thead tr {
  background: #f9fafb;
}

.admin-table th,
.admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 600;
  font-size: 12px;
  color: #6b7280;
}

.admin-table tbody tr:hover {
  background: #f3f4ff;
}

.th-actions {
  text-align: right;
}

.cell-actions {
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.status-new {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-progress {
  background: #fffbeb;
  color: #92400e;
}

.status-done {
  background: #ecfdf5;
  color: #15803d;
}

.status-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.status-select {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 4px 10px;
  font-size: 12px;
}

.btn-status-save {
  font-size: 12px;
  padding-inline: 12px;
}

.row-delete-form {
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .admin-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-shell {
    padding: 14px 12px 12px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-wrap {
    max-width: 100%;
  }

  .admin-table {
    font-size: 12px;
  }

  .th-actions,
  .cell-actions {
    text-align: left;
  }
}


/* --- Admin polish v2 --- */

/* немного крупнее шрифт в таблице и заголовках */
.admin-table {
  font-size: 14px;
}

.admin-table th {
  font-size: 13px;
  white-space: nowrap;
}

/* больше воздуха по вертикали */
.admin-table th,
.admin-table td {
  padding: 12px 14px;
}

/* колонки статуса и действий пошире */
.admin-table .th-actions,
.admin-table .cell-actions {
  min-width: 220px;
}

.status-badge {
  min-width: 130px;
  justify-content: center;
}

/* селект статуса шире, чтобы текст влезал */
.status-select {
  min-width: 140px;
}

/* единый стиль кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  background: #020617;
}

.btn-outline {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.btn-outline:hover {
  background: #f3f4f6;
}

.btn-link {
  background: transparent;
  border: none;
  padding-inline: 0;
  justify-content: flex-start;
  font-weight: 500;
}

/* кнопка удалить теперь как вторичная */
.btn-delete {
  color: #dc2626;
}

.btn-delete:hover {
  color: #b91c1c;
}

/* выравниваем блок действий по центру строки */
.cell-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* выровнять строки фильтров в одну линию, убрать ощущение "серых вставок" */
.admin-shell {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 20px 20px 18px;
}

.admin-page {
  background: #f3f4f6;
}

.admin-toolbar {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-filter-chip {
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-input-date,
.admin-input-select {
  background: #ffffff;
}

/* мобильная адаптация: таблица чуть мельче, но кликабельная */
@media (max-width: 768px) {
  .admin-table {
    font-size: 13px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 10px;
  }
  .admin-shell {
    border-radius: 16px;
    padding: 14px 12px 12px;
  }
  .cell-actions {
    min-width: 200px;
  }
}


/* --- Admin UX v16 --- */
.admin-container-wide{max-width:1500px;margin:0 auto;}

.admin-page {
  background: #ffffff;
}

.admin-shell {
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.admin-title {
  font-size: 28px;
}

.admin-subtitle {
  font-size: 14px;
}

/* таблица более крупная и читабельная */
.admin-table {
  font-size: 14px;
}

.admin-table th {
  font-size: 13px;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
}

/* ширина колонок статуса/действий */
.admin-table .th-actions,
.cell-actions {
  min-width: 260px;
}

/* блок действий */
.cell-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-main-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* панель изменения статуса */
.status-edit-panel {
  display: none;
  margin-top: 4px;
}

.cell-actions.is-editing .status-edit-panel {
  display: block;
}

.status-edit-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.status-edit-label {
  font-size: 12px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* единый стиль кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.05s ease, color 0.18s ease;
}

.btn-xs {
  padding: 5px 14px;
  font-size: 12px;
}

.btn-primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.btn-outline:hover {
  background: #f3f4f6;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #6b7280;
}

.btn-ghost:hover {
  background: #f3f4f6;
  color: #111827;
}

/* статус-бейджи */
.status-badge {
  min-width: 130px;
  justify-content: center;
  font-size: 12px;
}

/* Кастомный select в фильтрах и панели статуса */
.custom-select,
.admin-input-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 8px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

/* адаптив */
@media (max-width: 900px) {
  .admin-shell {
    border-radius: 20px;
    padding: 16px 12px 14px;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 10px;
  }

  .cell-actions {
    min-width: 230px;
  }
}


/* --- Admin UX v17 final polish --- */

/* Чуть более спокойный фирменный шрифт по всему сайту */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Растягиваем админскую карточку по максимуму */
.admin-container-wide{max-width:1500px;margin:0 auto;}

.admin-shell {
  border-radius: 28px;
  padding: 24px 24px 20px;
}

/* Аккуратный липкий заголовок таблицы и ховер строк */
.admin-table-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.admin-table-scroll {
  max-height: 70vh;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr {
  transition: background 0.12s ease, transform 0.05s ease;
}

.admin-table tbody tr:hover {
  background: #eef2ff;
}

/* Выравниваем колонки, чтобы всё дышало */
.admin-table {
  table-layout: auto;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
  width: 52px;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  width: 95px;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 80px;
}

/* ФИО и город получше растягиваем */
.admin-table th:nth-child(7),
.admin-table td:nth-child(7) {
  width: 190px;
}

.admin-table th:nth-child(8),
.admin-table td:nth-child(8) {
  width: 150px;
}

/* Статус + действия по ширине */
.admin-table th:nth-child(12),
.admin-table td:nth-child(12) {
  width: 140px;
}

.admin-table th:nth-child(13),
.admin-table td:nth-child(13) {
  width: 260px;
}

/* Фильтры и поиск в один аккуратный ряд */
.admin-toolbar {
  gap: 18px;
}

.admin-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-search-wrap {
  min-width: 320px;
}

.admin-input-search {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-chip {
  background: #f3f4f6;
  padding-inline: 12px;
}

/* Кнопку экспорта делаем чуть компактнее */
.btn-export {
  padding-inline: 16px;
  white-space: nowrap;
}

/* Панель действий в строке — более ровная */
.cell-actions {
  align-items: flex-start;
}

.actions-main-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Делает edit-панель немного компактнее по высоте */
.status-edit-inner {
  padding: 6px 10px;
}

/* Чуть приподнимаем бейджи статуса визуально */
.status-badge {
  border-radius: 999px;
}

/* Адаптив под телефоны */
@media (max-width: 900px) {
  .admin-shell {
    padding: 16px 12px 12px;
  }
  .admin-header-bar {
    gap: 10px;
  }
  .admin-table-scroll {
    max-height: 60vh;
  }
  .admin-table {
    font-size: 13px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }
  .admin-search-wrap {
    min-width: 100%;
  }
}


/* === Admin CRM full-width layout v19 === */

/* Белый фон страницы */
body {
  background: #ffffff;
}

/* Растягиваем админку как CRM */
.section.admin-page {
  padding-top: 32px;
  padding-bottom: 40px;
}

.admin-container-wide{max-width:1500px;margin:0 auto;}

/* Карточка на всю ширину */
.admin-shell {
  width: 100%;
  border-radius: 20px;
  margin-top: 16px;
}

/* Таблица без фиксированных ширин, чтобы текст не ломался */
.admin-table {
  table-layout: auto;
  font-size: 14px;
}

.admin-table th {
  font-size: 13px;
}

/* Сбрасываем все width из предыдущих версий */
.admin-table th,
.admin-table td {
  width: auto !important;
}

/* На мобилках меньше отступы */
@media (max-width: 900px) {
  .admin-container-wide{max-width:1500px;margin:0 auto;}
  .admin-shell {
    border-radius: 16px;
  }
}


/* === Admin CRM layout v21 === */

.section.admin-page {
  padding: 20px 0 24px;
  background: transparent;
}

.admin-container-wide{max-width:1500px;margin:0 auto;}

/* Базовый лэйаут: сайдбар + контент */
.crm-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* Сайдбар как в реальных CRM */
.crm-sidebar {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  background: #0f172a;
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.crm-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.crm-logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 0 0, #22c55e, #22c55e 36%, #16a34a 36%, #16a34a 64%, #15803d 64%);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.9), 0 0 20px rgba(16, 185, 129, 0.55);
}

.crm-sidebar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crm-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.crm-sidebar-sub {
  font-size: 11px;
  color: #9ca3af;
}

.crm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.crm-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 13px;
  text-align: left;
  cursor: default;
}

.crm-nav-link.is-active {
  background: rgba(15, 118, 110, 0.35);
  color: #e5e7eb;
  cursor: pointer;
}

.crm-nav-link.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.crm-nav-link:is(a) {
  text-decoration: none;
}

.crm-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.crm-sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 10px;
  margin-top: 6px;
}

.crm-sidebar-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.crm-sidebar-meta {
  font-size: 12px;
  color: #e5e7eb;
}

/* Основной столбец */
.crm-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Верхняя карточка с заголовком и метриками */
.crm-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: radial-gradient(circle at top left, #ecfeff 0, #eff6ff 30%, #f9fafb 70%);
  border-radius: 18px;
  padding: 18px 20px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.35);
}

.crm-header-main {
  max-width: 60%;
}

.crm-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.crm-subtitle {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}

.crm-header-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}

.crm-stat {
  min-width: 80px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.crm-stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.crm-stat-value {
  font-size: 17px;
  font-weight: 600;
}

.crm-stat-new {
  color: #dc2626;
}

.crm-stat-progress {
  color: #eab308;
}

.crm-stat-done {
  color: #16a34a;
}

/* Карточка фильтров */
.crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
  gap: 12px 16px;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.15);
}

.crm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-filter-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.crm-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.crm-search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #9ca3af;
  box-sizing: border-box;
}

.crm-search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #9ca3af;
  transform: rotate(45deg);
  transform-origin: left center;
  bottom: -2px;
  right: -4px;
}

.crm-input,
.crm-select {
  display: block;
  width: 100%;
  height: 36px;
  padding-inline: 10px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.crm-search-input-wrap .crm-input {
  padding-left: 30px;
}

.crm-input:focus,
.crm-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  background: #ffffff;
}

/* Кнопки */
.crm-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.crm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.crm-btn-xs {
  padding: 5px 9px;
  font-size: 11px;
}

.crm-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.crm-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
}

.crm-btn-ghost {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.crm-btn-ghost:hover {
  background: #e5e7eb;
}

.crm-btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.crm-btn-danger:hover {
  background: #fee2e2;
}

/* Таблица */
.crm-table-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.crm-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(to right, #f9fafb, #eff6ff);
}

.crm-table-title {
  font-size: 14px;
  font-weight: 600;
}

.crm-table-meta {
  font-size: 12px;
  color: #6b7280;
}

.crm-table-wrap {
  position: relative;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.crm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: auto;
  min-width: 0;
}

.crm-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 10px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}

.crm-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.crm-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

.crm-table tbody tr:hover td {
  background: #e5f2ff;
}


.crm-table .cell-id {
  color: #6b7280;
}

.crm-table .cell-fio {
  font-weight: 500;
  min-width: 140px;
}

.crm-table .cell-amount,
.crm-table .cell-term {
  white-space: nowrap;
}

.crm-table .cell-telegram {
  word-break: break-all;
}

.crm-table .cell-status {
  white-space: nowrap;
}
.crm-row-actions,
.crm-status-form,
.crm-delete-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-delete-form {
  margin-top: 4px;
}

/* Переиспользуем старые бейджи статуса, но слегка подправим */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.status-new {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-progress {
  background: #fffbeb;
  color: #92400e;
}

.status-done {
  background: #ecfdf5;
  color: #15803d;
}

/* Пустое состояние */
.crm-empty-state {
  padding: 32px 20px 28px;
  text-align: left;
}

.crm-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.crm-empty-text {
  font-size: 13px;
  color: #6b7280;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .crm-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-sidebar {
    position: static;
    order: 2;
  }

  .crm-header-main {
    max-width: 100%;
  }

  .crm-header-card {
    flex-direction: column;
  }

  .crm-header-stats {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
    grid-auto-rows: auto;
  }

  .crm-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .admin-container-wide{max-width:1500px;margin:0 auto;}

  .crm-sidebar {
    display: none;
  }

  .crm-header-card {
    padding: 14px 12px;
  }

  .crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
  }

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

  .crm-table {
    min-width: 0;
  }
}


/* Дополнительные доработки CRM v23 */
.crm-table .cell-time {
  width: 80px;
  font-variant-numeric: tabular-nums;
}

.crm-status-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-status-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}

.crm-status-filter-btn.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.crm-status-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-right: 6px;
}

.crm-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
  cursor: pointer;
}

.crm-status-pill.is-active {
  border-color: #2563eb;
  background: #e0edff;
  color: #1d4ed8;
}

.crm-status-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crm-delete-form {
  display: inline-flex;
}

.crm-table .crm-col-actions {
  width: 220px;
}

/* Чуть сжимаем столбцы, чтобы убрать горизонтальный скролл на десктопе */
.crm-table .cell-telegram {
  max-width: 130px;
}


.crm-filters-card {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  padding:12px;
}
.crm-input-sm {padding:4px 6px;font-size:12px;}


.crm-filters-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 12px 16px;
}

.crm-filters-card .crm-filter-group {
  flex: 1 1 160px;
}

.crm-filters-card .crm-filter-search {
  flex: 2 1 260px;
}

.crm-filters-card .crm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Обновлённый стиль кнопок CRM */
.crm-btn {
  border-radius: 8px;
}

.crm-btn-primary {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.crm-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.crm-btn-ghost {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.crm-btn-ghost:hover {
  background: #e5e7eb;
}

.crm-btn-ghost:active {
  background: #e5e7eb;
  transform: translateY(1px);
}


.crm-table th, .crm-table td { max-width: 180px; }


.crm-col-actions {
  white-space: nowrap;
}

.crm-status-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crm-status-form .crm-input-sm,
.crm-status-form select {
  min-width: 120px;
}

.crm-delete-form {
  display: inline-flex;
  margin-left: 8px;
}

.crm-delete-form .crm-btn-xs {
  padding-inline: 10px;
}


.admin-page.section { padding-bottom: 16px; }


/* --- CRM filters layout v70 --- */
.crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
  gap: 12px 16px;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.15);
}

.crm-filters-card .crm-filter-group {
  min-width: 0;
}

.crm-filters-card .crm-filter-search {
  grid-column: 1;
}

.crm-filters-card .crm-filter-status {
  grid-column: 2;
}

.crm-filters-card .crm-filter-dates {
  grid-column: 3;
}

.crm-filters-card .crm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Date range inside one block */
.crm-filter-dates-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.crm-filter-date-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-filter-label-sub {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
}

/* Responsive filters */
@media (max-width: 1024px) {
  .crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
  }
  .crm-filters-card .crm-filter-search {
    grid-column: 1 / -1;
  }
  .crm-filters-card .crm-filter-dates {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
  }
  .crm-filters-card .crm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}
}



/* --- CRM buttons polish v70 --- */
.crm-btn {
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.crm-btn:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.crm-btn:active {
  transform: translateY(1px);
}

.crm-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
  border-color: transparent;
}

.crm-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
}

.crm-btn-ghost {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.crm-btn-ghost:hover {
  background: #e5e7eb;
}



/* --- CRM table compact v70 --- */
.crm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  table-layout: auto;
  min-width: 0 !important;
}

.crm-table th,
.crm-table td {
  padding: 6px 8px;
}

.crm-table .cell-fio {
  min-width: 140px;
}

.crm-table .cell-telegram {
  word-break: break-all;
  white-space: normal;
}

.crm-table .cell-status {
  white-space: nowrap;
}

.crm-col-actions,
.crm-table .crm-col-actions {
  width: auto;
  white-space: nowrap;
}

/* tighten wrapper to avoid useless scrollbars */
.crm-table-wrap {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
}



/* --- CRM modal v70 --- */
.crm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.crm-modal.is-open {
  display: flex;
}

.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.crm-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  padding: 18px 18px 16px;
  animation: crm-modal-in 0.16s ease-out;
}

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

.crm-modal-title {
  font-size: 16px;
  font-weight: 600;
}

.crm-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.crm-modal-text {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.crm-modal-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}

.crm-modal-status-btn.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.crm-modal-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

body.crm-modal-open {
  overflow: hidden;
}

@keyframes crm-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* v71 filters vertical alignment */
.crm-filters-card {
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}
.crm-filters-card .crm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

/* v71 table cell truncation for better row layout */
.crm-table .cell-fio,
.crm-table .cell-telegram {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-table .cell-fio { max-width: 180px; }
.crm-table .cell-telegram { max-width: 160px; }

/* --- CRM table overflow fix v72 --- */
.crm-table {
  width: 100%;
  table-layout: auto;
  min-width: 0;
}

.crm-table-wrap {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: auto;
}

/* tighten filters top padding */
.crm-filters-card {
  padding-top: 8px;
}


/* CRM v80A: wider date inputs */
.crm-filter-dates-row .crm-input {
  min-width: 150px;
}

.crm-filter-dates-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}



/* CRM v80A: larger table card */
.admin-container-wide {
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
}

.crm-table-card {
  padding: 20px 24px 24px;
}

.crm-table {
  font-size: 13px;
}

.crm-table th,
.crm-table td {
  padding: 8px 10px;
}



/* CRM v81: wider date inputs */
.crm-filter-dates-row .crm-input {
  min-width: 180px;
}



/* CRM v81: wider admin container & table */
.admin-container-wide {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 16px;
}

.crm-table-card {
  padding: 24px 24px 28px;
}

.crm-table {
  font-size: 14px;
}

.crm-table th,
.crm-table td {
  padding: 9px 12px;
}



/* CRM: таблица без горизонтального скролла */
.crm-table-wrap {
  position: relative;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Wider date inputs */
.crm-filter-dates-row .crm-input {
  min-width: 170px;
}

/* Modal status buttons base */
.crm-modal-status-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.crm-modal-status-btn:hover {
  background: #eef2ff;
}

/* === CRM VARIANT A OVERRIDES === */

/* Чуть шире контейнер на десктопе */
@media (min-width: 1200px){
  .admin-container-wide{
    max-width: 1700px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-inline: 24px !important;
  }
}

/* Фильтры: 4 колонки, кнопки в один ряд */
@media (min-width: 1200px){
  .crm-filters-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 2.4fr) minmax(0, 1.2fr);
    gap: 12px 16px !important;
    align-items: end !important;
  }

  .crm-filter-actions{
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
}

/* Ровный блок дат */
.crm-filter-dates-row{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  gap: 8px !important;
}

.crm-filter-date-item{
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Таблица: выше, но со скроллом, чтобы не растягивать всё окно */
.crm-table-card{
  width: 100% !important;
  min-height: 55vh !important;
}

.crm-table-wrap{
  max-height: calc(100vh - 260px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Таблица всегда на всю ширину, без светлого хвоста справа */
.crm-table{
  width: 100% !important;
  table-layout: fixed !important;
}

/* Колонка действий компактнее, чтобы не съедать ширину */
.crm-table .crm-col-actions{
  width: 180px !important;
}

/* Адаптив: планшет и телефон — всё в колонку и читаемо */
@media (max-width: 1024px){
  .crm-layout{
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .crm-sidebar{
    position: static !important;
    width: 100% !important;
  }
  .crm-filters-card{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .crm-filter-actions{
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
  .crm-table-card{
    min-height: auto !important;
  }
}

@media (max-width: 640px){
  .crm-header-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .crm-filters-card{
    padding: 10px !important;
  }
  .crm-filter-label{
    font-size: 11px !important;
  }
  .crm-input,
  .crm-select{
    height: 34px !important;
    font-size: 12px !important;
  }
  .crm-table{
    font-size: 11px !important;
  }
  .crm-table thead th{
    font-size: 10px !important;
  }
}


/* Горизонтальное размещение кнопок действий в таблице */
.crm-table .cell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.crm-table .cell-actions .crm-status-form,
.crm-table .cell-actions .crm-delete-form {
  margin: 0;
}


/* CRM v90 – alignment polish for Status / Actions */
.crm-table thead th.crm-col-actions {
  text-align: right;
}

.crm-table thead th:nth-child(11),
.crm-table tbody td:nth-child(11) {
  text-align: center;
}

/* Unify Reset button hover/active with other ghost buttons */
#crmFiltersReset.crm-btn-ghost {
  outline: none;
}
#crmFiltersReset.crm-btn-ghost:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}


/* === CRM visual polish v93 === */

/* Smooth fade-in for admin content */
.admin-page .crm-layout {
  animation: crm-fade-in-up 0.35s ease-out;
}

@keyframes crm-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slightly stronger hover for table rows for better readability */
.crm-table tbody tr:hover td {
  background: #f3f4ff;
}

/* Active/hover states for status badge and action buttons */
.crm-status-badge {
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.crm-status-badge:hover {
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Cards hover: keep it subtle so это не мешает работе */
.crm-filters-card,
.crm-table-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.crm-filters-card:hover,
.crm-table-card:hover {
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
}

/* Stat counters on топе — легкий hover */
.crm-kpi-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.crm-kpi-card:hover {
  background: #0b1120;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
  transform: translateY(-2px);
}

/* Немного увеличил клик-зону статус/удалить */
.crm-table .cell-actions .crm-status-form,
.crm-table .cell-actions .crm-delete-form {
  padding-right: 2px;
}

/* Чуть более плотная колонка действий, чтобы текст не упирался в край */
.crm-table .crm-col-actions {
  width: 210px;
}


/* CRM v100 – alignment fixes */
.crm-table thead th:nth-child(11),
.crm-table tbody td:nth-child(11),
.crm-table .cell-status {
  text-align: center;
}

.crm-table .cell-actions {
  justify-content: flex-end;
}

.crm-table .crm-col-actions {
  width: 220px;
  text-align: right;
}


/* CRM v103 – table header alignment */
.crm-table thead th:nth-child(11),
.crm-table tbody td:nth-child(11),
.crm-table .cell-status {
  text-align: center;
}

.crm-table thead th.crm-col-actions,
.crm-table tbody td.crm-col-actions,
.crm-table .cell-actions {
  text-align: center;
  justify-content: center;
}

.crm-table .crm-col-actions {
  width: 210px;
}


/* CRM v107 – filter buttons row tweak */
.crm-filters-card .crm-filter-actions {
  margin-top: 2px;
}


/* CRM admin page footer spacing */
.section.admin-page {
  padding-bottom: 64px;
}


/* --- Mobile FULL FIX --- */
@media (max-width: 768px) {

  .section {
    padding: 24px 12px 90px 12px !important;
  }

  .section:last-of-type {
    padding-bottom: 120px !important;
  }

  .admin-container-wide {
    max-width: 100% !important;
    padding: 0 12px !important;
    margin: 0 !important;
  }

  .crm-layout { display: block !important; }
  .crm-sidebar { display: none !important; }

  .crm-header-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 12px !important;
  }

  .crm-header-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2,1fr) !important;
    gap: 8px !important;
  }

  .crm-filters-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .crm-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .crm-filter-actions .btn {
    width: 100% !important;
  }

  .crm-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
  }

  .admin-table {
    min-width: 740px !important;
  }

  .admin-table td, .admin-table th {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
}


/* === MOBILE UX IMPROVEMENTS v2 === */
@media (max-width: 768px) {

  /* Global paddings */
  body {
    font-size: 15px;
  }

  .main-header {
    padding: 10px 12px;
  }

  .main-header__logo-link {
    padding: 6px 0;
  }

  /* Top nav: make items easier to tap */
  .main-nav {
    gap: 8px;
  }

  .main-nav__link {
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
  }

  /* Hero step-1 card spacing */
  .hero {
    padding-bottom: 32px;
  }

  .calculator-card {
    padding: 20px 16px;
  }

  /* Sliders: bigger handles */
  .range-input {
    height: 32px;
  }

  .range-input::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .range-input::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }

  /* Text inputs: higher and larger font */
  .field-input,
  .field-input--textarea,
  .input,
  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .btn,
  button {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .btn--primary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* STEP 2: increase gap from form to footer */
  .section-form {
    padding-bottom: 120px;
  }

  /* --- Admin panel --- */
  .admin-page {
    padding: 16px 12px 120px;
  }

  .admin-container-wide {
    padding: 0;
  }

  .admin-card {
    padding: 14px 12px;
  }

  .admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-summary-item {
    padding: 10px 10px;
  }

  /* Filters block uses space better */
  .admin-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .admin-filters__row {
    flex-direction: column;
    gap: 10px;
  }

  .admin-filters__item {
    width: 100%;
  }

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

  .admin-filters__actions .btn {
    width: 100%;
  }

  /* Date inputs full width and one under another */
  .admin-date-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Table container scroll */
  .crm-table-wrap,
  .admin-table-wrap {
    margin-top: 16px;
    margin-bottom: 16px;
    width: 100%;
    overflow-x: auto;
  }

  .admin-table {
    min-width: 840px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-table__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .admin-table__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Top nav & logo on mobile */
  .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .page-main {
    padding-top: 76px;
  }

  .nav-inner {
    height: 64px;
    padding-inline: 12px;
  }

  .logo {
    font-size: 18px;
  }

  /* Range + numeric input: stack vertically for easier touch */
  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Step 2 buttons: full-width and stacked */
  .buttons-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .buttons-row .btn-primary,
  .buttons-row .btn-secondary {
    width: 100%;
  }

  /* CRM filters on mobile: use vertical layout, no big gaps */
  .crm-filters-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .crm-filter-group {
    width: 100%;
  }

  .crm-filter-dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .crm-filter-date-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .crm-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .crm-filter-actions .crm-btn {
    width: 100%;
    justify-content: center;
  }

  /* CRM date / time columns: more air */
  .cell-date,
  .cell-time {
    white-space: nowrap;
    min-width: 90px;
    padding-right: 10px;
  }

  /* CRM actions column: vertical buttons, more gap from status */
  .crm-row-actions,
  .crm-status-form,
  .crm-delete-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cell-actions,
  .crm-col-actions {
    padding-left: 8px;
    min-width: 140px;
  }

}


/* === HARD MOBILE FIXES v4 === */
@media (max-width: 768px) {

  /* Fix top nav: always visible and easier taps */
  .top-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }

  .page-main {
    padding-top: 80px !important;
  }

  .nav-inner {
    height: 64px !important;
    padding-inline: 12px !important;
  }

  .nav-links {
    display: flex;
    gap: 16px !important;
  }

  .nav-links a {
    margin-left: 0 !important;
    padding: 8px 4px !important;
    font-size: 15px !important;
  }

  /* Step 2 buttons: full-width stack, same look */
  .buttons-row {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }

  .buttons-row .btn-primary,
  .buttons-row .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Range + numeric selectors: vertical layout */
  .input-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* CRM filters: remove empty space, stack blocks */
  .crm-filters-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .crm-filter-group {
    width: 100% !important;
  }

  .crm-filter-dates {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .crm-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .crm-filter-actions .crm-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Date / time cells: more air and readability */
  .cell-date,
  .cell-time {
    white-space: nowrap !important;
    padding-right: 10px !important;
    min-width: 90px !important;
  }

  /* Status / actions: split vertically, not stuck together */
  .cell-status {
    padding-right: 8px !important;
  }

  .cell-actions,
  .crm-col-actions {
    padding-left: 8px !important;
    min-width: 150px !important;
  }

  .crm-row-actions,
  .crm-status-form,
  .crm-delete-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
}


/* === MOBILE ADMIN POLISH v6 === */
@media (max-width: 768px) {

  /* Убираем боковой сайдбар полностью */
  .crm-sidebar { display: none !important; }

  /* Основной контент на всю ширину */
  .crm-layout { 
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Сужаем padding таблицы */
  .crm-table-card {
    padding: 12px 10px 18px !important;
    border-radius: 14px !important;
  }

  .crm-table {
    font-size: 12px !important;
    table-layout: fixed;
    width: 100%;
  }

  .crm-table th,
  .crm-table td {
    padding: 6px 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Прячем мало-важные колонки на мобильном */
  .cell-time,
  .cell-conviction,
  .cell-age {
    display: none !important;
  }
  .crm-table th:nth-child(3),
  .crm-table th:nth-child(10),
  .crm-table th:nth-child(8) {
    display: none !important;
  }

  /* Кнопки действий — в строку */
  .crm-row-actions {
    flex-direction: row !important;
    gap: 6px !important;
  }

  /* Модалка статуса ближе к центру */
  .crm-modal-dialog {
    width: 92% !important;
    max-width: 380px !important;
  }
}



/* === MOBILE ADMIN POLISH v7 (return columns, fix filters/actions) === */
@media (max-width: 768px) {

  /* Сайдбар возвращаем, но ставим над контентом на всю ширину */
  .crm-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .crm-sidebar {
    display: block !important;
    position: static !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 4px;
  }

  /* Вернуть скрытые ранее колонки на мобилке */
  .cell-time,
  .cell-conviction,
  .cell-age,
  .crm-table th:nth-child(3),
  .crm-table th:nth-child(8),
  .crm-table th:nth-child(10) {
    display: table-cell !important;
  }

  /* Таблица чуть компактнее, без поломок */
  .crm-table {
    font-size: 12px !important;
  }

  .crm-table th,
  .crm-table td {
    padding: 6px 6px !important;
  }

  /* Ограничим самые длинные поля, чтобы не ломали сетку */
  .crm-table .cell-fio {
    max-width: 150px;
  }

  .crm-table .cell-telegram {
    max-width: 140px;
  }

  /* Колонка действий — колонкой, занимает всю ширину ячейки */
  .cell-actions,
  .crm-col-actions {
    min-width: 160px !important;
    white-space: normal !important;
    padding-left: 6px !important;
  }

  .crm-row-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .crm-status-form,
  .crm-delete-form {
    width: 100%;
  }

  .crm-status-form .crm-btn,
  .crm-delete-form .crm-btn {
    width: 100%;
    justify-content: center;
  }

  /* Фильтры — меньше пустоты и всё по вертикали без огромных отступов */
  .crm-filters-card {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
    gap: 10px !important;
  }
}


/* === CRM ROW INTERACTION === */
.crm-table-body .crm-row {
  transition: background 0.12s ease, transform 0.06s ease;
}
.crm-table-body .crm-row:hover {
  background: #f9fafb;
}
.crm-table-body .crm-row:active {
  transform: translateY(1px);
  background: #eef2ff;
}

/* === MOBILE ADMIN TWEAKS v8 === */
@media (max-width: 768px) {
  /* Действия в таблице — компактные кнопки в строку */
  .cell-actions,
  .crm-col-actions {
    min-width: 140px !important;
    padding-left: 4px !important;
  }

  .crm-status-form,
  .crm-delete-form {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .crm-status-form .crm-btn,
  .crm-delete-form .crm-btn {
    width: auto !important;
    justify-content: center;
  }

  /* Фильтры — без лишней пустоты */
  .crm-filters-card {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
    gap: 8px !important;
  }
}


/* === FINAL MOBILE FIX V9C === */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
}

/* Общий фикс для шапки */
@media (max-width: 1024px) {
  .top-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.97) !important;
    backdrop-filter: blur(10px);
  }

  .page-main {
    padding-top: 80px !important;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: 64px !important;
    padding-inline: 16px !important;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .top-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    margin-left: 0 !important;
    font-size: 16px !important;
    padding: 6px 0 !important;
  }

  /* CRM: полностью убираем зелёный блок-меню */
  .crm-sidebar {
    display: none !important;
  }

  .crm-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Фильтры CRM: компактнее и без пустоты */
  .crm-filters-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px 12px !important;
  }

  .crm-filter-group {
    width: 100% !important;
  }

  .crm-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .crm-filter-actions .crm-btn {
    width: 100% !important;
  }

  /* Таблица заявок как карточка, ничего не обрезается */
  .crm-table-card {
    padding: 10px 8px 12px !important;
    overflow: visible !important;
  }

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

  .crm-table thead {
    display: none;
  }

  .crm-table tbody {
    display: block;
  }

  .crm-table tr {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .crm-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0 !important;
    border: none;
    white-space: normal !important;
  }

  .crm-table td::before {
    content: attr(data-label);
    flex: 0 0 45%;
    max-width: 45%;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding-right: 8px;
  }

  .cell-status .status-badge {
    margin-left: auto;
  }

  .cell-actions {
    margin-top: 8px;
  }

  .cell-actions .crm-btn {
    width: 100% !important;
  }

  .crm-status-form,
  .crm-delete-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
}


/* V10 FIXED NAV */
.top-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
}

.page-main {
  padding-top: 88px !important;
}


/* V10 CRM FILTERS */
.crm-filters-card {
  min-height: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 10px 12px !important;
  padding: 12px 16px !important;
}

.crm-filters-card .crm-filter-group,
.crm-filters-card .crm-filter-search,
.crm-filters-card .crm-filter-dates {
  flex: 1 1 220px !important;
}

.crm-filter-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

.crm-filter-actions .crm-btn {
  min-width: 160px;
}

@media (max-width: 768px) {
  .crm-filters-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px 12px !important;
  }

  .crm-filters-card .crm-filter-group,
  .crm-filters-card .crm-filter-search,
  .crm-filters-card .crm-filter-dates,
  .crm-filter-actions {
    width: 100% !important;
  }

  .crm-filter-actions {
    flex-direction: column !important;
  }

  .crm-filter-actions .crm-btn {
    width: 100% !important;
  }
}


/* V10 CRM TABLE */
.crm-table .cell-fio,
.crm-table .cell-telegram {
  max-width: none !important;
  white-space: nowrap;
}

.crm-table {
  table-layout: auto !important;
}

/* Мобильные карточки заявок — читаемые блоки */
@media (max-width: 768px) {
  .crm-table-card {
    background: transparent;
    box-shadow: none;
  }

  .crm-table tbody {
    display: block;
  }

  .crm-table tr {
    display: block;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  }

  .crm-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0 !important;
    border: none;
    white-space: normal !important;
  }

  .crm-table td::before {
    content: attr(data-label);
    flex: 0 0 45%;
    max-width: 45%;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding-right: 8px;
  }

  .cell-actions {
    margin-top: 8px;
  }

  .crm-status-form,
  .crm-delete-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .cell-actions .crm-btn {
    width: 100% !important;
  }
}


/* V11 CRM ONE COLUMN */
.admin-page .crm-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Extra highlight for mobile cards */
@media (max-width: 768px) {
  .crm-table tr {
    background: #f3f4ff;
    border: 1px solid rgba(129, 140, 248, 0.35);
  }
}



/* === V12 NAV / CRM FINAL === */

/* Фикс шапки без белой полосы */
.top-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
}

/* Отступ под фиксированную шапку, чтобы заголовок не прятался */
.page-main {
  padding-top: 64px !important;
}

/* --- CRM фильтры: аккуратно на ПК и мобиле --- */
.crm-filters-card {
  min-height: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 12px 16px !important;
  padding: 14px 18px !important;
}

.crm-filters-card .crm-filter-group,
.crm-filters-card .crm-filter-search,
.crm-filters-card .crm-filter-dates {
  flex: 1 1 220px !important;
}

/* Кнопки фильтров на ПК справа, в один ряд */
.crm-filter-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.crm-filter-actions .crm-btn {
  min-width: 160px;
}

/* Мобилка: всё в одну колонку, без пустот */
@media (max-width: 768px) {
  .crm-filters-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px 12px !important;
  }

  .crm-filters-card .crm-filter-group,
  .crm-filters-card .crm-filter-search,
  .crm-filters-card .crm-filter-dates,
  .crm-filter-actions {
    width: 100% !important;
    margin: 0 !important;
  }

  .crm-filter-actions {
    justify-content: stretch !important;
    flex-direction: column !important;
  }

  .crm-filter-actions .crm-btn {
    width: 100% !important;
  }
}

/* --- CRM таблица: хорошо читаемые карточки на мобиле,
       + полное ФИО на десктопе --- */

/* На ПК больше не обрезаем ФИО / Telegram */
.crm-table .cell-fio,
.crm-table .cell-telegram {
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.crm-table {
  table-layout: auto !important;
}

/* Чистые карточки на телефоне */
@media (max-width: 768px) {
  .crm-table-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0 4px !important;
  }

  .crm-table thead {
    display: none !important;
  }

  .crm-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .crm-table tr {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
  }

  .crm-table td {
    display: flex !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal !important;
  }

  .crm-table td::before {
    content: attr(data-label) !important;
    flex: 0 0 42%;
    max-width: 42%;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding-right: 8px;
  }

  .crm-table .cell-actions {
    margin-top: 8px !important;
    flex-direction: column !important;
  }

  .crm-table .cell-actions::before {
    content: "Действия" !important;
    margin-bottom: 4px;
  }

  .crm-status-form,
  .crm-delete-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .crm-table .cell-actions .crm-btn {
    width: 100% !important;
  }
}


/* V14 MOBILE CRM CARD IMPROVE */
@media (max-width: 768px) {
  /* label сверху, значение ниже — без странных отступов */
  .crm-table td {
    flex-direction: column;
    align-items: flex-start;
  }

  .crm-table td::before {
    flex: 0 0 auto;
    max-width: 100%;
    margin-bottom: 2px;
  }

  /* компактнее карточки */
  .crm-table tr {
    padding: 8px 10px;
    margin-bottom: 10px;
  }
}

/* V14 DESKTOP FILTER BUTTONS — всегда в одну линию справа */
@media (min-width: 1024px) {
  .crm-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
    justify-content: flex-end;
  }
  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: auto;
  }
}


/* === V15 ADMIN FIXES === */

/* Desktop: фильтр-кнопки жёстко справа в один столбец */
@media (min-width: 1024px) {
  .crm-filters-card {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr auto;
    align-items: end;
    column-gap: 24px;
    row-gap: 12px;
  }

  .crm-filter-group,
  .crm-filter-search,
  .crm-filter-dates {
    width: 100%;
  }

  .crm-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: auto;
  }
}

/* Mobile: компактный фильтр-блок без огромных пустот */
@media (max-width: 768px) {
  .crm-filters-card {
    min-height: auto;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .crm-filter-search,
  .crm-filter-group,
  .crm-filter-dates {
    width: 100%;
  }

  .crm-filter-dates {
    display: flex;
    gap: 8px;
  }

  .crm-filter-dates .form-control {
    width: 100%;
  }

  .crm-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: 100%;
  }
}

/* Mobile: карточки заявок — компактные и читаемые, без пустоты справа */
@media (max-width: 768px) {
  .admin-main,
  .admin-card,
  .crm-table-card {
    max-width: 100%;
  }

  .crm-table-card {
    padding: 10px 10px 14px;
    background: transparent;
    box-shadow: none;
  }

  .crm-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .crm-table tr {
    display: block;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .crm-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3px 0 !important;
    border: none;
    white-space: normal !important;
  }

  .crm-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2px;
  }

  .cell-actions {
    margin-top: 8px;
  }

  .cell-actions .crm-btn {
    width: 100%;
  }
}


/* === V16 ADMIN REFINEMENTS === */

/* Desktop: действия в таблице строго справа */
@media (min-width: 1024px) {
  .crm-table thead th.crm-col-actions,
  .crm-table tbody td.crm-col-actions,
  .crm-table .cell-actions {
    text-align: right;
    justify-content: flex-end;
  }
}

/* Mobile: ещё более компактный фильтр-блок и карточки */
@media (max-width: 768px) {
  /* Фильтры: меньше отступы и промежутки */
  .crm-filters-card {
    padding: 8px 10px 10px;
    gap: 6px;
  }

  .crm-filter-group {
    gap: 4px;
  }

  .crm-filter-actions {
    gap: 6px;
  }

  /* Карточки заявок: чуть плотнее друг к другу и по высоте */
  .crm-table tbody {
    gap: 8px;
  }

  .crm-table tr {
    padding: 8px 10px;
  }

  .crm-table td {
    padding: 2px 0 !important;
  }
}



/* === V17 ADMIN LAYOUT FIXES (DESKTOP + MOBILE) === */

/* Desktop: компактный фильтр, кнопки строго справа */
@media (min-width: 1024px) {
  .crm-filters-card {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr) auto;
    align-items: end;
    column-gap: 16px;
    row-gap: 8px;
  }

  .crm-filter-search,
  .crm-filter-group,
  .crm-filter-dates {
    width: 100%;
  }

  .crm-filter-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: auto;
  }
}

/* Mobile: компактный фильтр без огромных пустот */
@media (max-width: 768px) {
  .crm-filters-card {
    min-height: auto;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .crm-filters-card .form-group,
  .crm-filters-card .form-row {
    margin-bottom: 0;
  }

  .crm-filter-search,
  .crm-filter-group {
    width: 100%;
  }

  .crm-filter-dates {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .crm-filter-dates .form-control {
    width: 100%;
  }

  .crm-filter-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: 100%;
  }
}

/* Mobile: заявки в виде карточек, без пустоты справа */
@media (max-width: 768px) {
  .admin-main,
  .admin-main .admin-card,
  .admin-main .crm-table-card {
    max-width: 100%;
  }

  .crm-table-card {
    min-height: auto;
    padding: 6px 10px 10px;
    background: transparent;
    box-shadow: none;
  }

  .crm-table {
    width: 100%;
  }

  .crm-table thead {
    display: none;
  }

  .crm-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .crm-table tr {
    display: block;
    padding: 10px 12px 12px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .crm-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3px 0;
    border: none;
    white-space: normal;
  }

  .crm-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2px;
  }

  .cell-status,
  .cell-actions {
    margin-top: 6px;
  }

  .cell-actions .crm-btn {
    width: 100%;
  }
}


/* === V18 MOBILE CRM TABLE COMPACT === */
@media (max-width: 768px) {
  .crm-table-card {
    padding-top: 4px;
    padding-bottom: 10px;
  }

  .crm-table {
    margin-top: 0;
  }

  .crm-table tbody {
    gap: 6px;
  }
}


/* === V21 ADMIN LAYOUT TWEAK === */

/* Desktop: фильтр-кнопки строго справа в отдельной колонке */
@media (min-width: 1024px) {
  .crm-filters-card {
    display: grid !important;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.4fr) auto !important;
    column-gap: 18px !important;
    row-gap: 8px !important;
    align-items: end !important;
  }

  .crm-filter-search,
  .crm-filter-group,
  .crm-filter-dates {
    width: 100% !important;
  }

  .crm-filter-actions {
    margin-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: auto !important;
  }
}

/* Mobile: компактный фильтр-блок, без огромных промежутков */
@media (max-width: 768px) {
  .admin-page .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .crm-filters-card {
    min-height: auto !important;
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .crm-filters-card .form-group,
  .crm-filters-card .form-row {
    margin-bottom: 0 !important;
  }

  .crm-filter-search,
  .crm-filter-group {
    width: 100% !important;
  }

  .crm-filter-dates {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .crm-filter-dates .form-control,
  .crm-filter-dates input[type="date"] {
    width: 100% !important;
  }

  .crm-filter-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .crm-filter-actions .btn,
  .crm-filter-actions .crm-btn {
    width: 100% !important;
  }
}

/* Mobile: карточки заявок чуть уже контейнера, без горизонтального скролла */
@media (max-width: 768px) {
  .admin-main,
  .admin-main .admin-card,
  .admin-main .crm-table-card {
    max-width: 100% !important;
  }

  .crm-table-card {
    min-height: auto !important;
    padding: 4px 0 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .crm-table-wrap {
    margin: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .crm-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .crm-table thead {
    display: none !important;
  }

  .crm-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .crm-table tr {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08) !important;
  }

  .crm-table td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 3px 0 !important;
    border: none !important;
    white-space: normal !important;
  }

  .crm-table td::before {
    content: attr(data-label) !important;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2px;
  }

  .cell-status,
  .cell-actions {
    margin-top: 4px !important;
  }

  .cell-actions .crm-btn {
    width: 100% !important;
  }
}
