/* DB관리 > 보안처리 (2026-08-24) — 표준 페이지 문법 (타겟관리와 동일 계열, .scx-*) */

.scx-tabs { display: inline-flex; background: #f1f5f9; border-radius: 9px; padding: 3px; gap: 2px; }
.scx-tab { padding: 6px 16px; border: none; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: transparent; color: #64748b; font-family: inherit; }
.scx-tab.on { background: #2563eb; color: #fff; }
.scx-panel { display: none; }
.scx-panel.on { display: block; }

.scx-sec { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.scx-sec-hd { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid #f1f5f9; font-size: 13px; font-weight: 600; color: #111827; flex-wrap: wrap; }
.scx-sec-hd .m { font-weight: 400; font-size: 11px; color: #9ca3af; }

.scx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 14px 15px 0; }
.scx-kpi { border: 1px solid #e5e7eb; border-radius: 9px; padding: 10px 13px; }
.scx-kpi .l { font-size: 11px; color: #6b7280; }
.scx-kpi .v { font-size: 20px; font-weight: 800; margin-top: 2px; color: #111827; }
.scx-kpi .v small { font-size: 11px; font-weight: 500; color: #9ca3af; }
.scx-kpi.red .v { color: #dc2626; }
.scx-kpi.blue .v { color: #2563eb; }
.scx-kpi.grn .v { color: #16a34a; }

.scx-srch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 15px; border-bottom: 1px solid #f1f5f9; background: #fafbfc; }
.scx-srch select, .scx-srch input[type="text"] { border: 1px solid #d1d5db; border-radius: 7px; padding: 6px 9px; font-size: 12px; font-family: inherit; background: #fff; color: #111827; }
.scx-seg { display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 2px; gap: 2px; }
.scx-seg button { padding: 5px 12px; border: none; border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; background: transparent; color: #64748b; font-family: inherit; }
.scx-seg button.on { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.scx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.scx-table th { text-align: left; padding: 9px 12px; background: #f8fafc; color: #6b7280; font-size: 11px; font-weight: 600; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.scx-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #111827; }
.scx-table tr:last-child td { border-bottom: none; }

.scx-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.scx-chip.red { background: #fee2e2; color: #dc2626; }
.scx-chip.amber { background: #fef3c7; color: #b45309; }
.scx-chip.blue { background: #dbeafe; color: #1d4ed8; }
.scx-chip.gray { background: #f1f5f9; color: #64748b; }
.scx-chip.grn { background: #dcfce7; color: #15803d; }
.scx-chip.navy { background: #111827; color: #fff; }

.scx-btn { border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.scx-btn:hover { background: #f9fafb; }
.scx-btn.pri { background: #2563eb; border-color: #2563eb; color: #fff; }
.scx-btn.warn { color: #dc2626; border-color: #fecaca; }

.scx-muted { color: #9ca3af; font-size: 11px; }
.scx-empty { padding: 26px; text-align: center; color: #9ca3af; font-size: 12.5px; }

/* 등록 모달 필드 (A-4 모달 문법) */
.scx-kind { display: flex; gap: 8px; }
.scx-kind-btn { flex: 1; border: 1.5px solid #dbe6f0; border-radius: 11px; background: #fff; padding: 9px 12px; text-align: left; cursor: pointer; font-family: inherit; }
.scx-kind-btn.on { border-color: #3e6187; background: #f3f7fb; box-shadow: 0 0 0 1px #3e6187; }
.scx-kind-btn .kn { font-size: 12.5px; font-weight: 800; color: #0f172a; }
.scx-kind-btn .kd { font-size: 10.5px; color: #64748b; margin-top: 2px; }

.scx-fld label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.scx-fld input, .scx-fld select { width: 100%; border: 1.5px solid #c4d3e2; border-radius: 8px; padding: 8px 11px; font-size: 13px; font-family: inherit; background: #fcfdfe; color: #0f172a; box-sizing: border-box; }
.scx-fld input:focus, .scx-fld select:focus { outline: none; border-color: #3e6187; box-shadow: 0 0 0 3px #3e618722; }

@media (max-width: 760px) {
  .scx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .scx-table th, .scx-table td { white-space: nowrap; }
  .scx-srch { padding: 9px 11px; }
}
