* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Malgun Gothic", sans-serif;
  background: linear-gradient(180deg, #eef3ff 0%, #f4f6f8 45%, #eef2f7 100%);
  color: #1f2937;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.title-block {
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.app-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
}
.header-desc {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}
.user-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}
.card {
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
}
.login-card {
  max-width: 620px;
  margin: 0 auto;
}
.login-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.login-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}
.login-subtext {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}
.login-form {
  display: grid;
  gap: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
input, button {
  font: inherit;
}
input {
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}
input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: #1f4fd1;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
button:hover { filter: brightness(0.96); }
.full-btn {
  width: 100%;
  margin-top: 4px;
}
.secondary-btn {
  background: #e5e7eb;
  color: #111827;
}
.notice-box {
  margin-top: 14px;
  padding: 14px;
  background: #eef2ff;
  border-radius: 12px;
  color: #334155;
  line-height: 1.7;
}
.notice-panel {
  margin-top: 18px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 16px;
  overflow: hidden;
}
.notice-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf8;
}
.notice-row:last-child { border-bottom: none; }
.notice-row-emphasis {
  background: #eff6ff;
}
.notice-label {
  font-weight: 700;
  color: #1e3a8a;
}
.notice-text {
  color: #334155;
  line-height: 1.7;
}
.grid {
  display: grid;
  gap: 14px;
}
.two-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.field-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}
.admin-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.actions.wrap { flex-wrap: wrap; }
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}
.admin-badge {
  background: #eff6ff;
  color: #1d4ed8;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f9fafb;
}
.hidden { display: none !important; }
.message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.24);
  z-index: 1000;
}
.muted {
  color: #6b7280;
  margin-bottom: 10px;
}
.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.missing-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}
.number-input { text-align: right; }
.compact-box { margin-top: 16px; padding: 12px 14px; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
  .container { padding: 16px; }
  .app-header { flex-direction: column; }
  .actions { flex-direction: column; }
  .notice-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .app-header h1 { font-size: 26px; }
  .login-card h2 { font-size: 22px; }
}


.summary-table th, .summary-table td { white-space: nowrap; font-size: 13px; }
.rate-good { color: #065f46; font-weight: 700; }
.rate-warn { color: #92400e; font-weight: 700; }
.rate-bad { color: #991b1b; font-weight: 700; }


.my-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.summary-mini-card {
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.summary-mini-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.summary-mini-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #475569;
}
.summary-mini-line strong {
  color: #111827;
}
.summary-mini-rate {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  background: #eef2ff;
}


.reset-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.reset-user-row:last-child {
  border-bottom: none;
}

.reset-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.overall-summary-card {
  margin-bottom: 16px;
}

.overall-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overall-summary-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.overall-summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.overall-summary-main {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.overall-summary-sub {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .overall-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .overall-summary-grid {
    grid-template-columns: 1fr;
  }
}
.admin-highlight {
    color: #d32f2f;
    font-weight: 600;
}

.branch-summary-block {
  padding: 10px 12px;
  margin-top: 8px;
  border-top: 1px solid #eef2f7;
  border-radius: 12px;
}

.branch-summary-block:first-of-type {
  margin-top: 0;
  padding-top: 10px;
  border-top: none;
}

.branch-summary-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

----------------------
.branch-summary-card {
  margin-bottom: 16px;
}

.branch-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.branch-summary-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.branch-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.branch-name {
  font-weight: 800;
  font-size: 15px;
  color: #1f2937;
}

.branch-rate {
  font-weight: 800;
  font-size: 16px;
}

.branch-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: #475569;
}

.branch-summary-line strong {
  color: #111827;
}

.crown {
  margin-left: 4px;
  font-size: 14px;
}

.top-item {
  background: #111827;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.top-cell {
  font-weight: 800;
  background: #fff7ed;
}

.top-cell .crown {
  margin-left: 4px;
  font-size: 14px;
}

.sparkle-cell {
  position: relative;
  font-weight: 800;
  animation: sparklePulse 1.4s ease-in-out infinite;
  box-shadow: inset 0 0 0 9999px rgba(255, 215, 0, 0.10);
}

.sparkle-cell::after {
  content: "✨";
  margin-left: 6px;
  display: inline-block;
  animation: sparkleTwinkle 1.1s ease-in-out infinite alternate;
}

.sparkle-branch {
  animation: sparklePulse 1.4s ease-in-out infinite;
  position: relative;
}

.sparkle-branch::after {
  content: "✨";
  margin-left: 4px;
  animation: sparkleTwinkle 1.1s ease-in-out infinite alternate;
}

@keyframes sparklePulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}

@keyframes sparkleTwinkle {
  0% { transform: scale(1) rotate(-6deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(6deg); opacity: 1; }
}
.sparkle-text {
  font-weight: 600;
  color: #2563eb;
  animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
  0% { opacity: 1; text-shadow: 0 0 0px rgba(37,99,235,0); }
  50% { opacity: 0.7; text-shadow: 0 0 10px rgba(37,99,235,0.6); }
  100% { opacity: 1; text-shadow: 0 0 0px rgba(37,99,235,0); }
}.sparkle-text1 {
  font-weight: 600;
  color: #2563eb;
  animation: sparkle 0.5s infinite;
}

.sparkle-text2 {
  font-weight: 600;
  color: #2563eb;
  animation: sparkle 0.3s infinite;
}

@keyframes sparkle {
  0% { opacity: 1; text-shadow: 0 0 0px rgba(255,0,0,0); }
  50% { opacity: 0.7; text-shadow: 0 0 10px rgba(255,0,0,0.6); }
  100% { opacity: 1; text-shadow: 0 0 0px rgba(255,0,0,0); }
}.sparkle-text1 {
  font-weight: 600;
  color: #FF0000;
  animation: sparkle 0.5s infinite;
}

.new-version {
  color: #2563eb;
  font-weight: 700;
}

.new-highlight {
  color: #dc2626;   /* 살짝 강조 빨강 */
  font-weight: 600;
}

.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.loan-login-btn {
  margin-top: 10px;
  background: #c62828 !important;
  color: #fff !important;
}

.loan-login-btn:hover {
  filter: brightness(0.96);
}


/* 개인달성/소속지점 연 목표 대비 현황 전용 */
.personal-summary-card {
  position: relative;
  overflow: hidden;
}

.personal-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 72%;
  height: 100%;
  transform: skewX(-20deg);
  animation: personalShimmerSweep 2.2s linear infinite;
  pointer-events: none;
}

.personal-summary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
}

.personal-band-red {
  background: #fff1f2;
  border-color: #fca5a5;
}
.personal-band-red::before {
  background: linear-gradient(110deg, rgba(239,68,68,0) 0%, rgba(239,68,68,0.18) 35%, rgba(239,68,68,0.52) 50%, rgba(239,68,68,0.18) 65%, rgba(239,68,68,0) 100%);
}
.personal-band-red::after {
  box-shadow: 0 0 0 1px rgba(239,68,68,0.30), 0 0 18px rgba(239,68,68,0.18);
}

.personal-band-blue {
  background: #eff6ff;
  border-color: #93c5fd;
}
.personal-band-blue::before {
  background: linear-gradient(110deg, rgba(59,130,246,0) 0%, rgba(59,130,246,0.18) 35%, rgba(59,130,246,0.52) 50%, rgba(59,130,246,0.18) 65%, rgba(59,130,246,0) 100%);
}
.personal-band-blue::after {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.28), 0 0 18px rgba(59,130,246,0.18);
}

