/* ============================
   Design Tokens (공통 규칙)
============================ */
:root {
  /* Font size */
  --font-title: 28px;
  --font-subtitle: 20px;
  --font-card-title: 18px;
  --font-body: 16px;
  --font-small: 14px;

  /* Spacing */
  --gap-page: 28px;
  --gap-section: 28px;
  --gap-card: 16px;

  --padding-page: 22px;
  --padding-card: 22px;

  /* Color */
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-border: #e5e7eb;
  --color-line: #cbd5e1;
  --color-card: #ffffff;

  /* Shadow */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05);
}

/* ============================
   Typography Utility
============================ */
.page-title {
  font-size: var(--font-title);
  font-weight: 700;
  margin-bottom: var(--gap-page);
}

.section-title {
  font-size: var(--font-subtitle);
  font-weight: 600;
  margin-bottom: 12px;
}

.card-title {
  font-size: var(--font-card-title);
  font-weight: 600;
  margin-bottom: 10px;
}

.text-body {
  font-size: var(--font-body);
  line-height: 1.65;
}

.text-small {
  font-size: var(--font-small);
  line-height: 1.4;
}
.info-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 20px;
  margin-top: 10px;
}

/* ============================
   Mobile : ERP 확인 전용
============================ */
@media (max-width: 768px) {

  /* 사이드바 숨김 */
  .sidebar {
    display: none !important;
  }

  /* ===== 레이아웃 구조 강제 단일 컬럼 ===== */

  /* grid 방식일 경우 */
  .layout,
  .layout-wrapper {
    grid-template-columns: 1fr !important;
  }

  /* margin 방식일 경우 */
  main.content,
  .content,
  .main-area {
    margin-left: 0 !important;
    padding-left: 16px !important;
  }
}
/* ============================
   Mobile : 강제 모바일 인식
============================ */
@media (max-width: 768px) {

  html, body {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .layout,
  .layout-wrapper,
  .main,
  .main-area,
  .content {
    min-width: 0 !important;
    width: 100% !important;
  }
}
