/* ==========================================================================
   Aroma Loka ERP — Design System "Aromatherapic Natural Modern"
   Botanical Precision UI
   Sumber: DESIGN.md + dokumentasi_desain_aromatherapic_natural_modern.md
   ========================================================================== */

:root {
  /* --- Warna Permukaan (Surfaces) --- */
  --color-canvas-cream: #F9F8F5;
  --color-background: #f8faf5;
  --color-surface-card: #FFFFFF;
  --color-surface-container-low: #f2f4ef;
  --color-surface-container: #ecefe9;
  --color-surface-container-high: #e7e9e4;
  --color-surface-container-highest: #e1e3de;
  --color-surface-dim: #d8dbd6;
  --color-surface-bright: #f8faf5;
  --color-surface-variant: #e1e3de;
  --color-surface-tint: #456557;

  /* --- Warna Brand (Botanical) --- */
  --color-primary: #0e3024;
  --color-primary-container: #264639;
  --color-primary-fixed: #c6ebd8;
  --color-primary-fixed-dim: #abcebd;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #91b3a2;
  --color-on-primary-fixed: #002116;
  --color-on-primary-fixed-variant: #2d4d40;

  --color-secondary: #974722;
  --color-secondary-container: #ff996c;
  --color-secondary-fixed: #ffdbcd;
  --color-secondary-fixed-dim: #ffb597;
  --color-on-secondary: #ffffff;
  --color-on-secondary-container: #772f0a;
  --color-on-secondary-fixed: #360f00;
  --color-on-secondary-fixed-variant: #79310c;

  --color-tertiary: #3a2600;
  --color-tertiary-container: #573a00;
  --color-tertiary-fixed: #ffdeae;
  --color-tertiary-fixed-dim: #fdba45;
  --color-on-tertiary: #ffffff;
  --color-on-tertiary-container: #dea02b;
  --color-on-tertiary-fixed: #281900;
  --color-on-tertiary-fixed-variant: #604100;

  /* --- Warna Teks --- */
  --color-on-surface: #191c1a;
  --color-on-surface-variant: #414844;
  --color-inverse-surface: #2e312e;
  --color-inverse-on-surface: #eff1ec;
  --color-inverse-primary: #abcebd;
  --color-outline: #727974;
  --color-outline-variant: #c1c8c3;
  --color-on-background: #191c1a;
  --color-cedar-dark: #1B2A23;

  /* --- Warna Aksen & Status --- */
  --color-sage-botanic: #52796F;
  --color-sage-subtle: #EDF2EE;
  --color-terracotta-soft: #FBF0EB;
  --color-amber-soft: #FDF6EA;
  --color-border-warm: #E6E4DC;

  --color-status-success-green: #2B7A4B;
  --color-status-success-bg: #EBF6EF;
  --color-status-danger-red: #BC3838;
  --color-status-danger-bg: #FDF0F0;

  /* --- Radius --- */
  --radius-default: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 2rem;
  --gutter: 1rem;
  --gutter-mobile: 0.75rem;
  --margin: 1.25rem;
  --margin-mobile: 1rem;

  /* --- Tipografi --- */
  --font-family: "Plus Jakarta Sans", system-ui, sans-serif;

  --text-label-sm: 11px / 14px;
  --text-label-md: 12px / 16px;
  --text-label-lg: 14px / 20px;
  --text-body-sm: 12px / 18px;
  --text-body-md: 14px / 20px;
  --text-body-lg: 16px / 24px;
  --text-title-md: 16px / 24px;
  --text-title-lg: 18px / 26px;
  --text-headline-md: 20px / 28px;
  --text-headline-lg: 28px / 36px;
  --text-headline-xl: 36px / 44px;
  --text-display-time: 42px / 48px;

  /* --- Elevasi (Shadow) --- */
  --shadow-level-0: none;
  --shadow-level-1: 0 2px 8px -2px rgba(38, 70, 57, 0.05);
  --shadow-level-2: 0 8px 20px -4px rgba(38, 70, 57, 0.10);
  --shadow-level-3: 0 -4px 20px 0 rgba(27, 42, 35, 0.08);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, pre {
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-primary-container);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: var(--radius-default);
  transition: all 0.15s ease;
}

