/* =====================================================================
   PIXIFY OPS HUB — TAMPILAN
   Warna, font, dan logo mengikuti Pixify Brand OS Framework v6.
   Palet inti : hijau teal tua  #2D5957 / #1F3A38
                coral           #F0A084  (dari logo Pixify)
                terracotta      #D68B64
                krem            #F7F3EE / #E8DDD2
   ===================================================================== */

:root {
  /* --- Hijau (warna utama, diambil dari logo) --- */
  --green-900: #16302D;
  --green-800: #1F3A38;
  --green-700: #2D5957;
  --green-600: #3C6D69;
  --green-500: #4E7B77;
  --green-400: #7FA09A;
  --green-200: #B9CFCA;
  --green-100: #DCE8E5;
  --green-50:  #EDF4F2;

  /* --- Coral & terracotta (aksen) --- */
  --coral-600: #DE8467;
  --coral-500: #F0A084;
  --coral-200: #F8D5C7;
  --coral-50:  #FDF1EB;

  --clay-600:  #B87450;
  --clay-500:  #D68B64;

  /* --- Netral hangat --- */
  --cream-50:  #F9F7F4;
  --cream-100: #F2EEE9;
  --cream-200: #E8DDD2;

  --ink-900:   #16302D;
  --ink-700:   #46534F;
  --ink-500:   #77837F;
  --ink-400:   #9AA4A0;

  /* --- Warna status --- */
  --ok-bg:     #E4F0E7;  --ok-fg:     #2C6B3C;
  --warn-bg:   #FCF0E4;  --warn-fg:   #9C6222;
  --danger-bg: #FCE9E4;  --danger-fg: #A83E2B;
  --idle-bg:   #EDEAE6;  --idle-fg:   #6F7A76;
  --info-bg:   #E6EDF4;  --info-fg:   #345C80;
  --purple-bg: #EBE8F5;  --purple-fg: #4E4489;

  /* --- Peran --- */
  --page:      #E9E7E3;   /* latar paling luar */
  --shell:     #FDFCFB;   /* kotak besar aplikasi */
  --surface:   #FFFFFF;
  --surface-2: #F7F5F2;
  --border:    #EAE5DF;
  --border-2:  #DCD5CC;
  --text:      var(--ink-900);
  --muted:     var(--ink-500);

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(22,48,45,.05);
  --shadow:    0 2px 6px rgba(22,48,45,.05), 0 12px 28px rgba(22,48,45,.06);
  --shadow-lg: 0 8px 20px rgba(22,48,45,.10), 0 32px 64px rgba(22,48,45,.16);

  --sidebar-w: 250px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Spectral', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

/* Elemen ber-atribut "hidden" harus benar-benar tersembunyi.
   Tanpa baris ini, aturan display:flex di bawah akan mengalahkannya
   dan semua layar (loading / login / aplikasi) tampil bertumpuk. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 12px; }
a { color: var(--green-700); }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--cream-100);
  padding: 2px 6px;
  border-radius: 5px;
}

.h2 { font-size: 22px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }


/* ---------------------------------------------------------------------
   LOGO
   --------------------------------------------------------------------- */

.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 34px; height: 34px;
  flex: none;
  background: url('../img/pixify-mark.png') center/contain no-repeat;
}
.logo__text { line-height: 1.15; display: block; }
.logo__name, .logo__sub { display: block; }
.logo__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: .01em;
}
.logo__sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.logo--lg .logo__mark { width: 46px; height: 46px; }
.logo--lg .logo__name { font-size: 25px; }


/* ---------------------------------------------------------------------
   LAYAR PENUH (loading / setup / login)
   --------------------------------------------------------------------- */

.screen { min-height: 100vh; }

.screen--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
  background:
    radial-gradient(900px 480px at 10% -8%,  var(--green-50), transparent 60%),
    radial-gradient(820px 440px at 100% 4%,  var(--coral-50), transparent 58%),
    var(--cream-50);
}

