/* 나라마트 MRO 공통 스타일. Falcon 위에 덮어쓰는 최소한의 조정만 둔다. */

/* 외부 글꼴(Google Fonts)을 쓰지 않으므로 한글 시스템 글꼴을 직접 지정한다. */
:root {
  --falcon-font-sans-serif: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --falcon-body-font-family: var(--falcon-font-sans-serif);
}

body {
  font-family: var(--falcon-font-sans-serif);
}

/* 자료가 많은 표를 위한 촘촘한 표 */
.table-dense > :not(caption) > * > * {
  padding: 0.4rem 0.6rem;
  vertical-align: middle;
}

.table-dense th {
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 주문 상태 배지 색(기존 시스템의 상태 흐름에 맞춤) */
.status-주문 { background-color: var(--falcon-gray-200); color: var(--falcon-gray-800); }
.status-승인, .status-발주, .status-발주접수 { background-color: #cfe2ff; color: #0a3d91; }
.status-준비, .status-배송 { background-color: #fff3cd; color: #7a5b00; }
.status-완료 { background-color: #ffe0e0; color: #a4161a; }
.status-수령 { background-color: #d1f1df; color: #0b6b3a; }
.status-취소 { background-color: #e9ecef; color: #6c757d; text-decoration: line-through; }

/* 주문서관리: 글자를 키우고 흐린 글자의 대비를 높인다(어두운 테마에서 읽기 어려웠다). */
.order-list { font-size: 0.95rem; }
.order-list .fs-10 { font-size: 0.95rem !important; }
.order-list .fs-11 { font-size: 0.9rem !important; }
.order-list .table-dense > :not(caption) > * > * { padding: 0.55rem 0.7rem; }
.order-list .table .table > :not(caption) > * > * { padding: 0.35rem 0.55rem; }
.order-list .btn-sm { font-size: 0.9rem; }

[data-bs-theme="dark"] .order-list .text-700 { color: #c3cddb !important; }
/* 비활성(링크가 아닌) 글자는 흐리게 두되 읽을 수는 있게 */
[data-bs-theme="dark"] .order-list .text-400 { color: #7f8ba0 !important; }
/* 보유예산이 없는 회원 칸. 원본은 분홍 바탕이었지만 칸 안에 사람 이름(주문자·담당자)이 있어 붉은 계열을 쓰지 않고 노란 바탕으로 표시한다. */
.order-list .no-budget { background-color: rgba(255, 193, 7, 0.28) !important; }
[data-bs-theme="dark"] .order-list .form-check-label.text-danger,
[data-bs-theme="dark"] .order-list a.text-danger { color: #ff8f8f !important; }
[data-bs-theme="dark"] .order-list .btn:disabled,
[data-bs-theme="dark"] .order-list .btn.disabled { opacity: 0.75; }
/* 장바구니 안쪽 표의 본문 줄은 흰 바탕이므로 글자를 진하게(머리·합계 줄은 테마 색을 그대로 쓴다) */
.order-list .table .table tbody { color: #1f2a37; }
.order-list .table .table tbody .text-danger { color: #c1121f !important; }
.order-list .table .table tbody .text-primary { color: #1a5fc4 !important; }

/* 모든 쪽 이동(페이지네이션)은 오른쪽 정렬 */
.pagination { justify-content: flex-end; }
nav[aria-label="쪽 이동"] { margin-left: auto; }

/* 상단 바·사이드 바의 로고와 이름이 잘리거나 줄바꿈되지 않게 한다. */
.navbar-brand { flex-shrink: 0; white-space: nowrap; }
.navbar-top .navbar-brand img { width: auto; height: 40px; }
.navbar-top .navbar-brand .font-sans-serif { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
/* 넓은 화면에서는 왼쪽 메뉴가 항상 펼쳐져 있으므로 햄버거 버튼을 감추고 로고를 맨 왼쪽으로 붙인다. */
@media (min-width: 992px) {
  .navbar-top { padding-left: 0.75rem; }
  .navbar-top .navbar-toggler-humburger-icon { display: none; }
  .navbar-top .navbar-brand { margin-left: 0; padding-left: 0; }
}
.navbar-vertical .navbar-brand .font-sans-serif { font-size: 1.05rem; font-weight: 700; }
