/* LKlas License Hub — tema enterprise mirip SI-PINTAR (light + biru) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --grad-from: #082A66;
  --grad-via: #0A3275;
  --grad-to: #0D3E8F;
  --bg: #F4F8FF;
  --card: #ffffff;
  --line: #E7EEF8;
  --text: #0F172A;
  --muted: #64748B;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --ok: #16A34A;
  --warn: #CA8A04;
  --err: #DC2626;
  --sidebar-w: 280px;
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --shadow: 0 10px 30px rgba(8, 42, 102, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

/* Scrollbar tipis — sidebar & area konten */
.sip-scroll,
.sidebar-nav,
.content,
.sip-table-wrap,
.sip-modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
.sip-scroll::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.content::-webkit-scrollbar,
.sip-table-wrap::-webkit-scrollbar,
.sip-modal-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.sip-scroll::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.sip-table-wrap::-webkit-scrollbar-track,
.sip-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.sip-scroll::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.sip-table-wrap::-webkit-scrollbar-thumb,
.sip-modal-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}
.sip-scroll::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover,
.content::-webkit-scrollbar-thumb:hover,
.sip-table-wrap::-webkit-scrollbar-thumb:hover,
.sip-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}
/* Sidebar: thumb terang di atas biru gelap */
.sidebar-nav {
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* ===== App shell (logged in) ===== */
.app {
  min-height: 100vh;
  padding-left: var(--sidebar-w);
}
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--grad-from) 0%, var(--grad-via) 45%, var(--grad-to) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-shadow: 8px 0 32px rgba(8, 42, 102, 0.18);
  overflow: hidden;
}
.sidebar-brand {
  padding: 1.25rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.sidebar-brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin: 0 0 .45rem;
}
.sidebar-brand-logo.is-mark {
  height: 42px;
  width: 42px;
}
.sidebar-brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.sidebar-brand-sub {
  margin-top: 2px;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
}
.sidebar-profile {
  margin-top: .9rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  padding: .65rem .7rem;
  border-radius: .9rem;
  background: rgba(255,255,255,.1);
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.sidebar-profile-name { font-weight: 600; font-size: .9rem; }
.sidebar-profile-role { font-size: .72rem; color: rgba(255,255,255,.7); }

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem .85rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.nav-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin: .85rem .55rem .4rem;
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border-radius: .85rem;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: .25rem;
  transition: background .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active {
  background: #fff;
  color: var(--grad-from);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.nav-ico {
  width: 1.35rem;
  text-align: center;
  opacity: .95;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-ico i { font-size: .95rem; }
.sidebar-foot {
  padding: .85rem 1rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.sidebar-foot .btn {
  width: 100%;
  justify-content: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.sidebar-foot .btn:hover { background: rgba(255,255,255,.22); color: #fff; }

.main-col { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.topbar-meta { color: var(--muted); font-size: .85rem; }
.content {
  padding: 1.25rem 1.5rem 2.5rem;
  max-width: 1180px;
}
.foot {
  margin: 0 1.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  max-width: 1180px;
}

/* ===== Auth login / register ===== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(37,99,235,.2), transparent 55%),
    radial-gradient(700px 360px at 90% 10%, rgba(8,42,102,.14), transparent 50%),
    linear-gradient(180deg, #EEF4FF 0%, var(--bg) 40%, #F8FAFC 100%);
}
.auth-wrap {
  width: 100%;
  max-width: 420px;
}
.auth-brand-block {
  text-align: center;
  margin-bottom: 1.15rem;
}
.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto .7rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-from), var(--blue));
  box-shadow: 0 12px 28px rgba(8, 42, 102, 0.28);
}
.auth-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto .75rem;
}
.auth-logo-img.is-mark {
  height: 56px;
  width: 56px;
}
.mobile-bar__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.auth-brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--grad-from);
  letter-spacing: -.02em;
}
.auth-brand-sub {
  margin-top: .2rem;
  font-size: .86rem;
  color: var(--muted);
}
.auth-main { width: 100%; }
.auth-box {
  max-width: none;
  margin: 0;
}
.auth-box h1 {
  text-align: center;
  margin-bottom: .35rem;
}
.auth-box > .muted {
  text-align: center;
  margin-bottom: .35rem;
}
.auth-foot {
  text-align: center;
  margin: 1rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}

/* ===== Components ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
h1, h2, h3 { margin: 0 0 .75rem; color: var(--text); }
h1 { font-size: 1.35rem; font-weight: 800; }
h2 { font-size: 1.05rem; font-weight: 700; }
.muted { color: var(--muted); }
.grid { display: grid; gap: .9rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--grad-from);
  letter-spacing: -.03em;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin: .7rem 0 .3rem;
}
input, select, textarea {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2563eb;
}
label.check-row,
label.order-create-check,
label.cv-order-check {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
label.check-row input[type="checkbox"],
label.order-create-check input[type="checkbox"],
label.cv-order-check input[type="checkbox"] {
  width: auto !important;
  margin-top: 0 !important;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
textarea { min-height: 80px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #CBD5E1;
}
.btn.ghost:hover { background: #F8FAFC; color: var(--text); }
.btn.ok { background: var(--ok); }
.btn.warn { background: var(--warn); color: #111; }
.btn.err { background: var(--err); }
.btn.sm { padding: .4rem .7rem; font-size: .8rem; border-radius: .7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td {
  text-align: left;
  padding: .75rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #F8FAFC;
}
tr:hover td { background: #F8FBFF; }

.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #E2E8F0;
  color: #334155;
}
.badge.paid, .badge.active {
  background: #DCFCE7;
  color: #166534;
}
.badge.unpaid, .badge.expired {
  background: #FEE2E2;
  color: #991B1B;
}
.badge.pending {
  background: #FEF9C3;
  color: #854D0E;
}

.flash {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  font-size: .92rem;
  font-weight: 500;
}
.flash.ok, .flash.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.flash.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.keybox {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .78rem;
  word-break: break-all;
  background: #F8FAFC;
  border: 1px solid var(--line);
  padding: .75rem;
  border-radius: var(--radius-sm);
  color: #334155;
}
.stack > * + * { margin-top: .65rem; }

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  color: #fff;
  padding: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.mobile-bar strong { font-weight: 800; }
.menu-toggle {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: .7rem;
  padding: .4rem .7rem;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 900px) {
  .app { padding-left: 0; }
  .sidebar {
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-bar { display: flex; }
  .content, .foot { margin-left: 1rem; margin-right: 1rem; padding-left: 0; padding-right: 0; }
  .topbar { padding-left: 1rem; padding-right: 1rem; }
}

/* ===== Sipintar-like: page head, KPI, card, modal, aksi, toast ===== */
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}
.admin-page-head h1 { margin: 0 0 .25rem; font-size: 1.35rem; font-weight: 800; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.admin-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.sip-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  line-height: 1.2;
  background: var(--blue);
  color: #fff;
}
.sip-btn:hover { background: var(--blue-hover); color: #fff; }
.sip-btn-primary { background: var(--blue); color: #fff; }
.sip-btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #CBD5E1;
}
.sip-btn-ghost:hover { background: #F8FAFC; color: var(--text); }
.sip-btn-danger { background: var(--err); color: #fff; }
.sip-btn-ok { background: var(--ok); color: #fff; }
.sip-btn-sm { padding: .4rem .7rem; font-size: .8rem; }

.sip-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}
.sip-kpi {
  display: flex;
  gap: .85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sip-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(8, 42, 102, 0.12);
  color: inherit;
}
.sip-kpi-icon {
  width: 46px; height: 46px;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sip-kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.sip-kpi-value { font-size: 1.55rem; font-weight: 800; color: var(--grad-from); letter-spacing: -.03em; line-height: 1.15; }
.sip-kpi-link { font-size: .78rem; color: var(--blue); font-weight: 600; margin-top: .15rem; }
.sip-kpi.c-blue .sip-kpi-icon { background: #DBEAFE; color: #1D4ED8; }
.sip-kpi.c-amber .sip-kpi-icon { background: #FEF3C7; color: #B45309; }
.sip-kpi.c-red .sip-kpi-icon { background: #FEE2E2; color: #B91C1C; }
.sip-kpi.c-green .sip-kpi-icon { background: #DCFCE7; color: #15803D; }
.sip-kpi.c-violet .sip-kpi-icon { background: #EDE9FE; color: #6D28D9; }
.sip-kpi.c-sky .sip-kpi-icon { background: #E0F2FE; color: #0369A1; }

.sip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.sip-card-head h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.sip-card-body { padding: 1rem 1.15rem; }
.sip-card-link { font-size: .85rem; font-weight: 600; }

.sip-table-wrap { width: 100%; overflow-x: auto; }
.sip-plain-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sip-plain-table th, .sip-plain-table td {
  text-align: left;
  padding: .75rem .65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sip-plain-table th {
  background: #F8FAFC;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.sip-plain-table tr:hover td { background: #F8FBFF; }

.sip-aksi-btn {
  border: 1px solid #CBD5E1;
  background: #fff;
  color: var(--text);
  border-radius: .65rem;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-right: .25rem;
}
.sip-aksi-edit { border-color: #93C5FD; color: #1D4ED8; background: #EFF6FF; }
.sip-aksi-del { border-color: #FECACA; color: #B91C1C; background: #FEF2F2; }
.sip-aksi-ok { border-color: #86EFAC; color: #166534; background: #F0FDF4; }

.sip-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sip-modal.open { display: flex; }
.sip-modal-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8, 42, 102, .28);
  overflow: hidden;
}
.sip-modal-box.wide { max-width: 720px; }
.sip-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.sip-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.sip-modal-body { padding: 1rem 1.1rem; max-height: 70vh; overflow-y: auto; }
.sip-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #F8FAFC;
}

#sipToast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  min-width: 240px;
  max-width: 380px;
  padding: .85rem 1rem;
  border-radius: .85rem;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: none;
}
#sipToast.show { display: block; }
#sipToast.ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
#sipToast.err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  font-weight: 700;
  transition: transform .12s ease;
}
.menu-tile:hover { transform: translateY(-2px); color: inherit; }
.menu-tile i {
  width: 40px; height: 40px;
  border-radius: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: #DBEAFE; color: #1D4ED8;
}
.menu-tile span { font-size: .78rem; font-weight: 500; color: var(--muted); }

/* ===== Sipintar-like: page head, KPI, modal, aksi ===== */
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}
.admin-page-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.admin-page-head p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.admin-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.sip-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  line-height: 1.2;
  background: var(--blue);
  color: #fff;
}
.sip-btn:hover { background: var(--blue-hover); color: #fff; }
.sip-btn-primary { background: var(--blue); color: #fff; }
.sip-btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #CBD5E1;
}
.sip-btn-ghost:hover { background: #F8FAFC; color: var(--text); }
.sip-btn-danger { background: var(--err); color: #fff; }
.sip-btn-ok { background: var(--ok); color: #fff; }
.sip-btn-sm { padding: .4rem .7rem; font-size: .8rem; }

.sip-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}
.sip-kpi {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sip-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(8, 42, 102, 0.12);
  color: inherit;
}
.sip-kpi-icon {
  width: 44px; height: 44px;
  border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: #EFF6FF;
  color: var(--blue);
  flex-shrink: 0;
}
.sip-kpi.c-blue .sip-kpi-icon { background: #DBEAFE; color: #1D4ED8; }
.sip-kpi.c-amber .sip-kpi-icon { background: #FEF3C7; color: #B45309; }
.sip-kpi.c-red .sip-kpi-icon { background: #FEE2E2; color: #B91C1C; }
.sip-kpi.c-green .sip-kpi-icon { background: #DCFCE7; color: #15803D; }
.sip-kpi.c-violet .sip-kpi-icon { background: #EDE9FE; color: #6D28D9; }
.sip-kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.sip-kpi-value { font-size: 1.55rem; font-weight: 800; color: var(--grad-from); letter-spacing: -.03em; line-height: 1.15; margin: .15rem 0; }
.sip-kpi-link { font-size: .78rem; color: var(--blue); font-weight: 600; }

.sip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.sip-card-head h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.sip-card-body { padding: 1rem 1.15rem; }
.sip-card-link { font-size: .85rem; font-weight: 600; }

.sip-table-wrap { width: 100%; overflow-x: auto; }
.sip-plain-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sip-plain-table th, .sip-plain-table td {
  text-align: left;
  padding: .75rem .65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sip-plain-table th {
  background: #F8FAFC;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.sip-plain-table tr:hover td { background: #F8FBFF; }

.sip-aksi-btn {
  border: 1px solid #CBD5E1;
  background: #fff;
  color: var(--text);
  border-radius: .65rem;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-right: .25rem;
}
.sip-aksi-edit { color: #1D4ED8; border-color: #BFDBFE; background: #EFF6FF; }
.sip-aksi-del { color: #B91C1C; border-color: #FECACA; background: #FEF2F2; }
.sip-aksi-ok { color: #166534; border-color: #BBF7D0; background: #F0FDF4; }

.sip-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sip-modal.open { display: flex; }
.sip-modal-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8, 42, 102, .25);
  max-height: 92vh;
  overflow: auto;
}
.sip-modal-box.wide { max-width: 720px; }
.sip-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.sip-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.sip-modal-body { padding: 1rem 1.15rem; }
.sip-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .9rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #F8FAFC;
}

#sipToastHost {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 360px;
}
.sip-toast {
  padding: .8rem 1rem;
  border-radius: .85rem;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .15);
  border: 1px solid transparent;
  background: #fff;
}
.sip-toast.ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.sip-toast.err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* Filter + pager */
.sip-filter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.sip-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.sip-filter-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 140px;
}
.sip-filter-field.grow { flex: 1 1 220px; min-width: 200px; }
.sip-filter-field label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sip-filter-field input,
.sip-filter-field select {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  font: inherit;
  background: #fff;
}
.sip-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding-bottom: 1px;
}
.sip-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
}
.sip-pager-meta { color: var(--muted); font-size: .85rem; }
.sip-pager-nav { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sip-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .55rem;
  border-radius: .5rem;
  border: 1px solid #CBD5E1;
  background: #fff;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
a.sip-pager-btn:hover { background: #F1F5F9; border-color: #94A3B8; }
.sip-pager-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.sip-pager-btn.disabled { opacity: .4; cursor: default; }
.sip-pager-ellipsis { color: var(--muted); padding: 0 .2rem; }

/* Order detail */
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}
.order-note-banner {
  padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  background: #F8FAFC;
}
.order-pay-form {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
}
.order-pay-form label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.order-pay-form input[type="text"] {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
  font: inherit;
  background: #fff;
}
.order-pay-form .sip-btn { margin-top: .35rem; justify-content: center; }
.order-pay-form--row { margin-top: 0; }
.order-pay-divider {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  margin: .9rem 0;
  position: relative;
}
.order-pay-divider::before,
.order-pay-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line);
}
.order-pay-divider::before { left: 0; }
.order-pay-divider::after { right: 0; }
.order-pay-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.order-pay-actions form { margin: 0; }
.order-pay-actions .sip-btn { width: 100%; justify-content: center; }
.order-lic-block {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.order-lic-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.order-lic-block .keybox { margin: .55rem 0 .65rem; }
.order-api-list { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .order-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Sipintar-like: page head, KPI, modal, aksi, toast ===== */
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}
.admin-page-head h1 { margin: 0 0 .25rem; font-size: 1.35rem; font-weight: 800; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.admin-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.sip-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 0; border-radius: var(--radius-sm);
  padding: .65rem 1rem; cursor: pointer;
  font-weight: 600; font-size: .9rem; font-family: inherit; line-height: 1.2;
}
.sip-btn-primary { background: var(--blue); color: #fff; }
.sip-btn-primary:hover { background: var(--blue-hover); color: #fff; }
.sip-btn-ghost { background: #fff; color: var(--text); border: 1px solid #CBD5E1; }
.sip-btn-ghost:hover { background: #F8FAFC; }
.sip-btn-danger { background: var(--err); color: #fff; }
.sip-btn-sm { padding: .4rem .7rem; font-size: .8rem; }

.sip-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}
.sip-kpi {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sip-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(8, 42, 102, 0.12);
  color: inherit;
}
.sip-kpi-icon {
  width: 44px; height: 44px; border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.sip-kpi-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sip-kpi-value { font-size: 1.65rem; font-weight: 800; color: var(--grad-from); letter-spacing: -.03em; line-height: 1.15; margin: .15rem 0; }
.sip-kpi-link { font-size: .8rem; font-weight: 600; color: var(--blue); }
.sip-kpi.c-blue .sip-kpi-icon { background: #DBEAFE; color: #1D4ED8; }
.sip-kpi.c-amber .sip-kpi-icon { background: #FEF3C7; color: #B45309; }
.sip-kpi.c-red .sip-kpi-icon { background: #FEE2E2; color: #B91C1C; }
.sip-kpi.c-green .sip-kpi-icon { background: #DCFCE7; color: #15803D; }
.sip-kpi.c-violet .sip-kpi-icon { background: #EDE9FE; color: #6D28D9; }
.sip-kpi.c-sky .sip-kpi-icon { background: #E0F2FE; color: #0369A1; }

.sip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sip-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.sip-card-head h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.sip-card-body { padding: 1rem 1.15rem; }
.sip-card-link { font-size: .85rem; font-weight: 600; }

.sip-table-wrap { width: 100%; overflow-x: auto; }
.sip-plain-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sip-plain-table th, .sip-plain-table td {
  text-align: left; padding: .75rem .65rem;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
.sip-plain-table th {
  color: var(--muted); font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .04em; background: #F8FAFC;
}
.sip-plain-table tr:hover td { background: #F8FBFF; }

.sip-aksi-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid #CBD5E1; background: #fff; color: #334155;
  border-radius: .65rem; padding: .35rem .6rem;
  font-size: .78rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.sip-aksi-btn:hover { background: #F8FAFC; }
.sip-aksi-edit { border-color: #BFDBFE; color: #1D4ED8; background: #EFF6FF; }
.sip-aksi-del { border-color: #FECACA; color: #B91C1C; background: #FEF2F2; }
.sip-aksi-ok { border-color: #BBF7D0; color: #15803D; background: #F0FDF4; }

.sip-modal {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .45);
  align-items: center; justify-content: center; padding: 1rem;
}
.sip-modal.open { display: flex; }
.sip-modal-box {
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8, 42, 102, 0.28);
}
.sip-modal-box.wide { max-width: 720px; }
.sip-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--line);
}
.sip-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.sip-modal-body { padding: 1rem 1.15rem; }
.sip-modal-foot {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: .9rem 1.15rem; border-top: 1px solid var(--line); background: #F8FAFC;
}
.sip-modal-body label:not(.check-row):not(.sip-att-item):not(.sip-menu-settings__item):not(.cv-order-check):not(.order-create-check) {
  display: block;
  margin: .65rem 0 .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.sip-modal-body input:not([type="checkbox"]):not([type="radio"]),
.sip-modal-body select,
.sip-modal-body textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: .25rem;
}
.sip-modal-body label.check-row {
  margin: .75rem 0 0;
  color: var(--text);
}
.sip-modal-body .sip-att-item input[type="checkbox"],
.sip-modal-body .sip-menu-settings__item input[type="checkbox"] {
  width: auto !important;
  margin-top: 0 !important;
}

#sipToast {
  position: fixed; right: 1rem; top: 1rem; z-index: 100;
  min-width: 240px; max-width: 360px;
  padding: .85rem 1rem; border-radius: .85rem;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
  display: none;
}
#sipToast.show { display: block; }
#sipToast.ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
#sipToast.err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.form-row { margin-bottom: .55rem; }
.form-row label { margin-top: 0; }

/* ---- Hub v2: katalog, rilis, cek lisensi ---- */
.catalog-hero {
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(800px 280px at 0% 0%, rgba(37,99,235,.18), transparent 55%),
    linear-gradient(135deg, #0B2A6B 0%, #1D4ED8 55%, #2563EB 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.catalog-hero__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin-bottom: .65rem;
}
.catalog-hero h2 { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 800; }
.catalog-hero p { margin: 0; opacity: .9; font-size: .9rem; max-width: 42rem; }

.sip-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1rem;
}
.sip-form-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; }
.sip-form-grid input, .sip-form-grid textarea, .sip-form-grid select {
  font: inherit; font-weight: 500; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .75rem;
}
.sip-form-grid .full { grid-column: 1 / -1; }
.sip-form-grid .check-row {
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  display: inline-flex !important;
  width: auto;
  color: var(--text);
}
.sip-form-grid .check-row input[type="checkbox"] {
  width: auto !important;
  margin-top: 0 !important;
}
@media (max-width: 720px) { .sip-form-grid { grid-template-columns: 1fr; } }

.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #94A3B8; margin-right: .35rem; vertical-align: middle;
}
.online-dot.is-on { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }

/* Card dengan toolbar: padding 0 agar tabel edge-to-edge; toolbar yang bawa padding */
.sip-card:has(.sip-card-toolbar) {
  overflow: hidden;
}
.sip-card-body:has(> .sip-card-toolbar) {
  padding: 0 !important;
}
.sip-card-toolbar {
  padding: 1rem 1.15rem .95rem;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.sip-card-toolbar .sip-stats-line {
  margin: 0 0 .85rem;
  font-size: .875rem;
  color: #64748b;
  line-height: 1.45;
}
.sip-card-toolbar .sip-stats-line strong {
  color: #0f172a;
  font-weight: 700;
}
.sip-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem .85rem;
  align-items: flex-end;
}
.sip-filter-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 140px;
}
.sip-filter-field.grow {
  flex: 1 1 220px;
  min-width: 200px;
}
.sip-filter-field > label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.sip-filter-field input[type="search"],
.sip-filter-field input[type="text"],
.sip-filter-field select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  padding: .55rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: .7rem;
  background: #fff;
  color: #0f172a;
}
.sip-filter-field input:focus,
.sip-filter-field select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.sip-filter-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 .85rem;
  border: 1px solid #cbd5e1;
  border-radius: .7rem;
  background: #fff;
  font-size: .85rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #334155 !important;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.sip-filter-check input {
  width: auto !important;
  min-height: 0 !important;
  margin: 0;
  accent-color: #2563eb;
}
.sip-filter-actions {
  display: flex;
  align-items: stretch;
  gap: .45rem;
  padding-bottom: 0;
}
.sip-filter-actions .sip-btn,
.sip-filter-field > .sip-btn {
  min-height: 42px;
  padding: .55rem 1.1rem;
  box-sizing: border-box;
}
.sip-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sip-plain-table,
.sip-card table,
table.sip-plain-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0;
  font-size: .875rem;
  line-height: 1.45;
  color: #334155;
}
.sip-plain-table thead th,
.sip-card table thead th {
  padding: .85rem 1.15rem !important;
  text-align: left;
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 0 !important;
  white-space: nowrap;
  vertical-align: middle;
}
.sip-plain-table tbody td,
.sip-card table tbody td {
  padding: 1rem 1.15rem !important;
  font-size: .875rem;
  color: #334155;
  border-top: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
}
.sip-plain-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}
.sip-plain-table tbody tr:hover td {
  background: #f1f5f9 !important;
}
.sip-plain-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
.sip-plain-table td strong {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
}
.sip-plain-table td .muted,
.sip-plain-table .muted {
  margin-top: .2rem;
  line-height: 1.35;
  font-size: .78rem !important;
  color: #94a3b8 !important;
}
.sip-plain-table td.muted {
  color: #64748b !important;
  font-size: .82rem !important;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  background: #e2e8f0;
  color: #334155;
}
.badge.paid, .badge.active {
  background: #ecfdf5;
  color: #047857;
}
.badge.unpaid, .badge.expired {
  background: #fef2f2;
  color: #b91c1c;
}
.badge.pending {
  background: #fffbeb;
  color: #b45309;
}

.sip-aksi-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: .75rem;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  margin: 0 .2rem .2rem 0;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sip-aksi-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.sip-aksi-edit {
  border-color: color-mix(in srgb, #2563eb 28%, #e2e8f0);
  color: #1d4ed8;
  background: #eff6ff;
}
.sip-aksi-edit:hover {
  background: #dbeafe;
}
.sip-aksi-del {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}
.sip-aksi-ok {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}
.sip-td-aksi {
  white-space: nowrap;
  width: 1%;
}
.sip-inline-form {
  display: inline;
  margin: 0;
}
.sip-plain-table tbody tr.is-banned td {
  background: #fef2f2 !important;
}
.sip-plain-table tbody tr.is-warn td {
  background: #fff7ed !important;
}

.sip-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .9rem 1.15rem 1.05rem;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.sip-pager-meta {
  color: #64748b;
  font-size: .82rem;
  font-weight: 500;
}
.sip-pager-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.sip-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 .65rem;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  background: #fff;
  color: #334155;
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none !important;
  line-height: 1;
}
a.sip-pager-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.sip-pager-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .25);
}
.sip-pager-btn.disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 720px) {
  .sip-plain-table thead th,
  .sip-plain-table tbody td {
    padding: .8rem .85rem !important;
  }
  .sip-pager {
    padding: .85rem 1rem;
  }
}

/* Dashboard penjualan */
.sip-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 .65rem;
}
.sip-sales-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 960px) {
  .sip-sales-grid { grid-template-columns: 1fr; }
}
.sip-bars { display: flex; flex-direction: column; gap: .7rem; }
.sip-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr minmax(96px, auto);
  gap: .55rem;
  align-items: center;
}
.sip-bar-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
}
.sip-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #E8EEF7;
  overflow: hidden;
}
.sip-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grad-from), var(--blue));
  min-width: 2px;
}
.sip-bar-meta {
  text-align: right;
  font-size: .78rem;
  line-height: 1.25;
}
.sip-bar-meta strong { display: block; font-size: .82rem; color: var(--grad-from); }
@media (max-width: 560px) {
  .sip-bar-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .sip-bar-meta { text-align: left; }
}

/* Lampiran konten admin (berita / tutorial / FAQ) */
.sip-att-list {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sip-att-list__hint {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
}
.sip-att-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.82rem;
  cursor: pointer;
}
.sip-att-item input[type="checkbox"] { flex-shrink: 0; width: auto !important; }
.sip-att-item__icon {
  width: 1.25rem;
  text-align: center;
  color: #64748b;
}
.sip-att-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #334155;
}
.sip-att-item__size { flex-shrink: 0; font-size: 0.75rem; }

/* Pengaturan menu admin */
.sip-menu-settings__section { margin-bottom: 1.35rem; }
.sip-menu-settings__section h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}
.sip-menu-settings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.55rem;
}
.sip-menu-settings__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.sip-menu-settings__item:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.sip-menu-settings__item.is-locked { background: #f8fafc; cursor: default; }
.sip-menu-settings__item input[type="checkbox"] { flex-shrink: 0; width: auto !important; accent-color: #2563eb; }
.sip-menu-settings__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.sip-menu-settings__label {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}
.sip-menu-settings__lock { font-size: 0.72rem; }
.sip-menu-settings__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.sip-perm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 280px;
}
.sip-perm-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.sip-admin-perms__hint { margin: 0 0 0.55rem; font-size: 0.82rem; }

/* Summernote WYSIWYG (Berita / FAQ / Tutorial) */
.sip-modal .note-editor {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.35rem;
}
.sip-modal .note-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.sip-modal .note-editable {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 200px;
}
.note-modal,
.note-popover {
  z-index: 13050 !important;
}
.note-dropdown-menu {
  z-index: 13051 !important;
}