/* ---------------------------------------------------------------------
   HALAMAN LOGIN
   Dua panel: kiri identitas Pixify, kanan formulir.
   --------------------------------------------------------------------- */

.auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: var(--cream-50);
}

/* --- Panel kiri --- */
.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% 8%,  rgba(240,160,132,.30), transparent 62%),
    radial-gradient(620px 380px at 4% 96%,  rgba(126,160,154,.28), transparent 60%),
    linear-gradient(155deg, var(--green-700) 0%, var(--green-900) 72%);
}

/* Lingkaran samar sebagai tekstur, mengambil bentuk logo Pixify */
.auth__brand::after {
  content: '';
  position: absolute;
  right: -190px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 78px solid rgba(255,255,255,.045);
  pointer-events: none;
}

.auth__brand-top { position: relative; z-index: 1; }
.auth__brand-mid { position: relative; z-index: 1; max-width: 420px; }

.auth__tagline {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.auth__sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin-bottom: 26px;
}

.auth__list { list-style: none; margin: 0; padding: 0; }
.auth__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
}
.auth__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral-500);
}

.auth__foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* Logo versi terang untuk latar gelap */
.logo__mark--putih { background-image: url('../img/pixify-mark-white.png'); }
.logo--terang .logo__name { color: #fff; }
.logo--terang .logo__sub  { color: rgba(255,255,255,.5); }

/* --- Panel kanan --- */
.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background:
    radial-gradient(700px 380px at 100% 0%, var(--coral-50), transparent 60%),
    var(--cream-50);
}
.auth__box { width: 100%; max-width: 386px; }

.auth__logo-mobile { display: none; margin-bottom: 28px; }

.auth__title { font-size: 27px; letter-spacing: -0.03em; margin-bottom: 7px; }
.auth__desc  { font-size: 14px; color: var(--muted); margin-bottom: 26px; line-height: 1.55; }

.auth__links { display: flex; justify-content: center; margin-top: 14px; }
.auth__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__logo-mobile { display: flex; }
  .auth__panel { min-height: 100vh; }
}


/* ---------------------------------------------------------------------
   KARTU
   --------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card--narrow { width: 100%; max-width: 410px; }

.steps { margin: 14px 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 8px; }


/* ---------------------------------------------------------------------
   FORM
   --------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.field__hint { font-size: 12px; color: var(--muted); }

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number],
input[type=url], input[type=search], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 10px 12px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 78px; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-50);
}
input:disabled, select:disabled, textarea:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377837F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }


/* ---------------------------------------------------------------------
   TOMBOL
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .13s, border-color .13s, opacity .13s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-600); }

.btn--accent { background: var(--coral-500); color: #fff; }
.btn--accent:hover { background: var(--coral-600); }

.btn--outline { border-color: var(--border-2); background: var(--surface); }
.btn--outline:hover { background: var(--surface-2); }

.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }

.btn--danger { background: var(--danger-bg); color: var(--danger-fg); }
.btn--danger:hover { background: #F8DCD5; }

.btn--sm { padding: 8px 13px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn--icon {
  padding: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
  flex: none;
}
.btn--icon:hover { background: var(--surface-2); }
.btn--icon-plain { border-color: transparent; background: transparent; }


/* ---------------------------------------------------------------------
   PESAN
   --------------------------------------------------------------------- */

.alert {
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px;
  margin: 0;
}
.alert--error { background: var(--danger-bg); color: var(--danger-fg); }
.alert--info  { background: var(--info-bg);   color: var(--info-fg); }
.alert--warn  { background: var(--warn-bg);   color: var(--warn-fg); }
.alert--ok    { background: var(--ok-bg);     color: var(--ok-fg); }


/* ---------------------------------------------------------------------
   KERANGKA APLIKASI
   Kotak besar membulat yang "mengambang" di atas latar abu hangat.
   --------------------------------------------------------------------- */

