/* ===================================================
   서울산전 납품계획 포털 — 브랜드 디자인
   Brand: #BC0707 (Red) · #34373C (Charcoal) · #1440AD (Blue)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --red:        #BC0707;
  --red-dark:   #980606;
  --red-light:  #fdf2f2;
  --charcoal:   #34373C;
  --charcoal-2: #44474d;
  --blue:       #1440AD;
  --blue-light: #eef2fc;
  --bg:         #f2f3f5;
  --white:      #ffffff;
  --border:     #e0e0e0;
  --text:       #222222;
  --text-sub:   #666666;

  --status-approved: #c6f6d5;
  --status-rejected: #fed7d7;
  --status-modified: #feebc8;
  --status-partial:  #bee3f8;

  --sidebar-w: 210px;
  --header-h:  58px;
  --tabbar-h:  44px;
  --font-base: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --radius:    6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-base);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   헤더
══════════════════════════════════════ */
.header {
  background: var(--red);
  color: #fff;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(188,7,7,.35);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.18);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .company { font-size: 11px; opacity: .75; letter-spacing: .5px; }
.logo-text .portal  { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }

.header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
}
.user-avatar {
  width: 24px; height: 24px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.user-name { font-size: 13px; }

/* 햄버거 */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.btn-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ══════════════════════════════════════
   사이드바 오버레이
══════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
}
.sidebar-overlay.open { display: block; }

/* ══════════════════════════════════════
   사이드바
══════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--charcoal);
  padding: 18px 0;
  overflow-y: auto;
  z-index: 160;
  transition: transform .25s ease;
}

.sidebar .nav-section {
  padding: 6px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  margin-top: 10px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.sidebar nav a .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.sidebar nav a.active {
  background: rgba(188,7,7,.25);
  border-left-color: var(--red);
  color: #fff;
  font-weight: 600;
}

/* ══════════════════════════════════════
   상단 탭 바 (사이드바 오른쪽 영역)
══════════════════════════════════════ */
.tab-bar {
  position: fixed;
  top: var(--header-h);
  left: var(--sidebar-w);
  right: 0;
  height: var(--tabbar-h);
  background: var(--white);
  border-bottom: 2px solid var(--border);
  display: none;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar.visible { display: flex; }
.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.tab-item:hover { color: var(--charcoal); background: #f8f9fb; }
.tab-item.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.tab-icon { font-size: 15px; }

.tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 11px;
  cursor: pointer;
  margin-left: 2px;
  opacity: 0.55;
  transition: background .15s, opacity .15s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.tab-close:hover { background: rgba(0,0,0,.12); opacity: 1; }
.tab-item.active .tab-close:hover { background: rgba(188,7,7,.15); }

/* ══════════════════════════════════════
   메인 콘텐츠
══════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 22px;
  min-height: calc(100vh - var(--header-h));
}
body.has-tabs .main-content {
  margin-top: calc(var(--header-h) + var(--tabbar-h));
  min-height: calc(100vh - var(--header-h) - var(--tabbar-h));
}

/* 페이지 헤드라인 */
.page-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--red);
  border-radius: 2px;
}

/* ══════════════════════════════════════
   카드
══════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════
   버튼
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  min-height: 38px;
  letter-spacing: -.2px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn-primary   { background: var(--red);     color: #fff; box-shadow: 0 2px 6px rgba(188,7,7,.3); }
.btn-secondary { background: #eef0f3;        color: var(--charcoal); }
.btn-danger    { background: #e53e3e;        color: #fff; }
.btn-blue      { background: var(--blue);    color: #fff; box-shadow: 0 2px 6px rgba(20,64,173,.25); }
.btn-outline   { background: transparent;    color: var(--red); border: 1px solid var(--red); }
.btn-sm        { padding: 5px 12px; font-size: 12px; min-height: 30px; }
.btn-lg        { padding: 11px 28px; font-size: 14.5px; min-height: 46px; }

/* ══════════════════════════════════════
   테이블
══════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
table th {
  background: #f8f9fb;
  font-weight: 600;
  color: var(--charcoal);
  padding: 10px 12px;
  border-bottom: 2px solid #e8eaed;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  text-align: center;
  font-size: 12.5px;
}
table th:last-child { border-right: none; }
table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f5f5f5;
  white-space: nowrap;
  text-align: center;
  color: var(--text);
}
table td:last-child { border-right: none; }
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: #fafbfd; }

/* 상태별 행 */
table tbody tr[data-status="1"] td { background: var(--status-approved); }
table tbody tr[data-status="2"] td { background: var(--status-rejected); }
table tbody tr[data-status="3"] td { background: var(--status-modified); }
table tbody tr[data-status="4"] td { background: var(--status-partial); }