button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Utility Classes (mirip Tailwind token)
   ========================================================================== */
.bg-canvas-cream { background-color: var(--color-canvas-cream); }
.bg-surface-card { background-color: var(--color-surface-card); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-tertiary-container { background-color: var(--color-tertiary-container); }
.bg-sage-subtle { background-color: var(--color-sage-subtle); }
.bg-terracotta-soft { background-color: var(--color-terracotta-soft); }
.bg-amber-soft { background-color: var(--color-amber-soft); }
.bg-border-warm { background-color: var(--color-border-warm); }
.bg-status-success-bg { background-color: var(--color-status-success-bg); }
.bg-status-danger-bg { background-color: var(--color-status-danger-bg); }

.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-outline { color: var(--color-outline); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-tertiary { color: var(--color-tertiary); }
.text-on-primary { color: var(--color-on-primary); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-on-secondary-container { color: var(--color-on-secondary-container); }
.text-on-secondary-fixed { color: var(--color-on-secondary-fixed); }
.text-on-secondary-fixed-variant { color: var(--color-on-secondary-fixed-variant); }
.text-on-tertiary-container { color: var(--color-on-tertiary-container); }
.text-on-tertiary-fixed { color: var(--color-on-tertiary-fixed); }
.text-on-tertiary-fixed-variant { color: var(--color-on-tertiary-fixed-variant); }
.text-status-success-green { color: var(--color-status-success-green); }
.text-status-danger-red { color: var(--color-status-danger-red); }
.text-sage-botanic { color: var(--color-sage-botanic); }
.text-cedar-dark { color: var(--color-cedar-dark); }

.border-border-warm { border-color: var(--color-border-warm); }
.border-primary { border-color: var(--color-primary); }
.border-secondary { border-color: var(--color-secondary); }
.border-status-success-green { border-color: var(--color-status-success-green); }
.border-status-danger-red { border-color: var(--color-status-danger-red); }

.rounded-default { border-radius: var(--radius-default); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 11px; line-height: 14px; }
.text-sm { font-size: 12px; line-height: 16px; }
.text-base { font-size: 14px; line-height: 20px; }
.text-lg { font-size: 16px; line-height: 24px; }
.text-xl { font-size: 18px; line-height: 26px; }
.text-2xl { font-size: 20px; line-height: 28px; }
.text-3xl { font-size: 28px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 44px; }
.text-display-time { font-size: 42px; line-height: 48px; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.fixed { position: fixed; }
.sticky { position: sticky; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-y-0 { top: 0; bottom: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 0.05em; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.shadow-sm { box-shadow: var(--shadow-level-1); }
.shadow-md { box-shadow: var(--shadow-level-2); }

.blur-2xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-all { transition: all 0.15s ease; }
.duration-150 { transition-duration: 0.15s; }

.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-98:active { transform: scale(0.98); }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.blur-2xl { filter: blur(24px); }

/* ==========================================================================
   Komponen: Shell Desktop (ERP Backoffice)
   ========================================================================== */
.sidebar-desktop {
  position: fixed;
  inset-y: 0;
  left: 0;
  width: 256px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  overflow-y: auto;
  background-color: var(--color-surface-card);
  border-right: 1px solid var(--color-border-warm);
  box-shadow: var(--shadow-level-1);
}

.topbar-desktop {
  position: sticky;
  top: 0;
  right: 0;
  left: 256px;
  z-index: 30;
  height: 64px;
  padding: 0 1.5rem;
  background-color: color-mix(in srgb, var(--color-surface-card) 95%, transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-desktop {
  margin-left: 256px;
  padding: 1.5rem;
  min-height: 100vh;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ==========================================================================
   Komponen: Shell Mobile (HR Portal)
   ========================================================================== */
.top-app-bar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  padding: 0 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  background-color: color-mix(in srgb, var(--color-surface-card) 95%, transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-bar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 68px;
  padding: 0 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--color-surface-card);
  border-top: 1px solid var(--color-border-warm);
  box-shadow: var(--shadow-level-3);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-container {
  min-height: 100vh;
  background-color: var(--color-background);
  padding-bottom: 96px; /* ruang untuk bottom bar */
  display: flex;
  flex-direction: column;
}

.mobile-main {
  flex: 1;
  padding: 1rem;
  padding-top: 64px; /* ruang untuk top app bar */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* ==========================================================================
   Komponen: Nav Item
   ========================================================================== */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--color-on-surface-variant);
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background-color: var(--color-surface-container-low);
  color: var(--color-primary);
}

.nav-item.active {
  background-color: var(--color-sage-subtle);
  color: var(--color-primary);
  font-weight: 600;
  border-left: 3px solid var(--color-primary);
}

.nav-item-icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
}

.nav-item-icon.fill-icon {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   Komponen: Tombol
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-container);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary-container);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  color: var(--color-on-surface-variant);
  background-color: transparent;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--color-border-warm);
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background-color: var(--color-surface-container-low);
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Komponen: Kartu & Badge
   ========================================================================== */
.card {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border-warm);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-level-1);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background-color: var(--color-status-success-bg);
  color: var(--color-status-success-green);
  border: 1px solid var(--color-status-success-green);
}

.badge-warning {
  background-color: var(--color-amber-soft);
  color: var(--color-tertiary);
  border: 1px solid var(--color-tertiary-fixed-dim);
}

.badge-danger {
  background-color: var(--color-status-danger-bg);
  color: var(--color-status-danger-red);
  border: 1px solid var(--color-status-danger-red);
}

/* ==========================================================================
   Komponen: Tabel
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table thead th {
  padding: 0.75rem 1rem;
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border-warm);
}

.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border-warm);
  font-size: 13px;
  line-height: 1.5;
}

.table tbody tr:hover {
  background-color: color-mix(in srgb, var(--color-sage-subtle) 40%, transparent);
}

/* ==========================================================================
   Komponen: Input & Form
   ========================================================================== */
.input {
  width: 100%;
  height: 44px;
  padding: 0 0.75rem;
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border-warm);
  border-radius: 0.5rem;
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 20%, transparent);
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

/* ==========================================================================
   Komponen: Modal / Slide-over
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(27, 42, 35, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border-warm);
  border-radius: 1rem;
  box-shadow: var(--shadow-level-2);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-warm);
  background-color: var(--color-surface-container-low);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-border-warm);
  background-color: var(--color-surface-card);
  display: flex;
  gap: 0.5rem;
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-outline);
  transition: background-color 0.15s ease;
}

.btn-close:hover {
  background-color: var(--color-surface-container-low);
  color: var(--color-primary);
}

/* ==========================================================================
   Komponen: Status Indicator
   ========================================================================== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
}

.status-dot-success { background-color: var(--color-status-success-green); }
.status-dot-danger { background-color: var(--color-status-danger-red); }
.status-dot-warning { background-color: var(--color-tertiary); }

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================================
   Responsive: Mobile-first overrides
   ========================================================================== */
@media (max-width: 899px) {
  .sidebar-desktop {
    display: none;
  }
  .topbar-desktop {
    left: 0;
  }
  .workspace-desktop {
    margin-left: 0;
    padding: 0.75rem;
  }

  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
}

@media (min-width: 900px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block; }
}

/* ==========================================================================
   States: Empty, Loading, Error
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-on-surface-variant);
}

.empty-state-icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 48px;
  margin-bottom: 0.75rem;
  color: var(--color-outline);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 0.75rem;
  color: var(--color-on-surface-variant);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-top-color: var(--color-primary);
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 0.75rem;
  text-align: center;
  color: var(--color-status-danger-red);
}

.error-state-icon {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 48px;
  color: var(--color-status-danger-red);
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-container-low);
}

::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* ponytail: Ceiling = design tokens lengkap untuk semua modul ERP. Upgrade path = tambah token untuk CP2+ (inventory, POS, keuangan) tanpa merusak token CP0/CP1. */