.app {
  display: flex;
  min-height: 100vh;
  padding: 18px;
  gap: 0;
}

.shell {
  display: flex;
  flex: 1;
  min-width: 0;
  background: var(--shell);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}


/* --- Sidebar --- */

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--shell);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  position: sticky;
  top: 18px;
}

.sidebar__brand { padding: 22px 20px 16px; }

.nav { flex: 1; padding: 4px 12px 12px; overflow-y: auto; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.nav__group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 16px 10px 7px;
}
.nav__group:first-child { padding-top: 4px; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 2px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nav__item:hover { background: var(--surface-2); color: var(--text); }

.nav__item--active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
}
.nav__item--active::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--green-700);
}

.nav__icon {
  width: 18px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink-400);
}
.nav__item--active .nav__icon { color: var(--green-700); }
.nav__icon svg { width: 17px; height: 17px; }

.nav__count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--mono);
  background: var(--coral-500);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}
.nav__count--soft { background: var(--cream-200); color: var(--ink-700); }

.sidebar__footer { padding: 12px; border-top: 1px solid var(--border); }

.promo {
  border-radius: var(--r-lg);
  padding: 16px;
  background:
    radial-gradient(120px 80px at 85% 10%, rgba(240,160,132,.28), transparent 70%),
    linear-gradient(150deg, var(--green-700), var(--green-900));
  color: #fff;
}
.promo__title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.promo__text { font-size: 11.5px; opacity: .78; line-height: 1.45; margin-bottom: 11px; }
.promo .btn { background: rgba(255,255,255,.14); color: #fff; width: 100%; }
.promo .btn:hover { background: rgba(255,255,255,.24); }

.sidebar-scrim { display: none; }


/* --- Bagian kanan --- */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--shell);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__menu { display: none; }

.search {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search input {
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  background: var(--surface-2);
  border-color: transparent;
  font-size: 13.5px;
}
.search input:focus { background: var(--surface); border-color: var(--green-500); }
.search__icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
  display: grid;
}
.search__hint {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-400);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  pointer-events: none;
}
.search input:focus + .search__icon + .search__hint,
.search input:not(:placeholder-shown) ~ .search__hint { display: none; }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.bell { position: relative; }
.bell__dot {
  position: absolute;
  top: 4px; right: 5px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral-500);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--shell);
}

.userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.userchip:hover { background: var(--surface-2); border-color: var(--border); }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--xs { width: 24px; height: 24px; font-size: 9.5px; }
.userchip__name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.userchip__mail { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
@media (max-width: 1100px) { .userchip__meta { display: none; } }

.content { padding: 22px; flex: 1; }

.pagehead {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.pagehead__titles { flex: 1; min-width: 0; }
.pagehead__title { font-size: 27px; letter-spacing: -0.03em; }
.pagehead__desc { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.pagehead__actions { display: flex; gap: 9px; flex-wrap: wrap; }


/* ---------------------------------------------------------------------
   KARTU STATISTIK
   --------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  overflow: hidden;
}
.stat__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  padding-right: 26px;
}
.stat__value { font-size: 32px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stat__hint { font-size: 11.5px; color: var(--muted); margin-top: 7px; }

.stat__arrow {
  position: absolute;
  top: 14px; right: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  color: var(--ink-400);
}

/* Kartu pertama: hijau gradien, seperti di referensi */
.stat--hero {
  background:
    radial-gradient(180px 120px at 88% 6%, rgba(240,160,132,.22), transparent 68%),
    linear-gradient(145deg, var(--green-600), var(--green-900));
  border-color: transparent;
  color: #fff;
}
.stat--hero .stat__label { color: rgba(255,255,255,.72); }
.stat--hero .stat__hint  { color: rgba(255,255,255,.62); }
.stat--hero .stat__arrow { border-color: rgba(255,255,255,.3); color: #fff; }

.stat--ok     .stat__value { color: var(--ok-fg); }
.stat--warn   .stat__value { color: var(--warn-fg); }
.stat--danger .stat__value { color: var(--danger-fg); }
.stat--accent .stat__value { color: var(--coral-600); }


/* ---------------------------------------------------------------------
   PANEL
   --------------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.panel__title { font-size: 15px; font-weight: 700; }
.panel__meta { font-size: 12.5px; color: var(--muted); }
.panel__actions { margin-left: auto; display: flex; gap: 8px; }
.panel__body { padding: 18px; }

.section__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.section__title { font-size: 15px; font-weight: 700; }
.section__meta { font-size: 12.5px; color: var(--muted); }


/* ---------------------------------------------------------------------
   BARIS FILTER
   --------------------------------------------------------------------- */

.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar select, .toolbar input[type=text], .toolbar input[type=date] {
  width: auto;
  min-width: 148px;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--surface);
}
.toolbar select { padding-right: 32px; }
.toolbar__search { flex: 1; min-width: 200px !important; }
.toolbar__spacer { flex: 1; }


/* ---------------------------------------------------------------------
   TABEL
   --------------------------------------------------------------------- */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
}

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }

table.data th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-400);
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--cream-100);
  vertical-align: top;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--cream-50); }