/* 상태 뱃지 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-wait     { background: #f0f0f0;  color: #666; }
.badge-approved { background: #c6f6d5;  color: #276749; }
.badge-rejected { background: #fed7d7;  color: #9b2c2c; }
.badge-modified { background: #feebc8;  color: #7b341e; }
.badge-partial  { background: #bee3f8;  color: #2b6cb0; }

/* ══════════════════════════════════════
   폼
══════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
  letter-spacing: .2px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  min-height: 40px;
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(188,7,7,.1);
}

/* ══════════════════════════════════════
   검색 바
══════════════════════════════════════ */
.toolbar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toolbar .form-group { margin-bottom: 0; }
.toolbar .form-control { width: auto; min-width: 130px; }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.date-range {
  display: flex;
  gap: 6px;
  align-items: center;
}
.date-range .form-control { flex: 1; min-width: 110px; }
.date-range span { color: var(--text-sub); font-size: 13px; }

/* 툴바 버튼 그룹 */
.toolbar-btn-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* 팝업 필터 셀렉트 행 */
.popup-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.popup-filter-row .form-control { flex: 1; min-width: 100px; }

/* ══════════════════════════════════════
   그리드 입력 (발주등록)
══════════════════════════════════════ */
.grid-input {
  padding: 5px 7px;
  border: 1px solid #dde1e7;
  border-radius: 4px;
  font-size: 12.5px;
  width: 100%;
  font-family: var(--font-base);
  min-height: 32px;
  transition: border-color .15s;
}
.grid-input:focus {
  outline: none;
  border-color: var(--red);
}
.grid-input:read-only { background: #f7f8fa; color: #888; }
td { vertical-align: middle; }

/* ══════════════════════════════════════
   로그인 화면
══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--charcoal);
}

/* 왼쪽 브랜드 패널 */
.login-brand {
  flex: 1;
  background: linear-gradient(145deg, var(--red-dark) 0%, var(--red) 50%, #d44 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: #fff;
  min-width: 0;
}
.login-brand .brand-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900;
  margin-bottom: 28px;
  border: 2px solid rgba(255,255,255,.2);
}
.login-brand h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.login-brand p {
  font-size: 14px;
  opacity: .75;
  line-height: 1.7;
  max-width: 320px;
}
.login-brand .brand-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-brand .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: .85;
}
.login-brand .feature-item::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* 오른쪽 폼 패널 */
.login-form-wrap {
  width: 420px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}
.login-form-wrap .form-header {
  margin-bottom: 32px;
}
.login-form-wrap .form-header .subtitle {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.login-form-wrap .form-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
}
.login-form-wrap .form-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   알림
══════════════════════════════════════ */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }

