/* style.css - 모던 세무 홈페이지용 공통 스타일 + 반응형 대응 */
.bank-header {
  font-weight: 600;
  margin: 0.5rem 0;
  cursor: pointer; /* ✅ 전체 영역 클릭 가능한 손모양 */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bank-header .arrow {
  cursor: pointer; /* ✅ 아이콘 위에서도 손모양 유지 */
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background-color: #f4f6f9;
  color: #333;
}

header {
  background-color: #1f2937;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

table th, table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #555;
}

tr:hover {
  background-color: #f1f5f9;
}

button, .btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover, .btn:hover {
  background-color: #2563eb;
}

form input, form select, form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

form label {
  font-weight: 600;
}

.alert {
  padding: 1rem;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert.success {
  background-color: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

footer {
  margin-top: 3rem;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

/* ✅ 반응형 스타일 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    margin-left: 0;
  }

  nav a {
    margin: 0.5rem 0;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: #fff;
  }

  table td {
    position: relative;
    padding-left: 50%;
    white-space: pre-wrap;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    font-weight: bold;
    color: #666;
  }
}

.scroll-box {
  width: 100%;
  max-width: 100vw; /* ✅ 뷰포트 너비 초과 방지 */
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  padding: 0.5rem;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #fff;
}

