/* 관리자 콘솔: 공통 표 · 일괄 작업 바 · 탭 · 확인 화면 · 처리할 일 · 전역 검색 */

.ac-page { display:grid; gap:16px; max-width:1240px; }
.ac-tabs { display:flex; gap:4px; overflow-x:auto; padding:4px; border-radius:14px; background:rgba(118,118,128,.1); scrollbar-width:none; }
.ac-tabs::-webkit-scrollbar { display:none; }
.ac-tabs a { flex:0 0 auto; padding:8px 14px; border-radius:10px; color:var(--muted); font-size:14px; font-weight:600; white-space:nowrap; }
.ac-tabs a.active { color:var(--ink); background:var(--surface-solid); box-shadow:0 1px 3px rgba(0,0,0,.08); }
.ac-actions-row { display:flex; justify-content:flex-end; gap:8px; }

.ac-table-card { position:relative; display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.ac-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ac-toolbar input[type=search], .ac-toolbar .ac-grow { flex:1 1 220px; min-width:0; }
.ac-toolbar h2, .ac-table-card > h2 { margin:0; font-size:17px; }
.ac-toolbar input, .ac-toolbar select, .ac-bulk input, .ac-bulk select { min-height:38px; padding:0 11px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface-solid); color:var(--ink); }
.ac-toolbar .ac-narrow { width:120px; }
.ac-inline { flex-wrap:nowrap; }
.ac-inline input { flex:0 0 104px; width:104px; text-align:right; }
.ac-inline button, .ac-table td button { flex:0 0 auto; white-space:nowrap; }
.ac-toolbar button, .ac-bulk button { min-height:38px; padding:0 14px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-weight:600; cursor:pointer; }
.ac-toolbar button.red { background:var(--red); }
.ac-bulk button.ghost { background:rgba(255,255,255,.14); color:#fff; }
.ac-export { padding:8px 10px; border-radius:10px; font-size:13px; font-weight:600; }
.ac-total { margin-left:auto; color:var(--faint); font-size:13px; }

.ac-table-wrap { max-height:none; overflow:auto; }
.ac-table { width:100%; border-collapse:collapse; font-size:14px; }
.ac-table th { position:sticky; top:0; z-index:1; padding:9px 10px; border-bottom:1px solid var(--line-strong); background:var(--surface-solid); color:var(--muted); font-size:12px; font-weight:600; text-align:left; white-space:nowrap; }
.ac-table td { padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.ac-table tr:hover td { background:rgba(0,113,227,.035); }
.ac-table .num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ac-table .mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; }
.ac-table small { font-size:12px; }
.ac-check { width:34px; text-align:center !important; }
.ac-check input { width:17px; height:17px; accent-color:var(--accent); cursor:pointer; }
.ac-sort { color:inherit; }
.ac-sort.active { color:var(--accent); }
.ac-empty { padding:36px 10px !important; color:var(--faint); text-align:center; }
.ac-row-fail td { background:rgba(215,0,21,.04); }
.ac-bad { color:var(--red); }
.ac-pill { display:inline-block; padding:2px 9px; border-radius:999px; background:rgba(118,118,128,.12); color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; }
.ac-pill.ok { background:rgba(36,138,61,.12); color:var(--green); }
.ac-pill.off { background:rgba(178,80,0,.12); color:var(--amber); }
.ac-pill.bad { background:rgba(215,0,21,.1); color:var(--red); }

.ac-pager { display:flex; align-items:center; justify-content:center; gap:16px; font-size:14px; }
.ac-pager span { color:var(--faint); }

/* 선택하면 화면 아래에 떠오르는 일괄 작업 바 */
.ac-bulk { position:sticky; bottom:16px; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border-radius:16px; background:rgba(29,29,31,.94); color:#fff; box-shadow:0 12px 32px rgba(0,0,0,.24); backdrop-filter:blur(20px); }
.ac-bulk[hidden] { display:none; }
.ac-bulk strong { margin-right:6px; font-size:14px; }
.ac-bulk select, .ac-bulk input { border-color:rgba(255,255,255,.2); background:rgba(255,255,255,.1); color:#fff; }
.ac-bulk option { color:#000; }
.ac-op-fields { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; }
.ac-op-fields[hidden] { display:none; }

/* 확인 · 결과 화면 */



.ac-warn { padding:10px 12px; border-radius:12px; background:rgba(178,80,0,.1); color:var(--amber); }















/* 대시보드 첫 화면: 처리할 일 + 최근 작업 */















/* 전역 검색 (Ctrl+K) */
.ac-search-trigger { display:flex; align-items:center; gap:8px; width:100%; min-height:38px; margin:0 0 14px; padding:0 11px; border:1px solid var(--line); border-radius:11px; background:var(--surface-solid); color:var(--faint); font-size:14px; cursor:pointer; }
.ac-search-trigger kbd { margin-left:auto; padding:1px 6px; border:1px solid var(--line-strong); border-radius:6px; font:12px ui-monospace,Menlo,monospace; }
.ac-palette-backdrop { position:fixed; inset:0; z-index:200; display:flex; justify-content:center; padding:12vh 16px 16px; background:rgba(0,0,0,.28); backdrop-filter:blur(4px); }
.ac-palette-backdrop[hidden] { display:none; }
.ac-palette { width:min(620px,100%); max-height:70vh; display:flex; flex-direction:column; overflow:hidden; border-radius:18px; background:var(--surface-solid); box-shadow:0 24px 64px rgba(0,0,0,.28); }
.ac-palette input { width:100%; padding:16px 18px; border:0; border-bottom:1px solid var(--line); outline:none; font-size:17px; }
.ac-palette ul { margin:0; padding:6px; overflow:auto; list-style:none; }
.ac-palette li a { display:grid; grid-template-columns:72px minmax(0,1fr); gap:0 10px; padding:9px 12px; border-radius:11px; color:var(--ink); }
.ac-palette li a span { grid-row:span 2; align-self:center; color:var(--faint); font-size:12px; }
.ac-palette li a small { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-palette li.active a { background:var(--accent-soft); }
.ac-palette .ac-palette-empty { padding:18px; color:var(--faint); text-align:center; }

@media (max-width: 860px) {
  
  .ac-table-card { padding:12px; border-radius:18px; }
  .ac-table { font-size:13px; }
  .ac-total { width:100%; margin-left:0; }
  .ac-bulk { bottom:calc(76px + env(safe-area-inset-bottom)); }
  
}

.v4-mobile-head [data-ac-search-open] { margin-left:auto; }


/* 유저 상세: 탭으로 나눈 영역 */







/* 기존 스타일의 입력칸 width:100% 를 표 도구줄 · 일괄 작업 바에서는 끈다 */
.ac-toolbar input, .ac-toolbar select, .ac-bulk input, .ac-bulk select, .ac-toolbar button, .ac-bulk button { width:auto; margin:0; }
.ac-toolbar input[type=search] { width:auto; flex:1 1 220px; }
