/* ===============================
   bank_transactions.css
   은행거래 입력 전용 스타일
   (중앙 구도 · 한 줄 조회/업로드 확정본)
================================ */

/* ===============================
   전체 레이아웃
================================ */
.bank-layout{
  display:grid;
  grid-template-columns: 320px 1fr;   /* 좌: 계좌 / 우: 작업 */
  gap:24px;
  align-items:flex-start;
}

/* ===============================
   LEFT : 법인계좌정보 (보이기용)
================================ */
.account-view{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:96px;                /* 상단바 아래 고정 */
}

.account-view h3{
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
}

.scroll-area{
  max-height: calc(100vh - 200px);
  overflow-y:auto;
  border-top:1px solid var(--line);
  padding-top:8px;
}

/* 계좌 아이템 */
.account-item{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  font-size:14px;
}
.account-item:hover{ background:#f1f5f9; }
.account-item.active{
  background:#e0e7ff;
  font-weight:700;
}

/* ===============================
   RIGHT : 작업 영역
================================ */
.transaction-card{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* 작업 블록 공통 */
.tx-block{
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.tx-block:last-child{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}

/* ===============================
   1️⃣ 조회 + 파일업로드 (한 줄)
================================ */
.upload-search{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:nowrap;   /* 🔥 한 줄 고정 */
}

/* 왼쪽 : 조회 */
.search-area{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  flex-wrap:nowrap;
}

.search-area input[type="date"]{
  width:150px;
}

/* 월 빠른 선택 */
.month-quick{
  display:flex;
  gap:4px;
  margin-left:8px;
}

.month-quick button{
  padding:4px 6px;
  font-size:12px;
  white-space:nowrap;
}

/* 조회 버튼 */
.search-btn{
  margin-left:8px;
  white-space:nowrap;
}

/* 오른쪽 : 업로드 */
.upload-area{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  flex-shrink:0;
}

/* ===============================
   거래 테이블 상단 액션
   칸 추가 / 출력 → 오른쪽
================================ */
.table-actions{
  display:flex;
  justify-content:flex-end;   /* 🔥 오른쪽 정렬 */
  gap:8px;
  margin-bottom:8px;
}

.table-actions button{
  white-space:nowrap;
}

/* ===============================
   거래 테이블
================================ */
.bu-table-wrapper{
  flex:1;
  overflow:auto;
  border-top:1px solid var(--line);
}

.tx-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.tx-table th,
.tx-table td{
  padding:8px;
  border:1px solid var(--line);
  text-align:center;
  white-space:nowrap;
}

.tx-table th{
  background:#f1f5f9;
  font-weight:700;
  position:sticky;
  top:0;
  z-index:2;
}

.tx-table tbody tr:hover{
  background:#f8fafc;
}

/* ===============================
   상태 표시
================================ */
.tx-row-selected{
  background:#e0e7ff !important;
}

/* ===============================
   버튼 강조
================================ */
button.primary{
  background: var(--active);
  border-color: var(--active);
  color:#ffffff;
}
button.primary:hover{
  background:#1e40af;
}