/* ══════════════════════════════════════
   공지사항 카드 (main.html)
══════════════════════════════════════ */
.notice-row {
  display: flex;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  gap: 12px;
  transition: background .1s;
  border-radius: 4px;
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: var(--red-light); }
.notice-row .notice-num {
  width: 28px; height: 28px;
  background: #f2f3f5;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notice-row .notice-title {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.notice-row .notice-attach {
  font-size: 13px;
  color: var(--blue);
}
.notice-row .notice-date {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   로그아웃 버튼
══════════════════════════════════════ */
.btn-logout {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: var(--font-base);
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.btn-logout:hover { background: rgba(255,255,255,.22); }

/* ══════════════════════════════════════
   로딩 오버레이
══════════════════════════════════════ */
#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
#loadingOverlay.show { display: flex; }

.loading-spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading-text {
  color: #fff;
  font-size: 14px;
  font-family: var(--font-base);
  letter-spacing: .3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   토스트
══════════════════════════════════════ */
#globalToast {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: var(--font-base);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: opacity .3s, transform .3s;
  max-width: 340px;
}

/* ══════════════════════════════════════
   품목 선택 리스트
══════════════════════════════════════ */
.item-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  gap: 12px;
  transition: background .1s;
}
.item-list-row:last-child { border-bottom: none; }
.item-list-row:hover { background: #fff5f5; }

.item-list-info { flex: 1; min-width: 0; }
.item-list-code {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-bottom: 2px;
}
.item-list-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-list-model {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-list-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.item-list-unit {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  text-align: right;
}

/* ══════════════════════════════════════
   팝업
══════════════════════════════════════ */
.popup-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.popup-overlay.open { display: flex; }
.popup-box {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 660px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
.popup-box--wide { max-width: 900px; }
.popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--charcoal);
  background: #f8f9fb;
  border-radius: 8px 8px 0 0;
}
.popup-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

/* ══════════════════════════════════════
   반응형 — 모바일 (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .btn-hamburger { display: flex; }
  .user-name { display: none; }

  .sidebar {
    transform: translateX(-100%);
    top: 0;
    z-index: 170;
    padding-top: calc(var(--header-h) + 16px);
    box-shadow: 4px 0 20px rgba(0,0,0,.25);
  }
  .sidebar.open { transform: translateX(0); }

  .tab-bar { left: 0; }

  .main-content { margin-left: 0; padding: 10px; }
  .card { padding: 12px; }
  .card-title { font-size: 13px; }

  .tab-item { padding: 0 12px; font-size: 12.5px; }

  /* 페이지 헤더 — 뱃지 행 줄바꿈 */
  .page-header { flex-wrap: wrap; gap: 8px; }
  .page-title  { font-size: 16px; }

  /* 툴바 */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .toolbar .form-group { width: 100%; }
  .toolbar .form-control { width: 100%; min-width: 0; }
  .toolbar-right {
    margin-left: 0;
    width: 100%;
  }
  .toolbar-right .btn { flex: 1; justify-content: center; font-size: 12.5px; }

  /* 날짜 범위 */
  .date-range { width: 100%; }
  .date-range .form-control { min-width: 0; flex: 1; }

  /* 납품번호 입력 그룹 — 줄바꿈 */
  .dgoods-no-wrap { flex-wrap: wrap; gap: 6px; }
  .dgoods-no-wrap input { flex: 1; min-width: 80px; width: auto !important; }
  .dgoods-no-wrap .btn { flex: 1; justify-content: center; }
  #dlvDgoodsDate  { min-width: 100px; }

  /* 툴바 버튼 그룹 */
  .toolbar-btn-group { width: 100%; }
  .toolbar-btn-group .btn { flex: 1; justify-content: center; }

  /* 팝업 */
  .popup-overlay { padding: 10px; align-items: flex-start; overflow-y: auto; }
  .popup-box {
    max-width: 100% !important;
    max-height: none;
    margin: auto;
  }
  .popup-body { padding: 12px 14px; }
  .popup-header { padding: 12px 14px; font-size: 13.5px; }

  /* 팝업 필터 셀렉트 */
  .popup-filter-row { gap: 6px; }
  .popup-filter-row .form-control { min-width: 80px; font-size: 12.5px; }

  /* 납품번호 검색 팝업 날짜 */
  .popup-body .date-range { flex-wrap: wrap; }

  /* 테이블 — 글씨 축소로 가독성 확보 */
  table { font-size: 12px; }
  table th, table td { padding: 7px 8px; }

  /* 로그인 */
  .login-brand { display: none; }
  .login-page  { background: #fff; }
  .login-form-wrap {
    width: 100%;
    flex-shrink: 1;
    min-height: 100vh;
    padding: 56px 24px 36px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .header { padding: 0 12px; }
  .logo-text .portal { font-size: 13px; }
  .btn-logout { padding: 5px 10px; font-size: 12px; }

  .main-content { padding: 8px; }
  .card { padding: 10px; }

  /* 테이블 더 축소 */
  table { font-size: 11.5px; }
  table th, table td { padding: 6px 6px; white-space: nowrap; }

  /* 탭 */
  .tab-item { padding: 0 10px; font-size: 12px; }

  /* 로그인 — 소형 화면 */
  .login-form-wrap { padding: 40px 20px 32px; }
  .login-form-wrap .form-header { margin-bottom: 24px; }
  .login-form-wrap .form-header h2 { font-size: 20px; }

  /* 발주현황 뱃지 — 소형 화면에서 숨기거나 줄임 */
  .page-header .badge { font-size: 10.5px; padding: 2px 6px; }
}
