/*
 * 연동기기현황 (시스템설정 > 연동기기현황) — 2026-07-26, 개발자 전용
 * 연동현황(KPI·워크스페이스별·기기 목록) / 연동이력(타임라인) 공용 스타일.
 */
.apdv { font-size: 12.5px; color: #0f172a; }

.apdv-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.apdv-kpi { flex: 1 1 120px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.apdv-kpi span { display: block; font-size: 11px; color: #64748b; }
.apdv-kpi span small { color: #cbd5e1; margin-left: 3px; }
.apdv-kpi strong { display: block; margin-top: 2px; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.apdv-kpi.on strong { color: #047857; }
.apdv-kpi.off strong { color: #b91c1c; }
.apdv-kpi.live { background: #ecfdf5; border-color: #a7f3d0; }
.apdv-kpi.live strong { color: #047857; }

.apdv-sec { margin-bottom: 16px; }
.apdv-sec-title { font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 7px; }
.apdv-sec-title small { font-weight: 400; color: #94a3b8; margin-left: 4px; }
.apdv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.apdv-chip { padding: 4px 10px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px;
  font-size: 11.5px; color: #1e40af; }
.apdv-chip b { margin-left: 4px; font-weight: 800; }
.apdv-chip.muted { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; }

.apdv-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px;
  padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.apdv-filter select, .apdv-filter input { padding: 6px 9px; border: 1px solid #d1d5db; border-radius: 7px;
  font-size: 11.5px; background: #fff; color: #111827; }
.apdv-filter input[type="text"] { flex: 1; min-width: 150px; }
.apdv-filter button { padding: 6px 14px; background: #3e6187; color: #fff; border: none; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; cursor: pointer; }
.apdv-filter button:hover { background: #34527a; }

.apdv-count { font-size: 11.5px; color: #64748b; margin-bottom: 8px; }
.apdv-table-wrap { border: 1px solid #e2e8f0; border-radius: 10px; overflow: auto; max-height: 60vh; }
.apdv-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.apdv-table thead th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1; text-align: center; font-weight: 600; color: #334155; white-space: nowrap; }
.apdv-table td { padding: 8px 10px; text-align: center; border-top: 1px solid #eef2f7; vertical-align: middle; }
.apdv-table tbody tr:nth-child(even) { background: #f8fafc; }
.apdv-table tbody tr:hover { background: #eef2ff; }
.apdv-name { font-weight: 700; color: #0f172a; }
.apdv-sub { font-size: 10.5px; color: #94a3b8; }

.apdv-badge { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.apdv-badge.work { background: #eff6ff; color: #1d4ed8; }
.apdv-badge.chat { background: #f5f3ff; color: #6d28d9; }
.apdv-state { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.apdv-state.active { background: #dcfce7; color: #15803d; }
.apdv-state.pending { background: #fef3c7; color: #92400e; }
.apdv-state.revoked { background: #f1f5f9; color: #64748b; }
.apdv-act { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #f1f5f9; color: #475569; }
.apdv-act.paired { background: #f0fdf4; color: #15803d; }
.apdv-act.revoked { background: #fef2f2; color: #b91c1c; }
.apdv-act.revoked_by_admin { background: #fff7ed; color: #c2410c; }

.apdv-repeat { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px;
  background: #fff7ed; color: #c2410c; font-size: 9.5px; font-weight: 700; }

.apdv-live { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10px; font-weight: 700; }
.apdv-live i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.apdv-live.on { color: #047857; } .apdv-live.on i { background: #10b981; }
.apdv-live.off { color: #94a3b8; } .apdv-live.off i { background: #cbd5e1; }

.apdv-btn-danger { padding: 4px 10px; background: #fff; border: 1px solid #fecaca; border-radius: 7px;
  color: #b91c1c; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.apdv-btn-danger:hover { background: #fef2f2; }

.apdv-empty { padding: 26px 16px; text-align: center; background: #f9fafb; border: 1px dashed #e2e8f0;
  border-radius: 10px; font-size: 12px; color: #9ca3af; }
.apdv-note { margin: 10px 0 0; font-size: 10.5px; color: #94a3b8; line-height: 1.6; }
.apdv-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 11.5px; color: #64748b; }
.apdv-pager button { padding: 5px 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 7px;
  font-size: 11.5px; color: #374151; cursor: pointer; }
.apdv-pager button:hover { background: #f3f4f6; }
