.central-container {
  max-width: min(1760px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 32px);
}

.central-auth-page.auth-locked .central-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.central-auth-page.auth-locked #authPanel {
  max-width: 420px;
  width: 100%;
}

.central-app {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
  width: 100%;
}

.central-app .page-header {
  border-radius: 14px;
  flex-wrap: wrap;
  gap: 14px;
}

.central-panel {
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.central-panel h2 {
  margin-bottom: 6px;
}

.central-panel .hint {
  margin-top: 0;
  margin-bottom: 14px;
}

.central-panel--wide {
  overflow: hidden;
}

.central-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}

.central-stat-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.central-stat-card .label {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.central-stat-card .value {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  line-height: 1.15;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pickup-hints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.pickup-hint-card {
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(146, 64, 14, 0.08);
}

.pickup-hint-card strong {
  color: #92400e;
  font-size: 15px;
}

.pickup-hint-meta {
  font-size: 13px;
  color: #78350f;
  margin-top: 8px;
  line-height: 1.45;
}

/* Список поручений ЦО (вместо канбана) */
.central-board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}

.central-board-empty {
  margin: 8px 0 0;
}

.central-board-row {
  display: grid;
  grid-template-columns:
    minmax(100px, 120px) minmax(0, 1fr) minmax(130px, 150px) minmax(148px, 188px) minmax(110px, 140px) minmax(180px, 260px);
  gap: 12px 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.central-board-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.central-board-row--new {
  border: 2px solid #16a34a;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 42%);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}

.central-board-row--danger {
  border: 2px solid #dc2626;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 42%);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.central-board-row--done {
  border: 2px solid #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 42%);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.central-board-cell--num {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 14px;
}

.central-board-title {
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}

.central-board-muted {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
}

.central-board-cell--date {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
}

.central-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #dbe2ea;
}

.central-status-pill--moderation {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.central-status-pill--transferred {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.central-status-pill--active {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.central-status-pill--done {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.central-status-pill--cancelled {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.central-status-pill--fix {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

.central-status-pill--default {
  background: #f8fafc;
  color: #334155;
  border-color: #dbe2ea;
}

.central-board-cell--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
}

.central-co-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.central-co-status-label {
  font-size: 11px;
  white-space: nowrap;
}

.central-co-status-select {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 100%;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.central-co-status-btn {
  flex: 0 0 auto;
}

.central-board-cell--actions .central-action-btn {
  cursor: pointer;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.central-board-cell--actions .central-action-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.central-action-btn--danger {
  border-color: #b91c1c !important;
  background: #dc2626 !important;
}

.central-action-btn--danger:hover {
  background: #b91c1c !important;
}

.central-board-cell--docs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.central-doc-btn {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.central-doc-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.central-doc-btn:focus-visible,
.central-action-btn:focus-visible,
.central-co-status-select:focus-visible,
.central-protocol-btn:focus-visible,
.central-app button:focus-visible,
.central-app input:focus-visible,
.central-app select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
}

.central-doc-meta {
  font-size: 11px;
  line-height: 1.35;
}

.central-stat-card--dash {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}

.central-protocol-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.central-protocol-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 1100px) {
  .central-board-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .central-board-cell--actions {
    justify-content: flex-start;
  }
}

.kanban-root {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  align-items: flex-start;
  scroll-snap-type: x proximity;
}

.kanban-col {
  flex: 0 0 clamp(280px, 26vw, 340px);
  min-width: 272px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f1f5f9;
  max-height: min(72vh, 820px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.kanban-col-head {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  color: #334155;
}

.kanban-col-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}

.kanban-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.kanban-card:last-child {
  margin-bottom: 0;
}

.kanban-card .num {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 14px;
}

.kanban-card .title {
  margin: 6px 0 0;
  color: #0f172a;
  font-weight: 600;
}

.kanban-card .muted {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
}

.central-timeline {
  max-height: min(380px, 45vh);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.central-timeline li {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
}

.central-timeline li:last-child {
  border-bottom: none;
}

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

.section-head h2 {
  margin: 0;
}

.central-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.central-toolbar input,
.central-toolbar select {
  min-width: 180px;
}

.kanban-card {
  cursor: pointer;
}

.kanban-card .chip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.kanban-card .chip.done {
  background: #dcfce7;
  color: #166534;
}

.kanban-card .chip.progress {
  background: #dbeafe;
  color: #1e40af;
}

.central-details {
  display: grid;
  gap: 12px;
}

.central-details-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.central-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}

.central-detail-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.central-detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
