/* =====================================================================
   FAK - Kotak Masuk (inbox admin) premium pass 20261130
   Dimuat TERAKHIR di <head> SPA. Hanya tampilan.
   ===================================================================== */

:root {
  --ib-navy: #12293c;
  --ib-navy-deep: #0b1f31;
  --ib-gold: #c59a43;
  --ib-gold-soft: #f0dcae;
  --ib-line: rgba(176, 132, 49, .26);
  --ib-card: 0 12px 28px rgba(11, 31, 49, .07), 0 1px 3px rgba(11, 31, 49, .04);
}

/* ---------- 1. kotak centang: jangan ikut aturan "min-height semua tombol" ---------- */
html body .admin-main [data-slot="checkbox"],
html body .admin-shell [data-slot="checkbox"] {
  display: inline-grid !important;
  place-content: center !important;
  box-sizing: border-box !important;
  width: 21px !important;
  height: 21px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 21px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(176, 132, 49, .55) !important;
  background: linear-gradient(180deg, #ffffff, #fdfaf3) !important;
  box-shadow: 0 1px 3px rgba(11, 31, 49, .07) !important;
  color: transparent !important;
}
html body .admin-main [data-slot="checkbox"][data-state="checked"],
html body .admin-shell [data-slot="checkbox"][data-state="checked"] {
  background: linear-gradient(160deg, #1e4160, #0b1f31) !important;
  border-color: #12293c !important;
  color: var(--ib-gold-soft) !important;
}
html body .admin-main [data-slot="checkbox"][data-state="indeterminate"],
html body .admin-shell [data-slot="checkbox"][data-state="indeterminate"] {
  background: linear-gradient(180deg, #f0dcae, #c59a43) !important;
  border-color: #a87e2e !important;
  color: #12293c !important;
}
html body .admin-main [data-slot="checkbox"] svg,
html body .admin-shell [data-slot="checkbox"] svg {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 3 !important;
}

/* ---------- 2. label status / pill kecil agar tidak 11px ---------- */
html body .admin-main button[class*="rounded-full"] > span[class*="px-1.5"],
html body .admin-main button[class*="rounded-full"] > span[class*="px-2.5"] {
  min-width: 24px;
  padding: 2px 8px !important;
  border-radius: 999px;
  background: rgba(18, 41, 60, .07) !important;
  color: #5c6f84 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: center;
}

/* ---------- 3. kartu pesan ---------- */
html body .admin-main div[class~="space-y-3"] > div[class~="rounded-xl"][class*="bg-card"] {
  border-radius: 18px !important;
  border-color: var(--ib-line) !important;
  background: linear-gradient(180deg, #ffffff, #fdfbf6) !important;
  box-shadow: var(--ib-card) !important;
}
html body .admin-main span[class*="text-[10px]"][class*="uppercase"] {
  font-size: 10.5px !important;
  letter-spacing: .09em !important;
  padding: 4px 11px !important;
  border: 1px solid rgba(18, 41, 60, .10);
}
html body .admin-main span[class~="bg-blue-100"] {
  background: #e9f1f8 !important;
  color: #2a5680 !important;
  border-color: rgba(42, 86, 128, .18) !important;
}
html body .admin-main span[class~="bg-amber-100"] {
  background: #fdf3dd !important;
  color: #8a6a1f !important;
  border-color: rgba(176, 132, 49, .28) !important;
}
html body .admin-main span[class~="bg-emerald-100"] {
  background: #e8f5ee !important;
  color: #1f6b3c !important;
  border-color: rgba(31, 107, 60, .20) !important;
}

/* ---------- 4. keadaan kosong: kartu tenang, bukan kotak besar ---------- */
html body .admin-main p.rounded-xl.border-dashed {
  display: block !important;
  min-height: 0 !important;
  margin-top: 4px !important;
  padding: 26px 20px 28px !important;
  border: 1px dashed rgba(176, 132, 49, .46) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(320px 120px at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fffdf7, #f8f2e6) !important;
  box-shadow: 0 10px 24px rgba(11, 31, 49, .05) !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  text-align: center !important;
}
html body .admin-main p.rounded-xl.border-dashed::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: rgba(197, 154, 67, .13);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87e2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 23px 23px;
}

/* ---------- 5. HP: deret kategori jadi kisi dua kolom yang rata ---------- */
@media (max-width: 640px) {
  html body .admin-main button[class~="rounded-full"][class*="gap-2"] {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 0;
    min-height: 50px !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    line-height: 1.25;
    justify-content: flex-start;
    border-radius: 14px !important;
    border: 1px solid var(--ib-line) !important;
    background: linear-gradient(180deg, #ffffff, #fdfaf3) !important;
    color: var(--ib-navy) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .004em !important;
    box-shadow: 0 1px 3px rgba(11, 31, 49, .04) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  html body .admin-main button[class~="rounded-full"][class*="gap-2"] svg {
    flex: 0 0 auto;
    width: 17px !important;
    height: 17px !important;
    color: #a87e2e !important;
  }
  html body .admin-main button[class~="rounded-full"][class*="gap-2"] > span[class*="px-1.5"] {
    margin-left: auto;
  }
  html body .admin-main button[class~="rounded-full"][class*="bg-navy-900"] {
    background: linear-gradient(150deg, #1e4160 0%, #12293c 58%, #0b1f31 100%) !important;
    border-color: rgba(240, 220, 174, .55) !important;
    color: var(--ib-gold-soft) !important;
    box-shadow: 0 8px 18px rgba(11, 31, 49, .18) !important;
  }
  html body .admin-main button[class~="rounded-full"][class*="bg-navy-900"] svg {
    color: rgba(240, 220, 174, .88) !important;
  }
  html body .admin-main button[class~="rounded-full"][class*="bg-navy-900"] > span[class*="px-1.5"] {
    background: rgba(240, 220, 174, .22) !important;
    color: #fbf3e2 !important;
  }

  html body .admin-main div[class~="mb-4"][class*="flex-wrap"] {
    row-gap: 10px !important;
    padding: 4px 0 10px !important;
    border-bottom: 1px solid rgba(176, 132, 49, .18) !important;
  }
  html body .admin-main div[class~="mb-4"][class*="flex-wrap"] label {
    gap: 10px !important;
    min-height: 34px;
    color: var(--ib-navy) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  html body .admin-main div[class~="mb-4"] button[class*="rounded-full"] {
    min-height: 38px !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }
  html body .admin-main button[class~="rounded-full"][class~="border-border"] {
    min-height: 38px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    border-color: var(--ib-line) !important;
    background: #ffffff !important;
    color: var(--ib-navy) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }
  html body .admin-main button[class*="bg-destructive"] {
    min-height: 38px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }
  html body .admin-main button[class~="ml-auto"][class~="rounded-full"] {
    min-height: 34px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    color: #8f3b3b !important;
  }
  html body .admin-main p.rounded-xl.border-dashed { padding: 22px 16px 24px !important; font-size: 13.5px !important; }
}
