/* ======================================
   공통 레이아웃
====================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.wrapper {
  display: flex;
}

/* ======================================
   사이드바
====================================== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background-color: #1e293b;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
}

.sidebar h2 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* ======================================
   메뉴 공통 스타일
====================================== */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #334155;
  color: #ffffff;
}

/* 상위메뉴 활성(파란색) */
.menu-item.active {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 500;
}

/* 회사정보(상위 토글) */
.menu-item.has-sub {
  cursor: pointer;
}

/* 화살표 아이콘 */
.menu-item.has-sub .arrow {
  border: solid #cbd5e1;
  border-width: 0 2px 2px 0;
  padding: 4px;
  margin-left: 10px;
  transform: rotate(45deg); /* ▶ */
  transition: transform 0.25s ease;
}

.menu-group.open .arrow {
  transform: rotate(135deg); /* ▼ */
}

/* 제목 + 선택 계좌 한 줄 정렬 */
.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ======================================
   하위 메뉴
====================================== */
.menu-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.sub-menu {
  display: none;
  margin-top: 6px;
  padding-left: 18px;
  flex-direction: column;
  gap: 6px;
}

.menu-group.open .sub-menu {
  display: flex;
}

.sub-item {
  font-size: 14px;
  color: #e2e8f0;
  text-decoration: none;
  padding: 4px 0;
}

.sub-item:hover {
  color: #ffffff;
}

/* 현재 하위 메뉴 (굵게 표시) */
.sub-item.current {
  font-weight: 600;
  color: #ffffff;
}

/* ======================================
   메인 콘텐츠
====================================== */
.content {
  margin-left: 240px;
  padding: 40px;
  box-sizing: border-box;
  width: calc(100% - 240px);  /* 화면 전체 - 사이드바 폭 */
  max-width: none;            /* 가로 제한 제거 */
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ======================================
   입력폼/카드 공통
====================================== */
.form-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.save-btn {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.save-btn:hover {
  background-color: #2563eb;
}

/* ======================================
   인사정보(직원) 레이아웃
====================================== */
.hr-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* 왼쪽 입력폼 (인사정보) */
.hr-layout .form-section {
  flex: 0.85;
}

/* 오른쪽 직원목록 */
.hr-layout .form-section.list-section {
  flex: 3.4;
  width: 100%;
  max-height: 480px;   /* 직원 많아지면 여기만 스크롤 */
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 6px;
}

/* 직원목록 테이블 */
.hr-table {
  width: 100%;
  min-width: 1800px;    /* 10컬럼 여유 폭 */
  border-collapse: collapse;
  table-layout: auto;
}

.hr-table th,
.hr-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  text-align: left;
}

.hr-table th {
  background-color: #f9fafb;
  font-weight: 600;
}

.hr-table tbody tr:hover {
  background-color: #f3f4f6;
  cursor: pointer;
}

/* ======================================
   거래처 등록 레이아웃
====================================== */

/* 좌우 카드 배치 */
.client-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* 왼쪽 입력폼 */
.client-layout .form-section {
  flex: 0.9;
  min-width: 420px;
}

/* 오른쪽 거래처 목록 영역 */
.client-layout .form-section.list-section {
  flex: 3.0;
  width: 100%;
}

/* 거래처 목록 스크롤 컨테이너 */
.client-table-container {
  width: 100%;
  max-height: 480px;      /* 필요시 높이 조정 가능 */
  overflow-y: auto;       /* 오른쪽 스크롤만 */
  overflow-x: hidden;     /* 아래 스크롤 제거 */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
}

/* 거래처 실제 테이블 (10컬럼 × 160px 기준) */
.client-table {
  width: 100%;
  min-width: 1600px;       /* 10개 컬럼 × 160px */
  border-collapse: collapse;
  table-layout: fixed;     /* 칼럼 폭 고정 */
}

.client-table th,
.client-table td {
  width: 160px;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  text-align: left;
}

.client-table th {
  background: #f9fafb;
  font-weight: 600;
}

.client-table tbody tr:hover {
  background-color: #f3f4f6;
  cursor: pointer;
}

/* ======================================
   거래처 엑셀 버튼 영역
====================================== */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.excel-btn-area.top {
  display: flex;
  gap: 8px;
}

.excel-btn {
  padding: 8px 14px;
  background: #3b82f6;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.excel-btn:hover {
  background: #2563eb;
}
/* 거래처명(수정 가능 항목) 스타일 */
.client-name.clickable {
  color: #2563eb;         /* 파란색 */
  text-decoration: underline;  /* 밑줄 */
  cursor: pointer;        /* 손가락 커서 */
  font-weight: 600;
}

.client-name.clickable:hover {
  color: #1d4ed8;         /* 진한 파랑 Hover */
}
/* ======================================
   회사 기본정보 레이아웃 (왼쪽 + 오른쪽 4포틀릿 2x2)
====================================== */

/* 전체 레이아웃: 왼쪽 폼 + 오른쪽 카드그리드 */
.company-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;           /* 왼쪽/오른쪽 사이 간격 */
}

