/* HeavenSuite panel = heavenprem.com/admin (CEO 2026-11-11: sama GAYA, TEMA, WARNA, ANIMASI, BACKGROUND).
   Copied from heavenprem client/src/index.css block "html.admin-ui" (ASTA) and its shadcn components; both panels
   are shadcn (same data-slot hooks), so the rules map 1:1. Loaded after index-*.css. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter-latin-6ab57b19.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter-latin-ext-b6db4a06.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/sourceserif4-latin-8a143e44.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/sourceserif4-latin-ext-dbb9fd02.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---- colours (heavenprem html.admin-ui / html.admin-ui.dark) ---- */
html, html.light {
  --radius: .75rem; /* rounded-lg 12px, rounded-xl 16px as on heavenprem */
  --background: #f7f5f0; --foreground: #1c1a16; --card: #fffdf9; --card-foreground: #1c1a16;
  --popover: #fffdf9; --popover-foreground: #1c1a16;
  --primary: #1c1a16; --primary-foreground: #fffdf9;
  --secondary: #efebe2; --secondary-foreground: #1c1a16; --muted: #efebe2; --muted-foreground: #615c52;
  --accent: #efebe2; --accent-foreground: #1c1a16; --border: #e2ddd1; --input: #e2ddd1;
  --ring: #1c1a16; --link: #7a5d00;
  --sidebar: #fffdf9; --sidebar-foreground: #1c1a16; --sidebar-primary: #1c1a16; --sidebar-primary-foreground: #fffdf9;
  --sidebar-accent: #efebe2; --sidebar-accent-foreground: #1c1a16; --sidebar-border: #e2ddd1; --sidebar-ring: #1c1a16;
  --chart-1: #1c1a16; --chart-2: #7a5d00; --chart-3: #615c52; --chart-4: #b3ac9e; --chart-5: #e2ddd1;
  --admin-dot: rgba(28, 26, 22, 0.11);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
}
html.dark {
  --background: #121110; --foreground: #f3efe6; --card: #1d1c19; --card-foreground: #f3efe6;
  --popover: #1d1c19; --popover-foreground: #f3efe6;
  --primary: #ffdb1c; --primary-foreground: #141210;
  --secondary: #191816; --secondary-foreground: #f3efe6; --muted: #191816; --muted-foreground: #b3ac9e;
  --accent: #24221f; --accent-foreground: #f3efe6; --border: #2f2d29; --input: #2f2d29;
  --ring: #ffdb1c; --link: #ffdb1c;
  --sidebar: #191816; --sidebar-foreground: #f3efe6; --sidebar-primary: #ffdb1c; --sidebar-primary-foreground: #141210;
  --sidebar-accent: #24221f; --sidebar-accent-foreground: #f3efe6; --sidebar-border: #2f2d29; --sidebar-ring: #ffdb1c;
  --chart-1: #ffdb1c; --chart-2: #f3efe6; --chart-3: #b3ac9e; --chart-4: #615c52; --chart-5: #2f2d29;
  --admin-dot: rgba(243, 239, 230, 0.10);
}
html ::selection { background: #ebe6da; color: #1c1a16; }
html.dark ::selection { background: #3b3105; color: #f3efe6; }

/* ---- type ---- */
html, body { font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important; }
body { font-variant-numeric: tabular-nums; }
main h1, h1.admin-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif !important; font-weight: 600 !important;
  letter-spacing: -0.015em !important; font-size: 1.75rem !important; line-height: 1.25 !important;
}
main h1 + p { font-size: .875rem; color: var(--muted-foreground); }

/* ---- background: paper + the site's dot grid behind the content (cards stay solid) ---- */
html body { background-color: var(--background); color: var(--foreground); }
html body, [data-slot="sidebar-inset"] {
  background-image: radial-gradient(var(--admin-dot) 1px, transparent 1.4px) !important;
  background-size: 22px 22px !important;
}
[data-slot="sidebar-wrapper"] { background-color: var(--sidebar); }
[data-slot="sidebar-inner"], [data-sidebar="sidebar"] { background-color: var(--sidebar) !important; }

/* ---- header: like heavenprem (sticky, h-14, hairline under it, page colour) ---- */
[data-slot="sidebar-inset"] > header {
  height: 3.5rem !important; background-color: var(--background) !important; border-bottom: 1px solid var(--border);
  backdrop-filter: none !important; box-shadow: none !important;
}
html.dark [data-slot="sidebar-inset"] > header { background-color: color-mix(in srgb, var(--background) 92%, transparent) !important; }
[data-slot="sidebar-inset"] > header > div { height: 100%; }
[data-slot="sidebar-inset"] { border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* ---- cards, tables, buttons, badges ---- */
[data-slot="card"] { border-radius: 1rem !important; box-shadow: 0 1px 2px rgba(0,0,0,.05) !important; backdrop-filter: none !important; }
[data-slot="table-container"] { border-radius: .75rem; }
[data-slot="table-row"]:hover { background-color: color-mix(in srgb, var(--muted) 60%, transparent); }
[data-slot="button"], button[data-slot] { border-radius: .5rem; }
[data-slot="badge"] { border-radius: 9999px; font-weight: 500; }
html.dark .bg-primary { color: var(--primary-foreground) !important; }
a:not([data-slot]):not([data-sidebar]):not([role]) { color: var(--link); }

/* ---- motion: the site's numbers ---- */
@keyframes admin-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: admin-rise 400ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  main > :nth-child(2) { animation-delay: 60ms; }
  main > :nth-child(3) { animation-delay: 120ms; }
  main > :nth-child(4) { animation-delay: 180ms; }
  main > :nth-child(n+5) { animation-delay: 240ms; }
  button, a, [role="tab"], [data-slot="card"], tr {
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
      color 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1), transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  button:not(:disabled):active, a[href]:active, [role="tab"]:active { transform: scale(0.98); }
  main [data-slot="card"]:hover { border-color: color-mix(in srgb, var(--foreground) 22%, var(--border)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* table cells with a max width wrap instead of running over the next column (as on heavenprem) */
td[class*="max-w-"]:not(.truncate):not([class*="max-w-0"]) { white-space: normal; overflow-wrap: anywhere; }

/* ---- review ASTA 2026-11-11 (heavenprem admin-kit) ---- */
/* 1. content padding 24px */
main { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
/* 2. content card titles: 16px / 600 / card text colour */
main [data-slot="card-title"] { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--card-foreground) !important; }
/* 3. number cards: label 14px/500 (not dimmed), number 24px/600 -0.01em tabular */
main [data-slot="card-header"]:has(> svg) > [data-slot="card-title"] { font-size: .875rem; font-weight: 500; color: var(--card-foreground) !important; }
main [data-slot="card-header"]:has(> svg) + [data-slot="card-content"] > .text-2xl { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
/* 4. card icons are muted; yellow is only for main buttons, links and codes */
main [data-slot="card-header"] > svg { color: var(--muted-foreground) !important; }
/* 5. table head + cells */
[data-slot="table-head"] {
  height: 40px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 30%, var(--card)); border-bottom: 1px solid var(--border);
}
[data-slot="table-cell"] { padding: 12px 12px; }
/* first/last column keep the 16px edge like heavenprem */
[data-slot="table-row"] > :first-child { padding-left: 16px; }
[data-slot="table-row"] > :last-child { padding-right: 16px; }
[data-slot="table-header"] [data-slot="table-row"]:hover { background: transparent; }
/* 6. plain numbers in tables are normal text, not yellow */
main td.text-primary { color: var(--foreground) !important; }
/* 7. header search: on the right, 240x36, card background, "Cari menu…" + "Ctrl K" */
header [data-slot="button"][aria-keyshortcuts] {
  margin-inline-end: 0 !important; margin-left: auto !important; width: 240px !important; height: 36px !important;
  background: var(--card) !important; border: 1px solid var(--input) !important; border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.05) !important; color: var(--muted-foreground) !important;
}
header [data-slot="button"][aria-keyshortcuts] > span { font-size: 0; margin-inline-start: 1.5rem; }
header [data-slot="button"][aria-keyshortcuts] > span::after { content: "Cari menu…"; font-size: .875rem; }
header [data-slot="button"][aria-keyshortcuts] > kbd { font-size: 0 !important; background: var(--muted) !important; }
header [data-slot="button"][aria-keyshortcuts] > kbd > span { font-size: 0 !important; }
header [data-slot="button"][aria-keyshortcuts] > kbd::after { content: "Ctrl K"; font-size: 11px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
/* 8. avatar: 36px circle, hairline, card background, logo inside */
header button:has(> [data-slot="avatar"]) { width: 36px !important; height: 36px !important; padding: 0 !important; }
header [data-slot="avatar"] { width: 36px !important; height: 36px !important; border: 1px solid var(--border); background: var(--card); }
header [data-slot="avatar-fallback"] { font-size: 0 !important; background: var(--card) url(/images/logo.png) center / 20px no-repeat !important; }
/* ASTA review 2: content cards as wide as the content area (heavenprem has no narrow column); header separator
   without a breadcrumb next to it is hidden. */
main .max-w-3xl, main .max-w-2xl { max-width: none !important; }
header > div > [data-slot="separator"] { display: none; }