table.data tbody tr.clickable { cursor: pointer; }

td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: 12.5px; }
td.wrap { min-width: 220px; white-space: normal; }
td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty__title { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 15px; }

.indent-1 td:first-child { padding-left: 36px; }
.indent-1 td:first-child::before {
  content: '';
  display: inline-block;
  width: 9px; height: 1px;
  background: var(--border-2);
  vertical-align: middle;
  margin-right: 8px;
}


/* ---------------------------------------------------------------------
   LABEL STATUS
   --------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--idle-bg);
  color: var(--idle-fg);
}
.badge--ok     { background: var(--ok-bg);     color: var(--ok-fg); }
.badge--warn   { background: var(--warn-bg);   color: var(--warn-fg); }
.badge--danger { background: var(--danger-bg); color: var(--danger-fg); }
.badge--info   { background: var(--info-bg);   color: var(--info-fg); }
.badge--idle   { background: var(--idle-bg);   color: var(--idle-fg); }
.badge--coral  { background: var(--coral-50);  color: var(--coral-600); }
.badge--purple { background: var(--purple-bg); color: var(--purple-fg); }
.badge--green  { background: var(--green-50);  color: var(--green-700); }
.badge--clay   { background: #F6EBE2;          color: var(--clay-600); }
.badge--grey   { background: var(--idle-bg);   color: var(--idle-fg); }

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.overdue { color: var(--danger-fg); font-weight: 600; }


/* --- Tumpukan avatar PIC --- */

.avatars { display: flex; align-items: center; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }
.avatars__more {
  margin-left: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--ink-700);
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
}
tr:hover .avatars .avatar,
tr:hover .avatars__more { border-color: var(--cream-50); }

.pic-line { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.pic-line:first-child { margin-top: 0; }
.pic-role {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-400);
}


/* ---------------------------------------------------------------------
   DAFTAR CENTANG (Recurring)
   --------------------------------------------------------------------- */

.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-100);
}
.check-row:last-child { border-bottom: none; }
.check-row:hover { background: var(--cream-50); }
.check-row--done .check-row__title { color: var(--muted); text-decoration: line-through; }
.check-row__seq { font-family: var(--mono); font-size: 12px; color: var(--ink-400); width: 22px; flex: none; padding-top: 2px; }
.check-row__body { flex: 1; min-width: 0; }
.check-row__title { font-weight: 500; }
.check-row__meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.check-row__actions { display: flex; gap: 5px; flex: none; }

