/* ── 공통 변수 ── */
:root {
  --primary:      #2e5fa3;
  --primary-dark: #1e3a5f;
  --primary-light:#e8f0fb;
  --success:      #198754;
  --warning:      #ffc107;
  --danger:       #dc3545;
  --border-radius: 10px;
}

/* ── 레이아웃 ── */
body { background: #f0f2f5; font-family: 'Segoe UI', 'Malgun Gothic', sans-serif; }

.navbar-app {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: .6rem 1.2rem;
}

.card-app {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.card-app .card-header {
  background: var(--primary);
  color: #fff;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-weight: 700;
  padding: .75rem 1.2rem;
}

/* ── Tabulator 커스텀 ── */
.tabulator .tabulator-header {
  background: var(--primary) !important;
  border-bottom: none;
}
.tabulator .tabulator-col {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}
.tabulator .tabulator-col .tabulator-col-title { color: #fff !important; }
.tabulator .tabulator-col .tabulator-arrow    { border-top-color: rgba(255,255,255,.7) !important; }
.tabulator-row.tabulator-selected             { background: var(--primary-light) !important; }
.tabulator-row:hover                          { background: #f5f8ff !important; }
.tabulator .tabulator-footer                  { background: #fafafa; border-top: 1px solid #e0e0e0; }

/* ── 툴바 ── */
.toolbar {
  background: #fff;
  border-radius: var(--border-radius);
  padding: .7rem 1rem;
  margin-bottom: .9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.toolbar .sep {
  width: 1px; height: 26px;
  background: #dee2e6;
  margin: 0 .2rem;
}

/* ── 업로드 폼 ── */
.upload-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .7rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}
.upload-row:last-child { border-bottom: none; }
.upload-label {
  min-width: 200px;
  font-size: .88rem;
  font-weight: 600;
  color: #333;
}
.file-name {
  font-size: .8rem;
  color: #888;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 보고서 테이블 ── */
#reportTable thead th  { background: var(--primary); color: #fff; }
#reportTable tfoot td  { background: #eef2fb; font-weight: 700; border-top: 2px solid var(--primary); }
#reportTable tbody tr:hover { background: #f5f8ff; }

/* ── 로그인 ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f2f5 0%, #dce6f5 100%);
}
.login-card {
  width: 380px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(30,58,95,.15);
}
.login-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
