/* Небольшие доработки поверх Tailwind (чёрно-белая тема) */

.tab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 14px; white-space: nowrap;
  color: #737373; border-bottom: 2px solid transparent; background: none; cursor: pointer;
}
.tab-btn:hover { color: #171717; }
.tab-btn.active { color: #171717; border-bottom-color: #171717; font-weight: 600; }

.stat { border: 1px solid #d4d4d4; border-radius: 14px; padding: 14px 16px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: 12px; color: #737373; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #737373; }
.fld input, .fld select {
  border: 1px solid #d4d4d4; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: #171717; background: #fff;
}
.fld input:focus, .fld select:focus { outline: none; border-color: #171717; }
.fld-input {
  border: 1px solid #d4d4d4; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: #171717; background: #fff;
}
.fld-input:focus { outline: none; border-color: #171717; }
.nowrap { white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid #e5e5e5; border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
  text-align: left; padding: 10px 12px; background: #fafafa; color: #525252;
  font-weight: 600; white-space: nowrap; border-bottom: 1px solid #e5e5e5;
}
.tbl tbody td { padding: 9px 12px; border-top: 1px solid #f0f0f0; white-space: nowrap; }
.tbl tbody td.wrap { white-space: normal; max-width: 220px; line-height: 1.35; }
.tbl-active { min-width: 960px; }
.tbl-active thead th { font-size: 12px; padding: 9px 10px; }
.tbl-active tbody td { font-size: 13px; padding: 8px 10px; }
.tbl-active tbody td:first-child { width: 36px; text-align: center; color: #737373; }
.tbl tbody tr:hover { background: #fafafa; }

.pill { padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid #d4d4d4; }
.pill-in { background: #f5f5f5; }
.muted { color: #a3a3a3; font-style: italic; }
.ok { color: #16a34a; }
.fail { color: #dc2626; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid #d4d4d4; border-radius: 8px; cursor: pointer; background: #fff;
}
.iconbtn:hover { background: #171717; color: #fff; border-color: #171717; }
.iconbtn:disabled { opacity: .35; cursor: default; }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #d4d4d4; border-top-color: #171717; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.net-btn {
  padding: 8px 12px; font-size: 13px; border: 1px solid #d4d4d4; border-radius: 10px;
  background: #fff; color: #525252; cursor: pointer;
}
.net-btn:hover { border-color: #171717; color: #171717; }
.net-btn.active { background: #171717; color: #fff; border-color: #171717; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid transparent; }
.badge-wait { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.badge-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge-bad { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.dep-pager {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.dep-pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid #d4d4d4; border-radius: 8px; background: #fff;
  font-size: 13px; color: #525252; cursor: pointer;
}
.dep-pager-btn:hover:not(:disabled) { background: #171717; color: #fff; border-color: #171717; }
.dep-pager-btn:disabled { opacity: .35; cursor: default; }
.dep-pager-info { font-size: 13px; color: #737373; min-width: 72px; text-align: center; }

.support-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #525252; text-decoration: none;
  border: 1px solid #d4d4d4; border-radius: 8px; padding: 6px 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.support-link:hover { background: #171717; color: #fff; border-color: #171717; }

.dep-info {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: #fafafa; border: 1px solid #e5e5e5;
}
.dep-info-icon { font-size: 22px; color: #525252; flex-shrink: 0; margin-top: 2px; }
.dep-info-title { font-size: 14px; font-weight: 600; color: #171717; margin-bottom: 6px; }
.dep-info-text { font-size: 13px; line-height: 1.55; color: #525252; margin: 0; }
.dep-info-text strong { color: #171717; font-weight: 600; }

.login-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 20px;
  padding: 28px 24px; box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