.chip {
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { background: var(--surface-2); }
.chip--on-ok    { background: var(--ok-bg);    border-color: transparent; color: var(--ok-fg); }
.chip--on-warn  { background: var(--warn-bg);  border-color: transparent; color: var(--warn-fg); }
.chip--on-idle  { background: var(--idle-bg);  border-color: transparent; color: var(--idle-fg); }
.chip--on-green { background: var(--green-700); border-color: transparent; color: #fff; }


/* ---------------------------------------------------------------------
   JADWAL SHIFT
   --------------------------------------------------------------------- */

table.shift td, table.shift th { text-align: center; padding: 9px 6px; }
table.shift td:first-child, table.shift th:first-child { text-align: left; padding-left: 16px; }
table.shift th small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .7; }
table.shift td.today, table.shift th.today { background: var(--coral-50); }

.shift-cell {
  display: inline-block;
  min-width: 68px;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--cream-100);
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.shift-cell:hover { border-color: var(--border-2); }
.shift-cell--pagi  { background: #FDF3DF; color: #8A5D14; }
.shift-cell--siang { background: var(--green-50); color: var(--green-700); }
.shift-cell--malam { background: var(--purple-bg); color: var(--purple-fg); }
.shift-cell--off   { background: var(--cream-100); color: var(--ink-400); }
.shift-cell--cuti  { background: var(--coral-50); color: var(--coral-600); }
.shift-cell__tag { font-size: 10px; opacity: .75; margin-left: 3px; }


/* ---------------------------------------------------------------------
   PROGRESS
   --------------------------------------------------------------------- */

.progress { height: 7px; background: var(--cream-100); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress__bar { height: 100%; background: var(--green-600); border-radius: 999px; transition: width .3s; }
.progress__bar--accent { background: var(--coral-500); }
.stat--hero .progress { background: rgba(255,255,255,.18); }
.stat--hero .progress__bar { background: var(--coral-500); }

/* Batang untuk grafik sederhana */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bars__bar { width: 100%; max-width: 46px; border-radius: 999px; background: var(--green-100); min-height: 5px; position: relative; }
.bars__bar--on { background: var(--green-600); }
.bars__bar--hi { background: var(--green-800); }
.bars__label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bars__value {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: var(--ink-700);
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}


/* ---------------------------------------------------------------------
   RIWAYAT (timeline)
   --------------------------------------------------------------------- */

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border-2);
}
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -21px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-600);
  border: 2px solid var(--surface);
}
.tl-item__text { font-size: 13px; }
.tl-item__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }


/* ---------------------------------------------------------------------
   MODAL
   --------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22,48,45,.34);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  animation: modal-in .16s ease-out;
}
.modal--wide { max-width: 820px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal__title { font-size: 17px; }
.modal__body { padding: 24px; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal__foot .left { margin-right: auto; }


/* ---------------------------------------------------------------------
   NOTIFIKASI POJOK
   --------------------------------------------------------------------- */

.toast-root {
  position: fixed;
  right: 22px; bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--green-800);
  color: #fff;
  padding: 12px 17px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 350px;
  animation: toast-in .18s ease-out;
}
.toast--error { background: #9B3B29; }
.toast--ok    { background: #2C6B3C; }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }


/* ---------------------------------------------------------------------
   LAYAR KECIL
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .app { padding: 0; }
  .shell { border-radius: 0; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    max-height: none;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 40;
  }
  .sidebar--open { transform: none; }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(22,48,45,.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 35;
  }
  .sidebar-scrim--on { opacity: 1; pointer-events: auto; }
  .topbar__menu { display: inline-flex; }
  .topbar { padding: 12px 14px; }
  .content { padding: 16px 14px 40px; }
  .pagehead { flex-direction: column; gap: 12px; }
  .pagehead__title { font-size: 23px; }
  .search { max-width: none; }
}

@media print {
  .sidebar, .topbar, .pagehead__actions, .toolbar, .btn { display: none !important; }
  .app { padding: 0; }
  .shell { box-shadow: none; border-radius: 0; }
  .content { padding: 0; }
  .table-wrap { border: none; }
}
