* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-title { font-weight: 700; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: #2f6fd6; font-weight: 500; font-size: 14px; }
.nav-user { color: #6b7280; font-size: 13px; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }

.flash {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; }
.form-card, .login-card { max-width: 480px; }
.login-card hr { border: none; border-top: 1px solid #e5e7eb; margin: 20px 0; }
.google-btn { background: #fff; color: #1f2937; border: 1px solid #d1d5db; width: 100%; text-align: center; }
.google-btn:hover { background: #f3f4f6; }

form label { display: block; margin: 12px 0 4px; font-weight: 500; font-size: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.checkbox-label input { width: auto; }
input[type=text], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 120px; }
.inline-form.wrap { border-top: 1px solid #f0f0f0; padding-top: 12px; }
.direction-wrap { display: flex; gap: 12px; align-items: center; }
.broker-other { flex: 1 1 140px; }

button, .btn {
  background: #2f6fd6;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: #2359b8; }
.btn-link {
  background: none;
  border: none;
  color: #2f6fd6;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  text-decoration: underline;
}
.btn-link.danger { color: #dc2626; }

.hint { color: #6b7280; font-size: 13px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.data-table th, .data-table td { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.data-table th { background: #f8fafc; }
.actions a { margin-right: 10px; font-size: 13px; }

.row-overdue { background: #fef2f2; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #e5e7eb; color: #374151; }
.badge-ok { background: #d1fae5; color: #047857; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-overdue { background: #fee2e2; color: #b91c1c; }

/* 신고서 미리보기 (첨부3 양식) */
.report-sheet {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 0 auto;
}
.report-title { text-align: center; font-size: 22px; margin-bottom: 4px; }
.report-sub { text-align: center; color: #6b7280; margin-top: 0; }
.report-signer { text-align: right; font-size: 16px; font-weight: 600; }
.report-table th, .report-table td { text-align: center; }
.report-note { font-size: 12px; color: #6b7280; }
.report-officer { text-align: right; margin-top: 30px; font-size: 15px; }

@media print {
  .navbar, .no-print, .flash { display: none !important; }
  .container { padding: 0; max-width: none; }
  .report-sheet { box-shadow: none; }
}
