/* В духе плоской палитры Bitrix24 (светлая сетка, ссылки) */
.b24-page {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #333;
  background: #eef2f4;
  min-height: 100vh;
}

.b24-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.b24-title {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.b24-lead,
.b24-note {
  line-height: 1.55;
  color: #525c69;
  margin: 0 0 12px;
}

.b24-note {
  font-size: 13px;
}

.b24-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.b24-col-picker-wrap {
  position: relative;
}

.b24-columns-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d3d9de;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.b24-columns-panel[hidden] {
  display: none !important;
}

.b24-columns-panel__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #525c69;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.b24-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 38px;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: #2fc6f6;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.b24-btn:hover {
  background: #25b0e0;
}

.b24-btn:active {
  transform: translateY(1px);
}

.b24-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.b24-btn-ghost {
  background: #fff;
  color: #2b76b8;
  border: 1px solid #d3d9de;
  box-shadow: none;
}

.b24-btn-ghost:hover {
  background: #f5f7f8;
}

.b24-btn-mini {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.b24-input,
.b24-select {
  height: 38px;
  border: 1px solid #d3d9de;
  border-radius: 2px;
  padding: 0 10px;
  font: inherit;
  color: #333;
  background: #fff;
}

.b24-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dfe3e6;
  border-radius: 2px;
}

.b24-input {
  min-width: 200px;
}

.b24-input-sm {
  min-width: 140px;
}

.b24-input-date {
  min-width: 150px;
}

.b24-meta {
  font-size: 13px;
  color: #868d95;
}

.b24-err {
  background: #fdeaea;
  border: 1px solid #f5c6cb;
  color: #a94442;
  padding: 12px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  font-size: 13px;
}

.b24-table-wrap {
  background: #fff;
  border: 1px solid #dfe3e6;
  border-radius: 2px;
  overflow: auto;
  max-height: calc(100vh - 260px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.b24-table-wrap.is-loading-more {
  scroll-behavior: smooth;
}

tr.b24-row-sentinel td {
  text-align: center;
  color: #868d95;
  font-size: 13px;
  padding: 14px;
  background: #f8fafb;
}

.b24-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.b24-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #868d95;
  background: #f5f7f8;
  border-bottom: 1px solid #dfe3e6;
  padding: 12px 14px;
  white-space: nowrap;
}

.b24-table thead th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.b24-table thead th[data-sort]:hover {
  color: #2066b0;
  background: #eef5fb;
}

.b24-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef0f2;
  vertical-align: top;
  color: #333;
}

.b24-table tbody tr:hover td {
  background: #f8fafb;
}

.b24-table tbody tr:last-child td {
  border-bottom: none;
}

.b24-pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.b24-link {
  color: #2066b0;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
}

.b24-link:hover {
  text-decoration: underline;
  color: #1056a0;
}

.b24-muted {
  color: #a8adb4;
  font-style: italic;
}

.b24-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  background: #e3f6fd;
  color: #0b6f91;
}

code {
  font-size: 12px;
  background: #eef1f4;
  padding: 1px 6px;
  border-radius: 2px;
}

.b24-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.b24-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.b24-modal[hidden] {
  display: none !important;
}

.b24-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.b24-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 20px 22px 18px;
}

.b24-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.b24-modal__toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.b24-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.b24-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 10px;
  border: 1px solid #d3d9de;
  border-radius: 2px;
  background: #f8fafb;
}

.b24-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

.b24-checklist input {
  flex-shrink: 0;
}

.b24-rebuild-progress {
  margin: 10px 0 0;
  line-height: 1.45;
}

.b24-modal__panel_wide {
  max-width: 560px;
}

.b24-export-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.b24-export-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #525c69;
}

.b24-select-block {
  width: 100%;
}

.b24-export-cols-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.b24-checklist_export {
  max-height: 220px;
}