/* 왼쪽 "기관 기본정보 입력" 카드 폭 */
.company-layout .left-card {
  flex: 0 0 380px;     /* 필요하면 360~420 사이로 숫자 조절 */
}

/* 회사 기본정보 – 카드 헤더(제목 + +추가 버튼) */
.company-layout .right-grid .card-header {
  display: flex;
  justify-content: space-between;  /* 제목 왼쪽, 버튼 오른쪽 */
  align-items: center;
  margin-bottom: 6px;
}

.company-layout .right-grid .card-header h3 {
  margin: 0;
  font-size: 15px;
}


/* 오른쪽 4개 포틀릿 영역 */
.company-layout .right-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(750px, 1fr));
  grid-auto-rows: 400px;   /* ▶ 각 포틀릿 높이를 고정(필요하면 숫자 조절) */
  gap: 35px;
}

/* 포틀릿 카드 공통 */
.company-layout .right-grid .card-box {
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;          /* ▶ 그리드 셀 높이에 맞춰 꽉 채우기 */
}

/* 리스트 영역은 카드 안에서만 스크롤 */
.company-layout .right-grid .card-list {
  flex: 1;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;      /* ▶ 각 카드 내부 스크롤 */
}

/* 헤더 줄 */
.account-header,
.vendor-header,
.idpw-header,
.memo-header {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
}

/* 각 행 공통: 가로 그리드로 배치 */
.row-account,
.row-vendor,
.row-idpw,
.row-memo {
  display: grid;        /* ✅ 가로 그리드로 */
  align-items: center;  /* 세로 가운데 정렬 */
  column-gap: 8px;      /* 칸 사이 여백 */
}

/* 각 행의 컬럼 비율 정의 (필요하면 숫자 조금씩 조절) */
.row-account {
  grid-template-columns: 40px 1.2fr 1.8fr 1.1fr 2fr;
}

.row-vendor {
  grid-template-columns: 40px 1.4fr 1.2fr 1.2fr 1.2fr 2fr;
}

.row-idpw {
  grid-template-columns: 40px 1.1fr 1.3fr 1.3fr 1.3fr 1.6fr;
}

.row-memo {
  grid-template-columns: 40px 1fr;
}

/* 각 칸 안의 span 과 input 정리 */
.row-account span,
.row-vendor span,
.row-idpw span,
.row-memo span {
  display: flex;
  align-items: center;
}

.row-account input,
.row-vendor input,
.row-idpw input,
.row-memo input {
  width: 100%;
  padding: 4px 6px;
  font-size: 13px;
}

/* 작은 버튼 공통 */
.add-btn.small,
.save-btn.small,
.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* +추가 버튼 */
.add-btn.small {
  background: #e5e7eb;
  color: #111827;
}

/* 오른쪽 카드 안의 저장 버튼 */
.save-btn.small {
  background-color: #3b82f6;
  color: #ffffff;
   width: 75px;               /* ⬅ 가로 75px */
  padding: 8px 0;            /* 너무 두껍지 않게 */
  margin-top: 10px;
  align-self: flex-start;    /* ⬅ 카드의 왼쪽 아래에 붙도록 */
  text-align: center;
}


/* 저장/추가 버튼 hover */
.add-btn.small:hover {
  background: #d1d5db;
}

.save-btn.small:hover {
  background: #2563eb;
}

/* 작은 X 버튼 */
.btn-xs {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-xs:hover {
  background: #fecaca;
}

/* 반응형: 화면이 좁아지면 위아래로 쌓이게 */
@media (max-width: 300px) {
  .company-layout {
    flex-direction: column;
  }
  .company-layout .left-card {
    flex: 1 1 auto;
  }
  .company-layout .right-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
  }
}
/* ======================================
   은행거래 입력 레이아웃
====================================== */

/* 전체 레이아웃: 왼쪽 계좌요약 + 오른쪽 거래 입력/목록 */
.bank-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  min-height: 700px;   /* 화면이 작아도 어느 정도 높이 확보 */
}

