/* =============================================
   admin.css – 관리자 페이지 전용 스타일
   ============================================= */

/* 기본 레이아웃 */
.admin-body { background: #F1F3F6; min-height: 100vh; display: flex; font-family: 'Noto Sans KR',sans-serif; overflow-x: hidden; }
#adminApp { display: flex; width: 100%; min-height: 100vh; }

/* ─── 로그인 ─── */
.login-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #FFF8F3 0%, #FDE8D0 50%, #FCE4C8 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: #fff; border-radius: 22px;
  padding: 48px 44px; width: 100%; max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,.15);
  animation: slideUp .4s ease;
}
.login-head { text-align: center; margin-bottom: 34px; }
.login-pig { font-size: 3.2rem; margin-bottom: 12px; }
.login-head h1 { font-size: 1.5rem; font-weight: 800; color: #18181B; margin-bottom: 6px; }
.login-head p { font-size: .85rem; color: #71717A; }
.lf-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.lf-group label { font-size: .83rem; font-weight: 600; color: #52525B; display: flex; align-items: center; gap: 7px; }
.lf-group label i { color: #E8600A; }
.lf-group input { border: 2px solid #E4E4E7; border-radius: 10px; padding: 12px 15px; font-size: .93rem; font-family: inherit; outline: none; transition: border-color .2s; }
.lf-group input:focus { border-color: #E8600A; box-shadow: 0 0 0 3px rgba(232,96,10,.1); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-wrap button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #A1A1AA; cursor: pointer; font-size: .9rem; }
.login-err { font-size: .82rem; color: #EF4444; text-align: center; min-height: 18px; margin-bottom: 8px; }
.btn-login { width: 100%; background: linear-gradient(135deg,#E8600A,#C44F08); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(232,96,10,.3); transition: all .2s; margin-top: 4px; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,96,10,.4); }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: .82rem; color: #A1A1AA; transition: color .2s; }
.login-back:hover { color: #E8600A; }

/* ─── 사이드바 ─── */
.a-sidebar {
  width: 240px; min-width: 240px; background: #fff;
  border-right: 1px solid #E4E4E7;
  display: flex; flex-direction: column;
  height: 100vh; position: sticky; top: 0; z-index: 100;
  transition: transform .3s ease;
}
.sb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; border-bottom: 1px solid #E4E4E7;
}
.sb-logo { font-size: 1.8rem; flex-shrink: 0; }
.sb-head strong { display: block; font-size: .88rem; font-weight: 800; color: #18181B; }
.sb-head span { font-size: .72rem; color: #A1A1AA; }
.sb-close-btn { display: none; margin-left: auto; background: none; border: none; color: #A1A1AA; font-size: 1.1rem; cursor: pointer; }
.sb-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 10px;
  background: none; border: none; color: #71717A;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  text-align: left; width: 100%; transition: all .2s; font-family: inherit;
}
.sb-item:hover { background: #FFF4ED; color: #E8600A; }
.sb-item.active { background: #E8600A; color: #fff; box-shadow: 0 4px 12px rgba(232,96,10,.25); }
.sb-item i { width: 18px; text-align: center; font-size: .95rem; }
.sb-foot { padding: 14px 12px; border-top: 1px solid #E4E4E7; }
.btn-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 14px; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-logout:hover { background: #FEE2E2; }

/* ─── 메인 영역 ─── */
.a-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; width: 0; }
.a-header { background: #fff; border-bottom: 1px solid #E4E4E7; padding: 0 20px; height: 58px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ah-left { display: flex; align-items: center; gap: 14px; }
.btn-menu-toggle { background: none; border: none; color: #71717A; font-size: 1.1rem; cursor: pointer; display: none; }
.ah-title { font-size: 1rem; font-weight: 700; color: #18181B; }
.ah-right { display: flex; align-items: center; gap: 14px; }
.ah-realtime { display: flex; align-items: center; gap: 6px; background: #D1FAE5; color: #065F46; padding: 4px 12px; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.pulse { width: 8px; height: 8px; background: #10B981; border-radius: 50%; animation: pls 2s infinite; display: inline-block; }
@keyframes pls { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.ah-user { font-size: .82rem; color: #71717A; display: flex; align-items: center; gap: 6px; }
.ah-user i { color: #E8600A; font-size: 1.1rem; }

/* ─── 페이지 공통 ─── */
.a-page { flex: 1; }
.a-content { padding: 20px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; width: 100%; }

/* ─── 통계 카드 ─── */
.stat-cards { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; width: 100%; }
.sc { background: #fff; border-radius: 12px; padding: 16px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 2px solid #F4F4F5; transition: all .2s; }
.sc:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.1); }
.sc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sc-total .sc-icon { background: #FFF4ED; color: #E8600A; }
.sc-a .sc-icon { background: #EFF6FF; color: #1D6FD6; }
.sc-b .sc-icon { background: #FFF7ED; color: #D95F0A; }
.sc-c .sc-icon { background: #F0FDF4; color: #16A34A; }
.sc-part .sc-icon { background: #F5F3FF; color: #7C3AED; }
.sc-rate .sc-icon { background: #FDF2F8; color: #BE185D; }
.sc-lbl { font-size: .7rem; font-weight: 600; color: #A1A1AA; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.sc-val { font-size: 1.6rem; font-weight: 900; color: #18181B; line-height: 1; }
.sc-unit { font-size: .7rem; color: #A1A1AA; }

/* ─── 차트 카드 ─── */
.chart-row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; width: 100%; }
.chart-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); width: 100%; box-sizing: border-box; }
.chart-card.wide { grid-column: 1/2; }
.cc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.cc-head h3 { font-size: .88rem; font-weight: 700; color: #27272A; display: flex; align-items: center; gap: 7px; }
.cc-head h3 i { color: #E8600A; }
.cc-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn-sm-outline { background: #F4F4F5; border: 1px solid #E4E4E7; color: #71717A; padding: 5px 10px; border-radius: 7px; font-size: .78rem; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all .2s; font-family: inherit; }
.btn-sm-outline:hover { background: #E4E4E7; color: #27272A; }
.btn-sm-link { background: none; border: none; color: #E8600A; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.a-input-sm { border: 1.5px solid #E4E4E7; border-radius: 7px; padding: 5px 9px; font-size: .8rem; font-family: inherit; outline: none; color: #27272A; }
.a-input-sm:focus { border-color: #E8600A; }

/* ─── 리스트 카드 ─── */
.list-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.ri { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #FAFAFA; border-radius: 10px; cursor: pointer; transition: background .2s; }
.ri:hover { background: #FFF4ED; }
.ri-cat { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; color: #fff; flex-shrink: 0; }
.ri-cat.A { background: #1D6FD6; } .ri-cat.B { background: #D95F0A; } .ri-cat.C { background: #16A34A; }
.ri-info { flex: 1; min-width: 0; }
.ri-title { font-weight: 600; color: #27272A; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-meta { font-size: .75rem; color: #A1A1AA; margin-top: 2px; }
.ri-time { font-size: .75rem; color: #A1A1AA; white-space: nowrap; }

/* ─── 필터 바 ─── */
.filter-bar { background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); width: 100%; box-sizing: border-box; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #A1A1AA; font-size: .82rem; }
.srch-input { width: 100%; border: 2px solid #E4E4E7; border-radius: 10px; padding: 9px 14px 9px 36px; font-size: .88rem; font-family: inherit; outline: none; transition: border-color .2s; }
.srch-input:focus { border-color: #E8600A; }
.a-select-sm { border: 2px solid #E4E4E7; border-radius: 10px; padding: 9px 14px; font-size: .82rem; font-family: inherit; outline: none; cursor: pointer; background: #fff; transition: border-color .2s; }
.a-select-sm:focus { border-color: #E8600A; }
.filter-row2 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.result-cnt { font-size: .85rem; font-weight: 600; color: #71717A; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-excel { background: #16A34A; color: #fff; border: none; padding: 7px 14px; border-radius: 8px; font-size: .78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; transition: background .2s; white-space: nowrap; }
.btn-excel:hover { background: #15803D; }
.btn-excel.fil { background: #1D6FD6; }
.btn-excel.fil:hover { background: #1558B0; }
.btn-excel.blind { background: #7C3AED; }
.btn-excel.blind:hover { background: #6D28D9; }

/* ─── 테이블 ─── */
.tbl-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); width: 100%; box-sizing: border-box; }
.tbl-wrap { overflow-x: auto; width: 100%; }
.a-tbl { width: 100%; border-collapse: collapse; font-size: .83rem; }
.a-tbl th { background: #FAFAFA; border-bottom: 2px solid #E4E4E7; padding: 11px 14px; text-align: left; font-weight: 700; color: #71717A; font-size: .75rem; white-space: nowrap; }
.a-tbl td { padding: 12px 14px; border-bottom: 1px solid #F4F4F5; color: #3F3F46; vertical-align: middle; }
.a-tbl tr:last-child td { border-bottom: none; }
.a-tbl tr:hover td { background: #FAFAFA; }
.tbl-empty { text-align: center; padding: 44px !important; color: #A1A1AA; font-size: .88rem; }
.cat-pill { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 800; font-size: .82rem; color: #fff; }
.cat-pill.A { background: #1D6FD6; } .cat-pill.B { background: #D95F0A; } .cat-pill.C { background: #16A34A; }
.status-pill { display: inline-flex; padding: 3px 9px; border-radius: 100px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.st-접수 { background: #EFF6FF; color: #1D4ED8; }
.st-검토중 { background: #FFFBEB; color: #B45309; }
.st-1차통과 { background: #F0FDF4; color: #15803D; }
.st-선정 { background: #D1FAE5; color: #065F46; }
.st-미선정 { background: #F4F4F5; color: #71717A; }
.anon-code { font-family: 'Courier New',monospace; font-size: .78rem; font-weight: 700; color: #52525B; background: #F4F4F5; padding: 2px 7px; border-radius: 5px; }
.btn-detail { background: #F4F4F5; border: none; color: #52525B; padding: 5px 11px; border-radius: 7px; font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.btn-detail:hover { background: #E8600A; color: #fff; }
.btn-blind { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; padding: 5px 11px; border-radius: 7px; font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.btn-blind:hover { background: #DBEAFE; }
.btn-judge-input { background: #F5F3FF; border: 1px solid #DDD6FE; color: #6D28D9; padding: 5px 11px; border-radius: 7px; font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.btn-judge-input:hover { background: #EDE9FE; }

/* 페이지네이션 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 14px; border-top: 1px solid #F4F4F5; }
.pg-btn { background: #F4F4F5; border: none; color: #52525B; width: 34px; height: 34px; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; }
.pg-btn:hover { background: #E4E4E7; }
.pg-btn.active { background: #E8600A; color: #fff; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── 심사 관리 ─── */
.judge-dash { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.jd-card { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 2px solid #F4F4F5; }
.jd-card.pass { border-color: #BBF7D0; }
.jd-card.final { border-color: #FDE68A; }
.jd-card.judge { border-color: #DDD6FE; }
.jd-lbl { font-size: .75rem; font-weight: 600; color: #A1A1AA; margin-bottom: 6px; }
.jd-val { font-size: 1.4rem; font-weight: 800; color: #18181B; }
.judge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.judge-panel { background: #fff; border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; }
.jp-head { padding: 16px 20px; border-bottom: 1px solid #F4F4F5; display: flex; align-items: center; gap: 10px; }
.jp-head h3 { font-size: .92rem; font-weight: 700; color: #27272A; display: flex; align-items: center; gap: 7px; }
.jp-head h3 i { color: #E8600A; }
.badge-cnt { font-size: .72rem; font-weight: 700; background: #EFF6FF; color: #1D4ED8; padding: 2px 8px; border-radius: 100px; margin-left: 4px; }
.jp-body { padding: 18px 20px; overflow-y: auto; max-height: 400px; }
.judge-section {}
.js-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .85rem; }
.js-head strong { font-weight: 700; color: #27272A; }
.criteria-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; padding-right: 2px; }
.criteria-item { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 9px 11px; }
.ci-key { font-size: .72rem; font-weight: 700; color: #E8600A; background: #FFF4ED; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.ci-label { flex: 1; font-size: .83rem; font-weight: 600; color: #27272A; }
.ci-max { font-size: .78rem; color: #71717A; white-space: nowrap; }
.a-input-xs { border: 1.5px solid #E4E4E7; border-radius: 6px; padding: 3px 7px; font-size: .8rem; font-family: inherit; width: 54px; text-align: center; outline: none; }
.a-input-xs:focus { border-color: #E8600A; }
.btn-del-ci { background: none; border: none; color: #EF4444; cursor: pointer; font-size: .85rem; padding: 2px; }
.btn-add-criteria { display: flex; align-items: center; gap: 6px; background: #FFF4ED; color: #E8600A; border: 1.5px dashed #F97C2E; padding: 7px 14px; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; margin-top: 10px; font-family: inherit; transition: all .2s; width: 100%; justify-content: center; }
.btn-add-criteria:hover { background: #FDE8D0; }
.btn-save-criteria { width: 100%; background: #E8600A; color: #fff; border: none; padding: 11px; border-radius: 10px; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 16px; transition: background .2s; }
.btn-save-criteria:hover { background: #C44F08; }

/* 심사위원 */
.judge-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; min-height: 60px; }
.judge-item { display: flex; align-items: center; gap: 10px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 10px 13px; }
.ji-num { width: 24px; height: 24px; background: #E8600A; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.ji-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ji-name { font-weight: 700; font-size: .88rem; color: #27272A; }
.ji-role { font-size: .72rem; color: #A1A1AA; }
.ji-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-del-judge { background: none; border: none; color: #EF4444; cursor: pointer; font-size: .88rem; }
.add-judge-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #FAFAFA; border-radius: 10px; border: 1.5px dashed #E4E4E7; }
.btn-add-judge { background: #E8600A; color: #fff; border: none; padding: 10px; border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s; }
.btn-add-judge:hover { background: #C44F08; }
.a-input { border: 2px solid #E4E4E7; border-radius: 8px; padding: 9px 13px; font-size: .88rem; font-family: inherit; outline: none; transition: border-color .2s; width: 100%; }
.a-input:focus { border-color: #E8600A; }

/* 심사 입력 테이블 */
.judge-score-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.judge-score-tbl th { background: #FAFAFA; border-bottom: 2px solid #E4E4E7; padding: 9px 11px; text-align: center; font-weight: 700; color: #71717A; font-size: .73rem; white-space: nowrap; }
.judge-score-tbl td { padding: 8px 10px; border-bottom: 1px solid #F4F4F5; text-align: center; vertical-align: middle; }
.judge-score-tbl tr:hover td { background: #FAFAFA; }
.score-input { border: 1.5px solid #E4E4E7; border-radius: 6px; padding: 4px 7px; font-size: .8rem; width: 54px; text-align: center; font-family: inherit; outline: none; }
.score-input:focus { border-color: #E8600A; }
.total-score { font-weight: 800; color: #E8600A; font-size: .95rem; }
.pass-badge { background: #D1FAE5; color: #065F46; padding: 2px 8px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.fail-badge { background: #F4F4F5; color: #71717A; padding: 2px 8px; border-radius: 100px; font-size: .72rem; font-weight: 700; }

/* ─── 통계 ─── */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stats-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.full-col { grid-column: 1/-1; }
.rank-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #FAFAFA; border-radius: 10px; }
.rk-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.rk-1 { background: #FBBF24; color: #92400E; }
.rk-2 { background: #94A3B8; color: #1E293B; }
.rk-3 { background: #F97316; color: #7C2D12; }
.rk-n { background: #E4E4E7; color: #52525B; }
.rk-branch { flex: 1; font-weight: 600; color: #27272A; font-size: .88rem; }
.rk-bar { width: 120px; height: 7px; background: #E4E4E7; border-radius: 100px; overflow: hidden; }
.rk-bar-fill { height: 100%; background: linear-gradient(90deg,#E8600A,#F97C2E); border-radius: 100px; }
.rk-count { font-size: .88rem; font-weight: 800; color: #E8600A; white-space: nowrap; }
.rk-rate { font-size: .75rem; color: #A1A1AA; white-space: nowrap; }
.candidate-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cand-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(90deg,#FFFBEB,#fff); border: 1px solid #FDE68A; border-radius: 10px; }
.cand-rank { font-size: 1.4rem; flex-shrink: 0; }
.cand-name { font-weight: 700; font-size: .9rem; color: #18181B; }
.cand-meta { font-size: .75rem; color: #A1A1AA; margin-top: 2px; }
.cand-count { margin-left: auto; font-size: 1.1rem; font-weight: 800; color: #E8600A; white-space: nowrap; }
.badge-info { font-size: .73rem; color: #A1A1AA; background: #F4F4F5; padding: 3px 9px; border-radius: 100px; }

/* 기념품 테이블 */
.gift-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 12px; }
.gift-tbl th { background: #FAFAFA; border-bottom: 2px solid #E4E4E7; padding: 9px 13px; text-align: left; font-weight: 700; color: #71717A; font-size: .75rem; }
.gift-tbl td { padding: 9px 13px; border-bottom: 1px solid #F4F4F5; color: #3F3F46; }

/* ─── 설정 ─── */
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; width: 100%; box-sizing: border-box; }
.sett-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; width: 100%; }
.sett-head { padding: 16px 22px; border-bottom: 1px solid #F4F4F5; }
.sett-head h3 { font-size: .92rem; font-weight: 700; color: #27272A; display: flex; align-items: center; gap: 7px; }
.sett-head h3 i { color: #E8600A; }
.sett-body { padding: 20px 22px; }
.sf-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.sf-row:last-child { margin-bottom: 0; }
.sf-row label { font-size: .83rem; font-weight: 600; color: #52525B; }
.a-ta { border: 2px solid #E4E4E7; border-radius: 8px; padding: 10px 13px; font-size: .88rem; font-family: inherit; outline: none; resize: vertical; transition: border-color .2s; width: 100%; }
.a-ta:focus { border-color: #E8600A; }
.btn-save-sett { background: #E8600A; color: #fff; border: none; padding: 11px 24px; border-radius: 10px; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 8px; transition: background .2s; display: flex; align-items: center; gap: 7px; }
.btn-save-sett:hover { background: #C44F08; }
.toggle-sw { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.toggle-sw input { display: none; }
.toggle-track { width: 44px; height: 24px; background: #D4D4D8; border-radius: 100px; position: relative; transition: background .25s; }
.toggle-track .toggle-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .25s; }
.toggle-sw input:checked ~ .toggle-track { background: #16A34A; }
.toggle-sw input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }
.prize-sett-list { display: flex; flex-direction: column; gap: 8px; }
.pi-row { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 9px 12px; }
.pi-rank { font-size: .82rem; font-weight: 700; color: #27272A; min-width: 70px; }
.cat-sett-item { background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.cat-sett-item label { font-size: .78rem; font-weight: 600; color: #71717A; display: block; margin-bottom: 5px; }
.cat-sett-item input, .cat-sett-item textarea { border: 1.5px solid #E4E4E7; border-radius: 7px; padding: 8px 11px; font-size: .85rem; font-family: inherit; outline: none; width: 100%; margin-bottom: 8px; }
.cat-sett-item input:focus, .cat-sett-item textarea:focus { border-color: #E8600A; }
.branch-hc-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.hc-row { display: flex; flex-direction: column; gap: 4px; }
.hc-row label { font-size: .78rem; font-weight: 600; color: #52525B; }
.hc-row input { border: 1.5px solid #E4E4E7; border-radius: 7px; padding: 7px 10px; font-size: .85rem; font-family: inherit; outline: none; }
.hc-row input:focus { border-color: #E8600A; }
.print-judge-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-item { display: flex; align-items: center; gap: 6px; background: #FAFAFA; border: 1.5px solid #E4E4E7; border-radius: 8px; padding: 7px 12px; font-size: .83rem; cursor: pointer; }
.pj-item input { accent-color: #E8600A; }

/* ─── 상세보기 모달 ─── */
.detail-modal { max-width: 760px; max-height: 90vh; overflow-y: auto; }
.judge-modal { max-width: 680px; max-height: 90vh; overflow-y: auto; }
.detail-anon { font-family: 'Courier New',monospace; font-size: .82rem; font-weight: 700; color: #E8600A; background: #FFF4ED; padding: 3px 10px; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
.detail-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; background: #FAFAFA; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.dm-item { display: flex; flex-direction: column; gap: 3px; }
.dm-lbl { font-size: .7rem; font-weight: 600; color: #A1A1AA; text-transform: uppercase; letter-spacing: .06em; }
.dm-val { font-size: .85rem; font-weight: 600; color: #27272A; }
.detail-sec { background: #FAFAFA; border-radius: 10px; border-left: 4px solid #E8600A; padding: 15px 17px; margin-bottom: 14px; }
.detail-sec h4 { font-size: .83rem; font-weight: 700; color: #52525B; margin-bottom: 8px; }
.detail-sec p { font-size: .88rem; color: #3F3F46; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.btn-danger-sm { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; padding: 7px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; transition: all .2s; }
.btn-danger-sm:hover { background: #FEE2E2; }

/* ─── 인쇄 스타일 ─── */
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  @page { size: A4 portrait; margin: 18mm 15mm; }

  .print-page { page-break-after: always; font-family: 'Noto Sans KR',sans-serif; }
  .print-page:last-child { page-break-after: avoid; }

  .pr-header {
    background: linear-gradient(135deg,#E8600A,#C44F08) !important;
    color: #fff !important; padding: 16px 20px; margin-bottom: 18px;
    border-radius: 6px; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .pr-org { font-size: 9pt; opacity: .85; margin-bottom: 3px; }
  .pr-doc-title { font-size: 14pt; font-weight: 900; }
  .pr-doc-sub { font-size: 9pt; opacity: .8; margin-top: 3px; }

  .pr-oath {
    background: #FFF8F3 !important; border: 1.5px solid #F97C2E !important;
    border-radius: 5px; padding: 11px 14px; margin-bottom: 14px; font-size: 9pt; color: #333;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .pr-oath-label { font-weight: 700; margin-bottom: 5px; color: #E8600A; font-size: 9pt; }
  .pr-sign-row { display: flex; justify-content: flex-end; margin-top: 6px; font-size: 8.5pt; color: #555; }

  .pr-meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 14px; }
  .pr-meta-item { border: 1px solid #ccc; border-radius: 4px; padding: 7px 10px; }
  .pr-meta-label { font-size: 7.5pt; font-weight: 700; color: #666; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
  .pr-meta-value { font-size: 9.5pt; font-weight: 600; color: #111; }

  .pr-field { margin-bottom: 12px; }
  .pr-field-label { font-size: 8.5pt; font-weight: 700; color: #E8600A; background: #FFF4ED; padding: 4px 9px; border-radius: 3px; display: inline-block; margin-bottom: 6px; }
  .pr-field-content { font-size: 9pt; color: #222; line-height: 1.7; border: 1px solid #ddd; border-radius: 4px; padding: 9px 12px; white-space: pre-wrap; word-break: break-all; }

  .pr-blind-label { font-size: 9pt; font-weight: 700; color: #888; background: #f0f0f0; padding: 5px 12px; border-radius: 4px; display: inline-block; }

  /* 심사표 */
  .pr-judge-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; margin-top: 10px; }
  .pr-judge-table th { background: #F97C2E !important; color: #fff !important; padding: 7px 9px; text-align: center; font-weight: 700; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pr-judge-table td { padding: 7px 9px; border: 1px solid #ccc; text-align: center; }
  .pr-judge-table .left { text-align: left; }
  .pr-judge-total { background: #FFF4ED !important; font-weight: 800; color: #E8600A; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pr-sign-area { display: flex; justify-content: flex-end; margin-top: 8px; font-size: 8pt; color: #555; }
  .pr-sign-box { border: 1px solid #ccc; border-radius: 4px; padding: 6px 16px; display: flex; align-items: center; gap: 8px; }

  .pr-footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #ccc; font-size: 7.5pt; color: #888; text-align: center; }
}

/* ─── 모달 (공통) ─── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 20px; }
.modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 600px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: slideUp .3s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #F4F4F5; }
.modal-head h3 { font-size: 1rem; font-weight: 700; color: #18181B; display: flex; align-items: center; gap: 8px; }
.modal-head h3 i { color: #E8600A; }
.modal-close { background: none; border: none; color: #A1A1AA; font-size: 1.1rem; cursor: pointer; padding: 4px 7px; border-radius: 6px; transition: all .2s; }
.modal-close:hover { background: #F4F4F5; color: #27272A; }
.modal-body { padding: 22px; overflow-y: auto; max-height: 60vh; }
.modal-foot { padding: 14px 22px; border-top: 1px solid #F4F4F5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.btn-modal-primary { background: #E8600A; color: #fff; border: none; padding: 10px 20px; border-radius: 9px; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 7px; transition: background .2s; }
.btn-modal-primary:hover { background: #C44F08; }
.btn-modal-outline { background: #F4F4F5; color: #52525B; border: none; padding: 10px 18px; border-radius: 9px; font-size: .88rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-modal-outline:hover { background: #E4E4E7; }

/* ─── 상세 모달 내용 ─── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dg-section { background: #FAFAFA; border-radius: 10px; padding: 14px 16px; }
.dg-label { font-size: .78rem; font-weight: 700; color: #E8600A; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.dg-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; font-size: .85rem; }
.dg-row:last-child { margin-bottom: 0; }
.dg-key { font-weight: 600; color: #71717A; min-width: 70px; white-space: nowrap; font-size: .8rem; }
.dg-val { color: #27272A; flex: 1; }
.dg-full { margin-bottom: 10px; }
.dg-full .dg-key { display: block; font-weight: 600; color: #71717A; font-size: .8rem; margin-bottom: 5px; }
.dg-text { background: #fff; border: 1px solid #E4E4E7; border-radius: 8px; padding: 10px 13px; font-size: .85rem; color: #3F3F46; line-height: 1.7; white-space: pre-wrap; word-break: break-word; min-height: 50px; }
.det-file { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #1D6FD6; }
.det-file a { text-decoration: underline; }

/* ─── cat-badge / status-badge ─── */
.cat-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 10px; border-radius: 100px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cat-a { background: #EFF6FF; color: #1D4ED8; }
.cat-b { background: #FFF7ED; color: #C44508; }
.cat-c { background: #F0FDF4; color: #15803D; }
.status-badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: .73rem; font-weight: 600; white-space: nowrap; }
.s-접수 { background: #EFF6FF; color: #1D4ED8; }
.s-검토중 { background: #FFFBEB; color: #B45309; }
.s-1차통과 { background: #F0FDF4; color: #15803D; }
.s-선정 { background: #D1FAE5; color: #065F46; }
.s-미선정 { background: #F4F4F5; color: #71717A; }

/* ─── 최근 목록 ─── */
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #FAFAFA; border-radius: 10px; cursor: pointer; transition: background .2s; font-size: .84rem; }
.recent-item:hover { background: #FFF4ED; }
.recent-title { flex: 1; font-weight: 600; color: #27272A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-name { color: #71717A; white-space: nowrap; }
.recent-date { color: #A1A1AA; font-size: .75rem; white-space: nowrap; }

/* ─── 테이블 액션 버튼 ─── */
.tbl-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.btn-act { padding: 5px 10px; border-radius: 7px; border: none; font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.btn-act.view   { background: #EFF6FF; color: #1D4ED8; }
.btn-act.view:hover { background: #DBEAFE; }
.btn-act.report { background: #F5F3FF; color: #6D28D9; }
.btn-act.report:hover { background: #EDE9FE; }
.btn-act.del    { background: #FEF2F2; color: #DC2626; }
.btn-act.del:hover { background: #FEE2E2; }
.idea-title-cell { cursor: pointer; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-title-cell:hover { color: #E8600A; text-decoration: underline; }
.anon-code { font-family: 'Courier New',monospace; font-size: .78rem; font-weight: 700; color: #52525B; background: #F4F4F5; padding: 2px 7px; border-radius: 5px; }

/* ─── 심사 기준 행 ─── */
.crit-row { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 8px 11px; }
.crit-row .a-input { flex: 1; }
.crit-max-lbl { font-size: .8rem; color: #71717A; white-space: nowrap; }
.crit-total { font-size: .83rem; font-weight: 700; color: #E8600A; text-align: right; padding: 4px 0; }
.btn-add-row { display: inline-flex; align-items: center; gap: 6px; background: #FFF4ED; color: #E8600A; border: 1.5px dashed #F97C2E; padding: 7px 14px; border-radius: 8px; font-size: .78rem; font-weight: 600; cursor: pointer; margin-top: 8px; font-family: inherit; transition: all .2s; }
.btn-add-row:hover { background: #FDE8D0; }
.btn-del-row { background: none; border: none; color: #EF4444; cursor: pointer; font-size: .82rem; padding: 3px 5px; border-radius: 5px; transition: background .2s; }
.btn-del-row:hover { background: #FEE2E2; }

/* ─── 심사 점수 블록 (모달) ─── */
.judge-score-block { background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.jsb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.jsb-head .ji-name { font-weight: 700; font-size: .88rem; color: #27272A; }
.jsb-head .ji-role { font-size: .75rem; color: #A1A1AA; flex: 1; }
.jsb-total { font-weight: 800; color: #E8600A; font-size: .9rem; white-space: nowrap; }
.jsb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.jsb-crit { flex: 1; font-size: .83rem; color: #3F3F46; }
.jsb-max { font-size: .78rem; color: #A1A1AA; white-space: nowrap; }

/* ─── 통계 순위 ─── */
.rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #FAFAFA; border-radius: 10px; }
.rank-no { font-size: 1.2rem; flex-shrink: 0; min-width: 36px; text-align: center; }
.rank-no.top-1 { color: #FBBF24; }
.rank-no.top-2 { color: #9CA3AF; }
.rank-no.top-3 { color: #F97316; }
.rank-info { flex: 1; }
.rank-name { font-weight: 700; color: #27272A; font-size: .88rem; display: block; }
.rank-sub { font-size: .75rem; color: #A1A1AA; }
.rank-bar-wrap { width: 100px; height: 7px; background: #E4E4E7; border-radius: 100px; overflow: hidden; }
.rank-bar { height: 100%; border-radius: 100px; transition: width .5s; }
.rank-rate { font-size: .85rem; font-weight: 800; color: #E8600A; white-space: nowrap; min-width: 44px; text-align: right; }
.rank-rate.rate-full { color: #16A34A; }

/* ─── 다작상 후보 ─── */
.cand-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg,#FFFBEB,#fff); border: 1px solid #FDE68A; border-radius: 10px; }
.cand-rank { font-size: 1.4rem; flex-shrink: 0; }
.cand-info { flex: 1; }
.cand-name { font-weight: 700; font-size: .9rem; color: #18181B; }
.cand-branch { font-size: .78rem; color: #A1A1AA; font-weight: 400; margin-left: 6px; }
.cand-cnt { font-size: .82rem; color: #71717A; margin: 3px 0; }
.cand-cnt strong { color: #E8600A; }
.cand-ideas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.cand-idea-tag { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 5px; padding: 2px 8px; font-size: .75rem; color: #92400E; }

/* ─── 설정 row 추가 스타일 ─── */
.ps-row { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.ps-row .a-input { flex: 1; min-width: 80px; }
.csi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.csi-examples { display: flex; flex-direction: column; gap: 6px; }
.ex-row { display: flex; gap: 6px; align-items: center; }
.ex-row .a-input { flex: 1; }
.bh-row { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E4E4E7; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.bh-name { font-size: .83rem; font-weight: 600; color: #27272A; min-width: 110px; }
.branch-hc-list { display: flex; flex-direction: column; gap: 6px; }

/* ─── 로딩 ─── */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 28px 34px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.spinner { width: 36px; height: 36px; border: 3px solid #FDE8D0; border-top-color: #E8600A; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

/* ─── 심사위원 행 스타일 보강 ─── */
.ji-info { display: flex; flex-direction: column; flex: 1; }
.ji-name { font-weight: 700; font-size: .88rem; color: #27272A; }
.ji-role { font-size: .75rem; color: #A1A1AA; }
.ji-actions { display: flex; gap: 6px; }

/* ─── pg-dots ─── */
.pg-dots { color: #A1A1AA; font-size: .82rem; padding: 0 4px; display: flex; align-items: center; }

/* ─── 사이드바 접힘 상태 ─── */
.a-sidebar.collapsed { transform: translateX(-100%); }
.a-main.sidebar-collapsed { margin-left: 0; }

/* ─── 반응형 ─── */
@media (max-width: 1400px) { .stat-cards { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 1100px) {
  .chart-row { grid-template-columns: 1fr; }
  .judge-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(3,1fr); }
  .judge-dash { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .a-sidebar { position: fixed; left: 0; top: 0; height: 100vh; transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0,0,0,.15); z-index: 200; }
  .a-sidebar.open { transform: none; }
  .sb-close-btn { display: block !important; }
  .btn-menu-toggle { display: block !important; }
  .a-content { padding: 12px; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .detail-meta { grid-template-columns: repeat(2,1fr); }
  .branch-hc-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .judge-dash { grid-template-columns: repeat(2,1fr); }
  .filter-row { flex-direction: column; }
  .a-select-sm { width: 100%; }
  .ah-realtime { display: none; }
}

/* ─── 추가 보완 스타일 ─── */
/* 브랜치 삭제 버튼 */
.bh-row .btn-del-row { margin-left: auto; }

/* 설정 카드 동의 문구 */
#cfg_consent1, #cfg_consent2 { font-size: .88rem; line-height: 1.7; color: #374151; }

/* 사이드바 균등 배분 */
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { flex: none; text-align: left; }

/* 보고서 인쇄 패널 */
.detail-print-panel { margin-top: 16px; padding: 14px; background: linear-gradient(135deg,#FFF7ED,#FEF3C7); border: 1.5px solid #FED7AA; border-radius: 10px; text-align: center; }

/* 아이디어 관리 테이블 액션 버튼 */
.btn-act.report { background: #7C3AED; color: #fff; border: none; border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: .78rem; transition: background .15s; }
.btn-act.report:hover { background: #6D28D9; }

/* 차트 카드 wide 비율 조정 */
.chart-card.wide { flex: 2; min-width: 0; }
.chart-card { flex: 1; min-width: 0; }

/* 파이 차트 레이블 */
.pie-label { font-size: .82rem; font-weight: 700; }

