/* =================================================
   거래처 등록 페이지 전용 CSS
================================================= */

/* 카드 내부 기본 여백 */
.card-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 카드 헤더 (제목 + 저장) */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===============================
   가로 입력 + 추가 버튼
================================ */

/* 입력 + 버튼 한 줄 */
.hr-row-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

/* 가로 입력 */
.hr-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* 입력 공통 */
.hr-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

/* +추가 버튼 */
.btn-add {
  height: 36px;
  min-width: 90px;
  white-space: nowrap;
}

/* ===============================
   거래처 목록 테이블
================================ */

.hr-table-wrap {
  margin-top: 16px;
}

.hr-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.hr-table thead th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.hr-table tbody td {
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}

.hr-table tbody tr:hover {
  background: #f9fafb;
}
/* ===============================
   버튼 스타일 정리
================================ */

/* 저장 버튼 (주요 액션) */
.btn-save {
  background: #2563eb;        /* 파란색 */
  color: #fff;
  border: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-save:hover {
  background: #1d4ed8;
}

/* + 추가 버튼 (보조 액션) */
.btn-add {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  height: 36px;
  min-width: 90px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-add:hover {
  background: #eff6ff;
}

/* ===============================
   엑셀 업로드 바 (1번 이미지 스타일)
================================ */

.excel-upload-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.file-select-box {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  height: 36px;
  cursor: pointer;
  background: #fff;
}

.file-btn {
  background: #f1f5f9;
  padding: 0 12px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  border-right: 1px solid #d1d5db;
  white-space: nowrap;
}

.file-name {
  padding: 0 12px;
  font-size: 13px;
  color: #6b7280;
  min-width: 180px;
}

.btn-upload {
  background: #2563eb;
  color: #fff;
  border: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.btn-upload:hover {
  background: #1d4ed8;
}

/* ===============================
   거래처 엑셀 업로드 버튼 가로 정렬
================================ */

.excel-actions.horizontal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.excel-actions.horizontal .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
/* ===== Ledger Engine 공통 ===== */

.ledger-header{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr)) 90px;
  gap:10px;
  margin-bottom:6px;
  font-weight:600;
  color:#334155;
}

.ledger-form{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr)) 90px;
  gap:10px;
  margin-bottom:12px;
}

.ledger-form input,
.ledger-form select{
  height:36px;
  padding:4px 8px;
}

.ledger-table{
  width:100%;
  border-collapse:collapse;
}

.ledger-table td{
  border-top:1px solid #e5e7eb;
  padding:8px 6px;
}