/* 왼쪽: 법인계좌 보기 카드 */
.account-view {
  flex: 0 0 380px;          /* 왼쪽 폭 고정 느낌 (회사기본정보와 비슷하게) */
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

/* 오른쪽: 거래입력 카드 */
.transaction-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 왼쪽 카드 안에서 계좌 목록이 세로로 길게 보이고, 많아지면 그 안에서만 스크롤 */
.account-view .card-list {
  flex: 1;
  margin-top: 8px;
  overflow-y: auto;
}

/* 왼쪽 계좌명(클릭 가능) – 굵게 + 밑줄 */
.account-link {
  width: 100%;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

/* 선택된 계좌 행 하이라이트 */
.row-account.selected {
  background-color: #eff6ff;
}

/* 오른쪽 상단 선택 계좌 정보 */
.selected-account-info {
  font-size: 13px;
  color: #4b5563;
  margin-left: 12px;
}

/* 1. 은행거래 파일 업로드 영역 – 파란 점선 박스 */
.upload-box {
  margin-top: 6px;
  padding: 8px 10px;            /* 안쪽 여백 살짝 줄임 */
  border-radius: 10px;
  background-color: #eff6ff;
  border: 1px dashed #93c5fd;
  font-size: 11px;              /* 글자 조금 작게 */
  display: flex;
  flex-direction: column;
  gap: 4px;                     /* 줄 간격도 조금 줄이기 */
  max-width: 50%;               /* 오른쪽 카드 폭의 절반 정도만 사용 */
}

/* 2. 은행거래 목록 카드 안 – 상단 요약/필터 영역 */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #f9fafb;    /* 옅은 회색 배경으로 박스 느낌 */
  font-size: 12px;
}

.summary-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  color: #111827;
}

.summary-right strong {
  font-weight: 700;             /* 합계 숫자는 굵게 */
}

/* 거래내역 테이블 영역: 카드 안에서만 스크롤 */
.transaction-table-container {
  flex: 1;
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;             /* 테두리 밖으로 안 나가게 */
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* 실제 테이블 */
.transaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* 헤더 & 셀 공통 */
.transaction-table th,
.transaction-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

/* 왼쪽 정렬이 자연스러운 컬럼들 */
.transaction-table th:nth-child(1),
.transaction-table td:nth-child(1),  /* 일자 */
.transaction-table th:nth-child(2),
.transaction-table td:nth-child(2),  /* 거래처 */
.transaction-table th:nth-child(3),
.transaction-table td:nth-child(3),  /* 적요 */
.transaction-table th:nth-child(7),
.transaction-table td:nth-child(7),  /* 사업(프로젝트) */
.transaction-table th:nth-child(8),
.transaction-table td:nth-child(8),  /* 계정과목 */
.transaction-table th:nth-child(10),
.transaction-table td:nth-child(10)  /* 메모 */
{
  text-align: left;
}

/* 헤더 – 스크롤해도 위에 고정 */
.transaction-table thead {
  background-color: #f9fafb;
}

.transaction-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f9fafb;
  font-weight: 600;
}

/* 행 hover */
.transaction-table tbody tr:hover {
  background-color: #f3f4f6;
}

/* 데이터 없을 때 안내문 */
.transaction-table .empty-msg {
  text-align: center;
  color: #6b7280;
  padding: 16px 0;
}

/* 숫자 입력에서 위/아래 화살표 제거 (은행거래 직접입력/수정 용) */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spin {
  -moz-appearance: textfield;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
/* ==============================
   📱 모바일 반응형 (공통, width ≤ 768px)
============================== */
@media (max-width: 768px) {

  /* 기본: 사이드바 숨김 */
  .sidebar {
    display: none;
  }

  /* 📌 모바일 메뉴 버튼: 화면 최상위 */
  .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 12px;
    left: 12px;

    z-index: 99999 !important; /* 최상위 층 */
    pointer-events: auto !important;

    background: #1e293b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
  }

  /* 📌 사이드바가 열렸을 때 */
  .sidebar.open {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;

    width: 220px;
    height: 100vh;
    background: #1e293b;

    z-index: 99998 !important; /* 메뉴 버튼 바로 아래 */
  }

  /* 메인 콘텐츠 */
  .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px;
  }
}
/* ======================================
   회사정보 화면 예전 디자인 복원
====================================== */

/* 왼쪽 기본정보 카드 */
.company-layout .left-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 오른쪽 4포틀릿 레이아웃 (2x2 grid 유지) */
.company-layout .right-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(380px, 1fr));
  grid-auto-rows: 350px;
  gap: 24px;
}

/* 포틀릿 박스 */
.company-layout .right-grid .card-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 포틀릿 헤더 */
.company-layout .right-grid .card-header {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* 내부 리스트 영역 */
.company-layout .right-grid .card-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 각 포틀릿 row 공통 */
.company-layout .right-grid .row-account,
.company-layout .right-grid .row-vendor,
.company-layout .right-grid .row-idpw,
.company-layout .right-grid .row-memo {
  display: grid;
  align-items: center;
  column-gap: 8px;
}
/* =================================================
   회사정보(company_info) 최종 레이아웃 (확정)
================================================= */

.company-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.company-layout .left-card {
  background: #ffffff;
  padding: 26px;
  width: 380px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 160px;
}

.company-layout .right-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(380px, 1fr));
  grid-auto-rows: 350px;
  gap: 26px;
}

