.erp-card {
  background: #fff;
  padding: 0;
  overflow: hidden;
  margin: 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.card-body {
  padding: 35px 40px;
}

.form-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.1rem;
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '●';
  font-size: 0.8rem;
  color: #4a5568;
}

/* 검색 그리드 */
.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group input[readonly] {
  background: #e2e8f0;
  cursor: not-allowed;
  color: #4a5568;
}

/* 조회 버튼 */
.btn-search {
  padding: 12px 24px;
  background: #4a5568;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-search:hover {
  background: #2d3748;
}

/* 등록 버튼 영역 */
.register-button-area {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.btn-register {
  padding: 10px 30px;
  background: #4299e1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-register:hover {
  background: #3182ce;
}

/* 테이블 */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table thead {
  background: #f7fafc;
}

.data-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  background: #f7fafc;
}

.data-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

.data-table tbody tr:hover {
  background: #f7fafc;
}

.table-note {
  color: #718096;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* 필수 표시 */
.required {
  color: #e53e3e;
  font-weight: bold;
}

/* 모달 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 작은 모달 */
.modal-content.modal-small {
  max-width: 400px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: #2d3748;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #718096;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #2d3748;
}

.modal-body {
  padding: 25px;
}

.modal-body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 세로 폼 */
.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-vertical .form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.form-vertical .form-group label {
  min-width: 120px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.form-vertical .form-group input {
  flex: 1;
  padding: 10px 12px;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 25px;
  border-top: 1px solid #e2e8f0;
}

/* 버튼 */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #4299e1;
  color: #fff;
}

.btn-primary:hover {
  background: #3182ce;
}

.btn-secondary {
  background: #fff;
  color: #4a5568;
  border: 2px solid #cbd5e0;
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: #a0aec0;
}

/* 반응형 */
@media (max-width: 1200px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .card-body {
    padding: 25px 20px;
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}