.personal-band-green {
  background: #ecfdf5;
  border-color: #86efac;
}
.personal-band-green::before {
  background: linear-gradient(110deg, rgba(34,197,94,0) 0%, rgba(34,197,94,0.18) 35%, rgba(34,197,94,0.52) 50%, rgba(34,197,94,0.18) 65%, rgba(34,197,94,0) 100%);
}
.personal-band-green::after {
  box-shadow: 0 0 0 1px rgba(34,197,94,0.28), 0 0 18px rgba(34,197,94,0.18);
}

@keyframes personalShimmerSweep {
  0% { left: -140%; }
  100% { left: 180%; }
}

/* 관리자 전용 전체/지점 현황 카드 전용 */
.admin-summary-card {
  position: relative;
  overflow: hidden;
}

.admin-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 72%;
  height: 100%;
  transform: skewX(-20deg);
  animation: adminShimmerSweep 2.2s linear infinite;
  pointer-events: none;
}

.admin-summary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
}

/* 0~30 red band */
.admin-band-red-1 { background: #ffe4e6; border-color: #f87171; }
.admin-band-red-1::before { background: linear-gradient(110deg, rgba(255,77,79,0) 0%, rgba(255,77,79,0.16) 35%, rgba(255,77,79,0.45) 50%, rgba(255,77,79,0.16) 65%, rgba(255,77,79,0) 100%); }
.admin-band-red-1::after { box-shadow: 0 0 0 1px rgba(248,113,113,0.26), 0 0 16px rgba(248,113,113,0.16); }

.admin-band-red-2 { background: #fecaca; border-color: #ef4444; }
.admin-band-red-2::before { background: linear-gradient(110deg, rgba(239,68,68,0) 0%, rgba(239,68,68,0.16) 35%, rgba(239,68,68,0.45) 50%, rgba(239,68,68,0.16) 65%, rgba(239,68,68,0) 100%); }
.admin-band-red-2::after { box-shadow: 0 0 0 1px rgba(239,68,68,0.26), 0 0 16px rgba(239,68,68,0.16); }

.admin-band-red-3 { background: #fca5a5; border-color: #dc2626; }
.admin-band-red-3::before { background: linear-gradient(110deg, rgba(220,38,38,0) 0%, rgba(220,38,38,0.16) 35%, rgba(220,38,38,0.45) 50%, rgba(220,38,38,0.16) 65%, rgba(220,38,38,0) 100%); }
.admin-band-red-3::after { box-shadow: 0 0 0 1px rgba(220,38,38,0.26), 0 0 16px rgba(220,38,38,0.16); }

/* 30~70 blue band */
.admin-band-blue-1 { background: #ede9fe; border-color: #c4b5fd; }
.admin-band-blue-1::before { background: linear-gradient(110deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.16) 35%, rgba(139,92,246,0.45) 50%, rgba(139,92,246,0.16) 65%, rgba(139,92,246,0) 100%); }
.admin-band-blue-1::after { box-shadow: 0 0 0 1px rgba(139,92,246,0.22), 0 0 16px rgba(139,92,246,0.14); }

.admin-band-blue-2 { background: #c7d2fe; border-color: #818cf8; }
.admin-band-blue-2::before { background: linear-gradient(110deg, rgba(99,102,241,0) 0%, rgba(99,102,241,0.16) 35%, rgba(99,102,241,0.45) 50%, rgba(99,102,241,0.16) 65%, rgba(99,102,241,0) 100%); }
.admin-band-blue-2::after { box-shadow: 0 0 0 1px rgba(99,102,241,0.22), 0 0 16px rgba(99,102,241,0.14); }

.admin-band-blue-3 { background: #93c5fd; border-color: #3b82f6; }
.admin-band-blue-3::before { background: linear-gradient(110deg, rgba(59,130,246,0) 0%, rgba(59,130,246,0.16) 35%, rgba(59,130,246,0.45) 50%, rgba(59,130,246,0.16) 65%, rgba(59,130,246,0) 100%); }
.admin-band-blue-3::after { box-shadow: 0 0 0 1px rgba(59,130,246,0.22), 0 0 16px rgba(59,130,246,0.14); }

.admin-band-blue-4 { background: #7dd3fc; border-color: #0ea5e9; }
.admin-band-blue-4::before { background: linear-gradient(110deg, rgba(14,165,233,0) 0%, rgba(14,165,233,0.16) 35%, rgba(14,165,233,0.45) 50%, rgba(14,165,233,0.16) 65%, rgba(14,165,233,0) 100%); }
.admin-band-blue-4::after { box-shadow: 0 0 0 1px rgba(14,165,233,0.22), 0 0 16px rgba(14,165,233,0.14); }

/* 70~100 green band */
.admin-band-green-1 { background: #99f6e4; border-color: #2dd4bf; }
.admin-band-green-1::before { background: linear-gradient(110deg, rgba(20,184,166,0) 0%, rgba(20,184,166,0.16) 35%, rgba(20,184,166,0.45) 50%, rgba(20,184,166,0.16) 65%, rgba(20,184,166,0) 100%); }
.admin-band-green-1::after { box-shadow: 0 0 0 1px rgba(20,184,166,0.22), 0 0 16px rgba(20,184,166,0.14); }

.admin-band-green-2 { background: #86efac; border-color: #22c55e; }
.admin-band-green-2::before { background: linear-gradient(110deg, rgba(34,197,94,0) 0%, rgba(34,197,94,0.16) 35%, rgba(34,197,94,0.45) 50%, rgba(34,197,94,0.16) 65%, rgba(34,197,94,0) 100%); }
.admin-band-green-2::after { box-shadow: 0 0 0 1px rgba(34,197,94,0.22), 0 0 16px rgba(34,197,94,0.14); }

.admin-band-green-3 { background: #4ade80; border-color: #16a34a; }
.admin-band-green-3::before { background: linear-gradient(110deg, rgba(22,163,74,0) 0%, rgba(22,163,74,0.16) 35%, rgba(22,163,74,0.45) 50%, rgba(22,163,74,0.16) 65%, rgba(22,163,74,0) 100%); }
.admin-band-green-3::after { box-shadow: 0 0 0 1px rgba(22,163,74,0.22), 0 0 16px rgba(22,163,74,0.14); }

/* >100 flash */
.admin-band-over {
  background: #dcfce7;
  border-color: #22c55e;
  animation: adminFlash 0.9s ease-in-out infinite;
}
.admin-band-over::before,
.admin-band-over::after {
  display: none;
}

@keyframes adminShimmerSweep {
  0% { left: -140%; }
  100% { left: 180%; }
}

@keyframes adminFlash {
  0% { box-shadow: 0 0 0 rgba(34,197,94,0); filter: brightness(1); }
  50% { box-shadow: 0 0 24px rgba(34,197,94,0.55); filter: brightness(1.18); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0); filter: brightness(1); }
}