.company-layout .right-grid .card-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.company-layout .card-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* ======================================
   상단 공통 버튼 + 탭
====================================== */

/* 전체 상단 영역 */
.top-bar {
  position: fixed;
  top: 0;
  left: 240px;                 /* 사이드바 폭만큼 오른쪽으로 offset */
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 20px;
  z-index: 1000;
}

/* 버튼 영역 */
.top-buttons {
  display: flex;
  gap: 10px;
}

/* 버튼 공통 */
.top-buttons button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #3b82f6;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* Hover */
.top-buttons button:hover {
  background: #2563eb;
}

/* 탭 영역 */
.tab-nav {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* 탭 버튼 */
.tab-btn {
  background: #e5e7eb;
  color: #111827;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* 탭 Hover */
.tab-btn:hover {
  background: #d1d5db;
}

/* 탭 선택 상태 */
.tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
}

/* 실제 콘텐츠는 상단 높이만큼 아래로 */
.content {
  margin-left: 240px;
  padding: 40px;
  margin-top: 110px; /* 상단 고정 영역 확보 */
}

/* 섹션 간격 */
.page-section {
  padding: 80px 0;
  border-bottom: 1px solid #e5e7eb;
}
/* ======================================
   상단 탭 + 버튼을 한 줄에 정렬
====================================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 24px;
  z-index: 2000;
  display: flex;
  justify-content: space-between;  /* ← 왼쪽: 탭, 오른쪽 버튼 */
  align-items: center;
}

.tab-nav {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: #e5e7eb;
  color: #1e293b;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.tab-btn.active {
  background: #2563eb !important;
  color: #ffffff;
  font-weight: 600;
}

.tab-btn:hover {
  background: #d1d5db;
}

/* 버튼 그룹 */
.top-buttons {
  display: flex;
  gap: 8px;
}

.top-buttons button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.top-buttons button:hover {
  background: #1d4ed8;
}

/* ======================================
   오른쪽 화면만 스크롤
====================================== */

/* 전체 레이아웃: 왼쪽 고정 / 오른쪽 스크롤 */
.wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden; /* 전체 스크롤 제거 */
}

.sidebar {
  flex: 0 0 240px;
  position: fixed;
  top: 0;
  bottom: 0;
}

.right-area {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* 상단바를 제외한 실 컨텐츠에 스크롤 */
.content-wrapper {
  flex: 1;
  overflow-y: auto; /* ← 여기만 스크롤 */
  padding: 20px;
  margin-top: 100px; /* 상단바 높이 */
}

/* 기존 .content 대신 content-wrapper 사용 */

/* =======================
   Layout: Sidebar → 고정
   오른쪽 화면만 스크롤
======================= */

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  flex: 0 0 240px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
}

.content {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

/* =================================================
   ⭐ 최종 오버라이드 (레이아웃 & 스크롤 규칙 고정)
   ================================================= */

/* 전체 화면 스크롤 제거 */
html, body {
  height: 100%;
  overflow: hidden;
}

/* 좌측 사이드바 완전 고정 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
}

/* 메인 레이아웃 */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 오른쪽 영역 전체 */
.content {
  margin-left: 240px;
  width: calc(100% - 240px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 상단바 아래 실제 콘텐츠 영역만 스크롤 */
.content-scroll,
.content-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px;
}

/* 테이블은 페이지 안에서만 확장 */
.table-wrap {
  max-height: none;
  overflow: visible;
}


.menu-item.has-sub .arrow {
  display: none !important;
}

/* 회사정보 상위 메뉴 강조 */
.menu-item.has-sub.active {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

/* =================================================
   회사정보 중앙 레이아웃 (최종본)
================================================= */

.company-center {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 상단 2x2 */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 카드 공통 */
.company-center .card-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* 카드 제목 */
.company-center .card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* 하단 기타메모 */
.memo-box {
  min-height: 220px;
}

.memo-textarea {
  flex: 1;
  width: 100%;
  resize: none;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}


/* =================================================
   🔒 회사정보 중앙 레이아웃 – 강제 확정본
   (기존 company-layout / right-grid 전부 무력화)
================================================= */

/* 회사정보 페이지 전용 래퍼 */
.company-center {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  width: 100% !important;
}

/* 🔹 상단 2×2 그리드 */
.company-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
}

/* 🔹 카드 공통 */
.company-center .card-box {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
  min-height: 260px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 카드 제목 */
.company-center .card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}

/* 🔹 하단 기타메모 – 가로 전체 */
.company-center .memo-box {
  width: 100% !important;
  min-height: 220px !important;
}


