/* 학부모회 실태조사 스타일 */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.survey-login-card,
.survey-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.survey-guide-title {
  margin: 0 0 1.4rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
}

.survey-guide-title span,
.survey-guide-blue {
  color: #0f4c81;
}

.survey-guide-paper {
  padding: 1.45rem 1.55rem;
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.98));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.survey-guide-strong {
  color: #0f172a;
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.survey-panel-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f4c81;
  background: #e7f0fa;
}

.survey-panel-label--success {
  color: #166534;
  background: #dcfce7;
}

.survey-complete-banner {
  padding: 1.35rem 1.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 101, 52, 0.14);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 12px 30px rgba(22, 101, 52, 0.06);
}

.survey-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.95rem;
  border-left: 3px solid #cbd5e1;
}

.survey-progress-shell {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.survey-progress-track {
  min-width: 640px;
}

.survey-progress-button {
  min-width: 84px;
}

.survey-class-summary,
.survey-budget-summary,
.survey-auto-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.98));
}

.survey-class-grid {
  display: grid;
  gap: 1rem;
}

.survey-class-grid-row {
  display: grid;
  gap: 1rem;
}

.survey-class-grid-row--grades {
  grid-template-columns: repeat(var(--survey-class-columns, 6), minmax(0, 1fr));
}

.survey-class-grid-row--support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-class-grid-item {
  min-width: 0;
}

.survey-subsection {
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.88);
}

.survey-budget-grid {
  margin-top: 1rem;
}

.survey-budget-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.survey-auto-panel {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
}

.survey-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.survey-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.survey-action-group {
  display: flex;
  gap: 0.5rem;
}

.survey-field-help {
  margin-bottom: 0.5rem;
  color: #2563eb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.survey-guide-emphasis,
.survey-guide-blue-emphasis {
  color: #0f4c81;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.survey-guide-board-card {
  min-height: 12rem;
}

.survey-guide-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.survey-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-width: 3rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.survey-count-badge--blue {
  color: #1d4ed8;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.survey-count-badge--emerald {
  color: #047857;
  background: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}

.survey-inquiry-details {
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.8rem;
}

.survey-inquiry-details summary {
  cursor: pointer;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
}

#survey-view label.block.text-sm.font-medium.text-gray-700 {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 1280px) {
  .survey-budget-field label {
    min-height: 3.5rem;
  }
}

.survey-option-note {
  color: #475569;
  font-size: 0.82rem;
}

.survey-stacked-label {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-bottom: 0.35rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.survey-stacked-label small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.survey-option-list {
  display: grid;
  gap: 0.85rem;
}

.survey-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.survey-option-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.survey-checklist-group {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.88);
}

.survey-checklist-group-title {
  margin: 0 0 0.75rem;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 700;
}

.survey-checklist-subitems {
  display: grid;
  gap: 0.65rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(59, 130, 246, 0.16);
}

@media (min-width: 768px) {
  .survey-stacked-label--one-line {
    min-height: 3.95rem;
  }

  .survey-stacked-label--two-line {
    min-height: 4.85rem;
  }

  .survey-stacked-label--three-line {
    min-height: 6rem;
  }
}

.survey-field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.survey-login-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.survey-login-lookup-button {
  flex: 0 0 auto;
  min-width: 8.25rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid #0f172a;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.survey-login-lookup-button:hover {
  background: #1e293b;
}

.survey-login-lookup-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.survey-lookup-status {
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

.survey-lookup-status--default {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.survey-lookup-status--success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.96);
  color: #166534;
}

.survey-lookup-status--error {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.98);
  color: #b91c1c;
}

.survey-school-results {
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #f8fafc;
}

.survey-school-results__empty {
  padding: 1rem 1.1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.survey-school-result {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: #ffffff;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.survey-school-result + .survey-school-result {
  margin-top: 0.45rem;
}

.survey-school-result:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: #eff6ff;
  transform: translateY(-1px);
}

.survey-school-result--selected {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.survey-school-result__title {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.survey-school-result__meta {
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.survey-selected-school {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.98));
}

.survey-selected-school__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.survey-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 500;
}

.survey-confirm-options {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.survey-confirm-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.survey-board-form textarea {
  resize: vertical;
}

.survey-board-item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
}

.survey-board-item + .survey-board-item {
  margin-top: 0.9rem;
}

.survey-board-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.survey-board-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.survey-board-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.survey-board-badge--emerald {
  background: #d1fae5;
  color: #047857;
}

.survey-board-badge--slate {
  background: #e2e8f0;
  color: #334155;
}

.survey-board-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

.survey-board-content,
.survey-comment-content {
  margin: 0.6rem 0 0;
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.65;
}

.survey-comment-list {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.survey-answer-box {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(236, 253, 245, 0.72);
}

.survey-answer-label {
  margin: 0 0 0.35rem;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

.survey-comment-item {
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.survey-comment-item + .survey-comment-item {
  margin-top: 0.65rem;
}

.survey-comment-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.survey-board-empty {
  padding: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 0.9rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.9rem;
}

.survey-board-empty--subtle {
  margin-top: 0.2rem;
  padding: 0.85rem 0.9rem;
  font-size: 0.85rem;
}

.survey-admin-lookup-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.survey-admin-lookup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.survey-admin-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: 1rem;
}

.survey-admin-lookup-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0f172a;
}

.survey-admin-lookup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid #0f172a;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.survey-admin-lookup-button:hover {
  background: #020617;
  border-color: #020617;
}

