:root {
  --om-bg: #f4f6fb;
  --om-sidebar: #121a2b;
  --om-sidebar-active: #1c2b47;
  --om-accent: #4f6ef7;
  --om-accent-soft: #eef1ff;
  --om-text-muted: #7c8494;
  --om-border: #e6e9f2;
  --om-card-radius: 14px;
}

body {
  background: var(--om-bg);
  font-family: "Pretendard", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1c2333;
}

/* ---------- layout ---------- */
.om-shell {
  display: flex;
  min-height: 100vh;
}

.om-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--om-sidebar);
  color: #cdd5e6;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.om-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.om-sidebar .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--om-accent);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.25);
}

.om-nav {
  padding: 6px 12px;
  list-style: none;
  margin: 0;
}

.om-nav .om-nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6478;
  padding: 16px 12px 6px;
}

.om-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #b7c0d6;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.om-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.om-nav a.active {
  background: var(--om-sidebar-active);
  color: #fff;
  font-weight: 600;
}

.om-nav a .bi {
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
}

.om-main {
  margin-left: 250px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.om-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #ffffffdd;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--om-border);
}

.om-topbar h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.om-content {
  padding: 26px 28px 60px;
}

.om-sidebar-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: #1c2333;
}

/* ---------- cards ---------- */
.om-card {
  background: #fff;
  border: 1px solid var(--om-border);
  border-radius: var(--om-card-radius);
  padding: 20px 22px;
}

.om-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.om-kpi .label {
  font-size: 0.82rem;
  color: var(--om-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-kpi .icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--om-accent-soft);
  color: var(--om-accent);
}

.om-kpi .value {
  font-size: 1.6rem;
  font-weight: 700;
}

.om-table-card {
  background: #fff;
  border: 1px solid var(--om-border);
  border-radius: var(--om-card-radius);
  overflow: hidden;
}

.om-table-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--om-border);
  padding: 16px 20px;
  font-weight: 700;
}

.table-om {
  margin-bottom: 0;
}

.table-om thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--om-text-muted);
  border-bottom: 1px solid var(--om-border);
  font-weight: 600;
}

.table-om td, .table-om th {
  padding: 12px 20px;
  vertical-align: middle;
}

.badge-status-pending { background: #fff2df; color: #a5650a; }
.badge-status-partial { background: #e6f0ff; color: #2557d6; }
.badge-status-shipped { background: #e4f8ec; color: #17853f; }

/* ---------- login ---------- */
.om-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #223055, #0c1220 60%);
  padding: 20px;
}

.om-login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.om-login-card .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.om-login-card .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--om-accent);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.18);
}

.om-login-card .subtitle {
  color: var(--om-text-muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.btn-om-primary {
  background: var(--om-accent);
  border-color: var(--om-accent);
}

.btn-om-primary:hover {
  background: #3d5adf;
  border-color: #3d5adf;
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .om-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .om-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35);
  }

  .om-main {
    margin-left: 0;
  }

  .om-sidebar-toggle {
    display: inline-flex;
  }

  .om-content {
    padding: 18px 16px 48px;
  }

  .om-topbar {
    padding: 12px 16px;
  }
}

@media (max-width: 575.98px) {
  .om-kpi .value {
    font-size: 1.3rem;
  }

  .table-om td, .table-om th {
    padding: 10px 12px;
  }
}