.survey-admin-lookup-results {
  margin-top: 1rem;
}

.admin-menu {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.admin-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-menu-button--active {
  border-color: #0f4c81;
  background: #0f4c81;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.18);
}

.admin-page + .admin-page {
  margin-top: 0;
}

.admin-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.admin-login-submit:hover {
  background: #020617;
  border-color: #020617;
}

.admin-login-submit:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.admin-school-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.admin-school-submit:hover {
  background: #020617;
  border-color: #020617;
}

.admin-school-submit:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.survey-admin-item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #fff;
}

.survey-admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.survey-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.survey-admin-button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.survey-admin-school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.survey-admin-school-grid-full {
  grid-column: 1 / -1;
}

.survey-response-detail-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: 560px;
}

.survey-response-detail-list-wrap {
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.82);
}

.survey-response-detail-view {
  padding: 1.5rem;
}

.survey-response-picker-item {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  text-align: left;
}

.survey-response-picker-item--active {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.survey-response-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.survey-response-picker-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
  color: #0f172a;
}

.survey-response-picker-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.survey-response-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.survey-response-meta-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.9rem;
  background: #f8fafc;
}

.survey-response-meta-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.77rem;
}

.survey-response-section {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: #ffffff;
}

.survey-response-section-title {
  margin: 0 0 1rem;
  color: #0f4c81;
  font-size: 0.98rem;
  font-weight: 700;
}

.survey-response-answer-list {
  display: grid;
  gap: 0.8rem;
}

.survey-response-answer-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 0.9rem;
  background: #f8fafc;
}

.survey-response-answer-label {
  margin: 0 0 0.4rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.survey-response-answer-value {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.7;
  word-break: break-word;
}

.survey-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.25rem;
}

.survey-pagination--single {
  justify-content: flex-end;
}

.survey-pagination-summary {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.survey-pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.survey-pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
}

.survey-pagination-button:hover:not(:disabled) {
  background: #f8fafc;
}

.survey-pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.survey-pagination-button--active {
  border-color: #0f4c81;
  background: #0f4c81;
  color: #ffffff;
}

.survey-pagination-button--nav {
  min-width: 3.5rem;
}

.survey-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.survey-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.survey-download-button--outline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.survey-download-button--outline:hover {
  background: #f8fafc;
}

.survey-download-button--dark {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.survey-download-button--dark:hover {
  background: #020617;
  border-color: #020617;
}

@media (max-width: 768px) {
  .survey-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-pagination--single {
    align-items: flex-end;
  }

  .survey-pagination-pages {
    justify-content: flex-start;
  }

  .survey-admin-lookup-head {
    flex-direction: column;
  }

  .survey-admin-lookup-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-admin-lookup-button {
    width: 100%;
  }

  .survey-login-row {
    flex-direction: column;
  }

  .survey-login-lookup-button {
    width: 100%;
  }

  .survey-confirm-row {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-admin-actions,
  .survey-admin-item-header {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-admin-school-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-menu-button {
    width: 100%;
  }

  .survey-response-detail-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-response-detail-list-wrap {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  }

  .survey-response-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.survey-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
}

.survey-inline-button--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.survey-inline-button--warning {
  border-color: #fcd34d;
  color: #92400e;
  background: #fffbeb;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 폼 요소 포커스 스타일 */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 라디오 버튼 및 체크박스 스타일 */
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

/* 버튼 호버 효과 */
button {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

/* 카드 호버 효과 */
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 텍스트 줄임 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 진행 상태 바 애니메이션 */
#progress-bar button {
  transition: all 0.3s ease;
}

#progress-bar button:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* 알림 메시지 애니메이션 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#login-error {
  animation: slideIn 0.3s ease;
}

/* 테이블 스타일 */
table {
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
}

th {
  font-weight: 500;
  text-align: left;
  background-color: #f9fafb;
}

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

/* 반응형 조정 */
@media (max-width: 768px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .survey-header-row {
    height: auto;
    min-height: 4rem;
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .survey-user-info {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .survey-progress-track {
    min-width: 620px;
  }

  .survey-action-row,
  .survey-action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-action-row > button,
  .survey-action-group > button {
    width: 100%;
    justify-content: center;
  }

  .survey-class-summary,
  .survey-budget-summary,
  .survey-auto-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-ratio-grid,
  .survey-class-grid-row--grades,
  .survey-class-grid-row--support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-part .flex.gap-4 {
    flex-wrap: wrap;
  }

  .survey-part .flex.gap-4 > label {
    width: 100%;
  }

  .survey-comment-form {
    flex-direction: column;
  }

  .survey-comment-form button {
    width: 100%;
  }

  .survey-admin-item-header,
  .survey-admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-admin-button-group,
  .survey-inline-button {
    width: 100%;
  }

  .survey-response-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  table {
    min-width: 680px;
  }
}

/* 숫자 입력 화살표 숨기기 (선택사항) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* 비활성화된 입력 스타일 */
input:disabled,
select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

/* 레이블 스타일 */
label {
  display: block;
}

/* 섹션 구분선 */
.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

/* 그리드 갭 */
.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* 패딩 유틸리티 */
.p-6 {
  padding: 1.5rem;
}

/* 마진 유틸리티 */
.mb-6 {
  margin-bottom: 1.5rem;
}

/* 숨김 클래스 */
.hidden {
  display: none !important;
}
