@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --bk-ink: #0b1f33;
  --bk-ink-soft: #1a3350;
  --bk-slate: #334155;
  --bk-muted: #64748b;
  --bk-line: rgba(15, 39, 68, 0.1);
  --bk-surface: #ffffff;
  --bk-surface-2: #f4f7fb;
  --bk-accent: #0f766e;
  --bk-accent-2: #0d9488;
  --bk-accent-soft: rgba(13, 148, 136, 0.12);
  --bk-danger: #dc2626;
  --bk-warn: #d97706;
  --bk-radius: 14px;
  --bk-radius-sm: 10px;
  --bk-shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --bk-shadow-sm: 0 4px 14px rgba(15, 39, 68, 0.06);
  --bk-sidebar: 286px;
  --bk-header: 64px;
  --bk-font: 'Plus Jakarta Sans', sans-serif;
  --bk-display: 'Sora', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bk-font) !important;
  color: var(--bk-ink);
  -webkit-font-smoothing: antialiased;
}

body.bk-app,
body[data-sa-theme],
[data-sa-theme] {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 148, 136, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(37, 99, 235, 0.1), transparent 50%),
    linear-gradient(160deg, #eef3f8 0%, #f7fafc 45%, #e8eef5 100%) !important;
  background-attachment: fixed !important;
  background-image: none !important;
  min-height: 100vh;
}

body::before {
  content: none !important;
}

/* ========== LOGIN ========== */
.bk-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  font-family: var(--bk-font);
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(13, 148, 136, 0.22), transparent 60%),
    radial-gradient(700px 420px at 90% 80%, rgba(14, 116, 144, 0.18), transparent 55%),
    linear-gradient(145deg, #0b1f33 0%, #12324a 48%, #0f2744 100%);
}

.bk-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  pointer-events: none;
}

.bk-login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 36px 32px 28px;
  position: relative;
  z-index: 1;
  animation: bk-rise 0.55s ease both;
}

.bk-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.bk-login-brand img {
  width: min(180px, 55vw);
  height: auto;
  margin-bottom: 14px;
}

.bk-login-brand h1 {
  margin: 0;
  font-family: var(--bk-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--bk-ink);
  letter-spacing: -0.02em;
}

.bk-login-brand p {
  margin: 8px 0 0;
  color: var(--bk-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bk-field {
  margin-bottom: 16px;
}

.bk-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bk-slate);
}

.bk-field input {
  width: 100%;
  border: 1px solid #d7e0ea;
  background: #f8fafc;
  border-radius: 12px;
  padding: 13px 14px;
  font: 500 0.95rem var(--bk-font);
  color: var(--bk-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.bk-field input:focus {
  border-color: var(--bk-accent-2);
  background: #fff;
  box-shadow: 0 0 0 4px var(--bk-accent-soft);
}

.bk-login-btn {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: 700 0.95rem var(--bk-font);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0f766e, #0ea5a0);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.bk-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.4);
}

.bk-login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--bk-muted);
}

.bk-splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0b1f33, #12324a);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.bk-splash img {
  width: min(320px, 70vw);
  animation: bk-pulse 1.4s ease-in-out infinite;
}

.bk-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes bk-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bk-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.85; }
}

/* ========== APP SHELL ========== */
.main {
  min-height: 100vh;
}

.page-loader {
  background: rgba(238, 243, 248, 0.88) !important;
}

.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bk-header) !important;
  z-index: 100;
  display: flex !important;
  align-items: center;
  gap: 18px;
  padding: 0 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08) !important;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.04) !important;
}

.bk-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bk-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
}

.bk-logo img {
  height: 34px !important;
  width: auto;
  display: block;
}

.bk-module-chip {
  display: none;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bk-accent-soft);
  color: var(--bk-accent);
  font-family: var(--bk-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.navigation-trigger {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--bk-ink) !important;
  background: var(--bk-surface-2);
  border: 1px solid var(--bk-line);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.navigation-trigger i {
  font-size: 1.25rem;
}

.navigation-trigger:hover,
.navigation-trigger.toggled {
  background: var(--bk-accent-soft);
  color: var(--bk-accent) !important;
  border-color: rgba(13, 148, 136, 0.25);
}

.bk-header-search,
.header .search {
  flex: 1;
  max-width: 460px;
  margin: 0 !important;
}

.header .search__inner {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #f4f7fb !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  overflow: hidden;
  height: 40px;
  padding: 0 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header .search__inner:focus-within {
  background: #fff !important;
  border-color: rgba(13, 148, 136, 0.4) !important;
  box-shadow: 0 0 0 4px var(--bk-accent-soft);
}

.header .search__helper {
  position: static !important;
  color: var(--bk-muted) !important;
  font-size: 1rem !important;
  flex-shrink: 0;
}

.header .search__text {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bk-ink) !important;
  font-family: var(--bk-font) !important;
  font-size: 0.9rem !important;
  padding: 0 !important;
  height: 100% !important;
}

.header .search__text::placeholder {
  color: var(--bk-muted) !important;
}

.header .search__reset {
  display: none !important;
}

.bk-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header .top-nav {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header .top-nav > li > a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--bk-slate) !important;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header .top-nav > li > a:hover {
  background: var(--bk-surface-2);
  border-color: var(--bk-line);
  color: var(--bk-accent) !important;
}

.header .top-nav > li > a.bk-logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626 !important;
}

.header .clock {
  margin: 0 !important;
  padding: 0 12px !important;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  border-radius: 11px;
  background: #f4f7fb !important;
  border: 1px solid transparent;
  box-shadow: none !important;
}

.header .time {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent !important;
}

.header .time,
.header .time__hours,
.header .time__min,
.header .time__sec {
  color: var(--bk-ink) !important;
  font-family: var(--bk-display) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  background: transparent !important;
}

.header .dropdown-menu {
  border: 1px solid var(--bk-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--bk-shadow) !important;
  padding: 6px !important;
  background: #fff !important;
  margin-top: 8px !important;
}

.header .dropdown-item {
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--bk-ink) !important;
  padding: 8px 12px !important;
}

.header .dropdown-item:hover {
  background: var(--bk-accent-soft) !important;
  color: var(--bk-accent) !important;
}

/* Theme panel removed */
.themes,
.top-nav__themes {
  display: none !important;
}

.header .logo,
.bk-brand-text {
  display: none !important;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed !important;
  top: var(--bk-header) !important;
  left: 0 !important;
  width: var(--bk-sidebar) !important;
  height: calc(100vh - var(--bk-header)) !important;
  z-index: 101;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, #071525 0%, #0b1f33 38%, #0f2a40 72%, #0c2236 100%) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 12px 0 40px rgba(4, 12, 24, 0.35);
  backdrop-filter: saturate(1.1);
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 260px at -10% -5%, rgba(20, 184, 166, 0.22), transparent 58%),
    radial-gradient(420px 280px at 110% 95%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
  opacity: 1;
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 12px 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.25), transparent);
  opacity: 0.55;
}

.bk-sidebar-brand {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 14px 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.bk-sidebar-brand__mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bk-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #042f2e;
  background: linear-gradient(145deg, #5eead4 0%, #14b8a6 55%, #0d9488 100%);
  box-shadow:
    0 8px 18px rgba(13, 148, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bk-sidebar-brand__text {
  min-width: 0;
}

.bk-sidebar-brand__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(153, 246, 228, 0.78);
}

.bk-sidebar-brand__label::before {
  content: none;
}

.bk-sidebar-brand strong {
  display: block;
  font-family: var(--bk-display);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f8fafc;
}

.sidebar .scrollbar,
.sidebar .os-content {
  position: relative;
  z-index: 1;
  flex: 1;
  height: auto !important;
  min-height: 0;
  padding: 10px 12px 24px !important;
}

.sidebar .navigation {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .navigation > h5 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 8px 8px;
  padding: 0;
  font-family: var(--bk-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78) !important;
}

.sidebar .navigation > h5::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), transparent);
}

.sidebar .navigation > h5:first-child {
  margin-top: 4px;
}

.sidebar .navigation > li {
  margin: 2px 0;
}

.sidebar .navigation > li > a,
.sidebar .navigation__sub > a,
.sidebar .navigation ul li a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 12px !important;
  border-radius: 14px !important;
  color: rgba(226, 232, 240, 0.9) !important;
  text-decoration: none !important;
  font-family: var(--bk-font) !important;
  font-size: 0.98rem !important;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.35;
  background: transparent !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .navigation > li > a::before,
.sidebar .navigation__sub > a::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eead4, #0d9488);
  transform: translateY(-50%);
  opacity: 0;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.sidebar .navigation > li > a > span:first-of-type,
.sidebar .navigation ul li a > span:first-of-type {
  flex: 1;
  min-width: 0;
}

.sidebar .navigation > li > a:hover,
.sidebar .navigation__sub > a:hover,
.sidebar .navigation ul li a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  transform: translateX(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.sidebar .navigation > li > a:hover::before,
.sidebar .navigation__sub > a:hover::before,
.sidebar .navigation__sub--toggled > a::before {
  height: 20px;
  opacity: 1;
}

.sidebar .navigation__sub--toggled > a {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.22), rgba(15, 118, 110, 0.1)) !important;
  border-color: rgba(94, 234, 212, 0.18);
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(94, 234, 212, 0.08),
    0 10px 22px rgba(13, 148, 136, 0.12);
}

.sidebar .navigation > li > a i:first-child,
.sidebar .navigation__sub > a i:first-child,
.sidebar .navigation ul li a i:first-child {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.05rem !important;
  margin-right: 0 !important;
  opacity: 1;
  flex-shrink: 0;
  color: rgba(226, 232, 240, 0.92) !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .navigation > li > a:hover i:first-child,
.sidebar .navigation__sub > a:hover i:first-child,
.sidebar .navigation ul li a:hover i:first-child,
.sidebar .navigation__sub--toggled > a i:first-child {
  background: rgba(94, 234, 212, 0.16) !important;
  border-color: rgba(94, 234, 212, 0.28);
  color: #5eead4 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.2);
}

.sidebar .navigation__sub > a .zwicon-arrow-circle-right {
  margin-left: auto !important;
  float: none !important;
  font-size: 0.84rem !important;
  opacity: 0.45;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  transition: transform 0.22s ease, opacity 0.22s ease, color 0.22s ease;
}

.sidebar .navigation__sub--toggled > a .zwicon-arrow-circle-right {
  transform: rotate(90deg);
  opacity: 0.95;
  color: #5eead4 !important;
}

.sidebar .navigation ul {
  list-style: none;
  margin: 4px 0 10px 18px;
  padding: 6px 0 6px 12px;
  border-left: 1px solid rgba(94, 234, 212, 0.18);
}

.sidebar .navigation ul li a {
  padding: 9px 10px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.82) !important;
}

.sidebar .navigation ul li a:hover {
  background: rgba(94, 234, 212, 0.08) !important;
  color: #ffffff !important;
  transform: none;
  box-shadow: none;
}

.sidebar .navigation ul li a i:first-child {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.92rem !important;
  opacity: 1;
}

.sidebar .badge-notification {
  margin-left: auto !important;
  float: none !important;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem !important;
  font-weight: 700;
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.3);
}

.sidebar .bk-nav-logout {
  margin-top: 8px;
  color: rgba(254, 202, 202, 0.88) !important;
  border: 1px solid rgba(248, 113, 113, 0.12) !important;
  background: rgba(220, 38, 38, 0.06) !important;
}

.sidebar .bk-nav-logout i:first-child {
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.18) !important;
  color: #fca5a5 !important;
}

.sidebar .bk-nav-logout:hover {
  background: rgba(220, 38, 38, 0.16) !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
  color: #fecaca !important;
}

.sidebar .bk-nav-logout:hover i:first-child {
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.2) !important;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}

.sidebar .bk-nav-logout::before {
  background: linear-gradient(180deg, #f87171, #dc2626);
}

/* ========== CONTENT / TABS ========== */
@media (min-width: 1200px) {
  .content:not(.content--boxed):not(.content--full) {
    padding: calc(var(--bk-header) + 14px) 20px 20px calc(var(--bk-sidebar) + 18px) !important;
  }
}

@media (max-width: 1199.98px) {
  .content:not(.content--boxed):not(.content--full) {
    padding: calc(var(--bk-header) + 12px) 14px 16px !important;
  }

  .sidebar {
    background: linear-gradient(180deg, #0b1f33 0%, #102a44 100%) !important;
  }
}

#tt.easyui-tabs,
.easyui-tabs {
  background: transparent !important;
  margin-top: 0 !important;
  position: relative !important;
}

.tabs-header {
  background: transparent !important;
  border: 0 !important;
  padding: 0 0 8px !important;
  height: auto !important;
}

.tabs-scroller-left,
.tabs-scroller-right {
  background: #fff !important;
  border: 1px solid var(--bk-line) !important;
  border-radius: 8px;
  height: 28px !important;
}

.tabs-wrap {
  background: transparent !important;
  height: auto !important;
}

.tabs {
  border: 0 !important;
  height: auto !important;
  padding-left: 0 !important;
  width: auto !important;
}

.tabs li {
  margin: 0 4px 0 0 !important;
}

.tabs li a.tabs-inner {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  min-height: 28px !important;
  line-height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(15, 39, 68, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #334155 !important;
  font-family: var(--bk-font) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  box-shadow: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tabs li a.tabs-inner:hover {
  border-color: rgba(15, 118, 110, 0.35) !important;
  color: #0f766e !important;
}

/* easyui.css memaksa font-size:0 pada .tabs-title — override agar teks terlihat */
.tabs-title,
.tabs li .tabs-title,
.tabs li a.tabs-inner .tabs-title {
  font-size: 0.8rem !important;
  line-height: 1 !important;
  color: inherit !important;
  display: inline !important;
}

.tabs li.tabs-selected a.tabs-inner {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

.tabs li.tabs-selected .tabs-title {
  color: #ffffff !important;
}

.tabs-closable {
  padding-right: 26px !important;
}

.tabs li a.tabs-close {
  width: 16px !important;
  height: 16px !important;
  font-size: 0 !important;
  line-height: 16px !important;
  right: 6px !important;
  top: 50% !important;
  margin-top: -10px !important;
  opacity: 0.55;
  overflow: visible !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.tabs li a.tabs-close::before {
  content: '\00d7';
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 16px !important;
  color: #64748b;
  background: transparent !important;
  position: relative;
  top: -1px;
}

.tabs li a.tabs-close:hover {
  background: transparent !important;
  background-image: none !important;
  opacity: 1;
}

.tabs li a.tabs-close:hover::before {
  color: #0f766e;
}

.tabs li.tabs-selected a.tabs-close {
  opacity: 0.95;
  filter: none !important;
  background: transparent !important;
  background-image: none !important;
}

.tabs li.tabs-selected a.tabs-close::before {
  color: #ffffff;
}

.tabs li.tabs-selected a.tabs-close:hover::before {
  color: #ffffff;
  opacity: 1;
}

.tabs-panels {
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.panel-body {
  background: transparent !important;
  border: 0 !important;
}

/* Satu scrollbar saja: konten di dalam iframe, bukan shell/tab */
body.bk-app {
  overflow: hidden !important;
}

body.bk-app .content {
  overflow: hidden !important;
}

body.bk-app #tt.easyui-tabs,
body.bk-app #tt .tabs-panels,
body.bk-app #tt .panel,
body.bk-app #tt .panel-body {
  overflow: hidden !important;
}

body.bk-app #tt .panel-body {
  /* override easyui .panel-body { overflow: auto } */
  overflow: hidden !important;
}

body.bk-app #tt iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 118px) !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* ========== CONTENT PAGES (iframe) ========== */
body[style*="transparent"],
html body {
  font-family: var(--bk-font);
}

.containerutama1 {
  padding: 4px 2px 16px;
}

/* Layout form kiri + tabel kanan (sejajar dengan card) */
.bk-split {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 70%);
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bk-split__form,
.bk-split__table {
  margin: 0 !important;
  min-width: 0;
  height: auto;
  align-self: stretch;
}

.bk-split__form > .card-body,
.bk-split__table > .card-body {
  padding: 16px !important;
}

.bk-split__form .card-title,
.bk-split__table .card-title {
  margin: 0 0 14px !important;
  font-size: 1.05rem !important;
}

.bk-split__table .card-body {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.bk-split__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bk-split__search .form-control {
  flex: 1;
}

@media (max-width: 991.98px) {
  .bk-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bk-split__table .card-body {
    max-height: none;
  }
}

.page-title-box h4,
.card-title,
h4.card-title {
  font-family: var(--bk-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--bk-ink) !important;
}

.card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--bk-line) !important;
  border-radius: var(--bk-radius) !important;
  box-shadow: var(--bk-shadow-sm) !important;
  /* jangan overflow:hidden — memutus position:sticky pada thead */
  overflow: visible;
  color: var(--bk-ink) !important;
}

.card-body {
  padding: 18px !important;
  color: var(--bk-ink) !important;
}

.card-title,
.page-title-box h4,
h4.card-title,
.col-form-label,
label {
  color: var(--bk-ink) !important;
}

.form-control {
  color: var(--bk-ink) !important;
  background: #fff !important;
}

.form-control,
.select2-container--default .select2-selection--single {
  border-radius: 10px !important;
  border-color: #d7e0ea !important;
  min-height: 42px;
  font-family: var(--bk-font) !important;
}

.form-control:focus {
  border-color: var(--bk-accent-2) !important;
  box-shadow: 0 0 0 3px var(--bk-accent-soft) !important;
}

/* Input di dalam tabel (menu anggaran, dll) */
.table input[type="text"],
.table input[type="number"],
.table input:not([type]),
.bk-input-money {
  width: 100%;
  min-width: 120px;
  max-width: 220px;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0;
  padding: 6px 12px !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: var(--bk-ink) !important;
  font-family: var(--bk-font) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-align: right;
  outline: none;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.table input[type="text"]:hover,
.table input[type="number"]:hover,
.bk-input-money:hover {
  border-color: #b6c4d4 !important;
  background: #fff !important;
}

.table input[type="text"]:focus,
.table input[type="number"]:focus,
.bk-input-money:focus {
  border-color: var(--bk-accent-2) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--bk-accent-soft) !important;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.actions label {
  margin: 0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bk-slate) !important;
}

.actions .select2-container {
  min-width: 110px;
}

.actions .select2-container--default .select2-selection--single {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border-color: #d7e0ea !important;
  background: #fff !important;
}

.actions .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px !important;
  color: var(--bk-ink) !important;
  font-weight: 600;
  padding-left: 12px !important;
}

.actions .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
}

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #0f766e, #0ea5a0) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}

.btn-secondary,
.btn-danger,
.btn-success,
.btn-warning,
.btn-info {
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.table {
  color: var(--bk-ink) !important;
  background: #fff !important;
  /* separate + overflow visible wajib agar freeze header (sticky) berfungsi */
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--bk-line) !important;
  border-radius: 14px !important;
  overflow: visible !important;
  box-shadow: var(--bk-shadow-sm);
  margin-bottom: 1rem;
  width: 100%;
}

.table.table-bordered {
  border: 1px solid var(--bk-line) !important;
}

.table td,
.table th {
  border-color: rgba(15, 39, 68, 0.08) !important;
  vertical-align: middle !important;
  padding: 12px 14px !important;
  font-size: 0.9rem;
  background: #fff !important;
  color: var(--bk-ink) !important;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

.table tbody tr:hover td {
  background: rgba(13, 148, 136, 0.06) !important;
}

/* Wrapper scroll agar header freeze di dalam area tabel */
.bk-table-scroll,
.form-style-9.bk-table-scroll,
.card.bk-table-scroll {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Header freeze */
table > thead > tr > th,
table > thead > tr > td,
.table thead th,
.table thead td,
.table-bordered thead td,
.table-bordered thead th {
  top: 0 !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  z-index: 5 !important;
  background: #0b1f33 !important;
  color: #ffffff !important;
  font-family: var(--bk-display), var(--bk-font) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  text-align: left;
  padding: 13px 14px !important;
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.35);
}

table > thead > tr > th *,
table > thead > tr > td * {
  color: #ffffff !important;
}

/* Sudut membulat tanpa overflow:hidden di table */
.table thead tr:first-child th:first-child,
.table thead tr:first-child td:first-child {
  border-top-left-radius: 13px;
}

.table thead tr:first-child th:last-child,
.table thead tr:first-child td:last-child {
  border-top-right-radius: 13px;
}

/* Sticky first column — body only, not header */
.table-sticky tbody td:nth-child(1),
table.table-sticky tbody td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff !important;
  box-shadow: 4px 0 8px rgba(15, 39, 68, 0.04);
}

.table-sticky tbody tr:nth-child(even) td:nth-child(1) {
  background: #f8fafc !important;
}

.table-sticky tbody tr:hover td:nth-child(1) {
  background: #eef8f6 !important;
}

.table-sticky thead td:nth-child(1),
.table-sticky thead th:nth-child(1) {
  left: 0;
  z-index: 6 !important;
  background: #0b1f33 !important;
  color: #fff !important;
}

/* Row index */
.table tbody td:first-child {
  font-weight: 700;
  color: var(--bk-accent) !important;
  width: 48px;
}

/* Buttons in tables */
.table .btn {
  border-radius: 9px !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  white-space: nowrap;
}

.table .btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border: 0 !important;
}

.table .btn-primary {
  padding: 6px 12px !important;
}

/* ========== BADGES ========== */
.bk-badge,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
}

.bk-badge--teal,
.bk-badge-teal {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e !important;
  border-color: rgba(13, 148, 136, 0.22);
}

.bk-badge--soft {
  background: #eef2ff;
  color: #3730a3 !important;
  border-color: #e0e7ff;
}

.bk-badge--info {
  background: #e0f2fe;
  color: #0369a1 !important;
  border-color: #bae6fd;
}

.bk-badge--warn {
  background: #fff7ed;
  color: #c2410c !important;
  border-color: #fed7aa;
}

.bk-badge--success {
  background: #ecfdf5;
  color: #047857 !important;
  border-color: #a7f3d0;
}

.bk-badge--danger {
  background: #fef2f2;
  color: #b91c1c !important;
  border-color: #fecaca;
}

.bk-badge--muted {
  background: #f1f5f9;
  color: #475569 !important;
  border-color: #e2e8f0;
}

.bk-badge--navy {
  background: rgba(11, 31, 51, 0.08);
  color: #0b1f33 !important;
  border-color: rgba(11, 31, 51, 0.12);
}

/* Undo previous sticky override that broke header # column */
.table thead th:nth-child(1),
.table thead td:nth-child(1),
table > thead > tr > td:nth-child(1),
table > thead > tr > th:nth-child(1) {
  background: #0b1f33 !important;
  color: #ffffff !important;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1200px) {
  .bk-module-chip {
    display: inline-flex;
  }

  .navigation-trigger {
    display: none !important;
  }

  /* Logo duduk di area lebar sidebar agar tidak bentrok visual */
  .bk-header-left {
    width: calc(var(--bk-sidebar) - 20px);
  }
}

@media (max-width: 1199.98px) {
  .navigation-trigger {
    display: inline-flex !important;
  }

  .bk-header-search,
  .header .search {
    display: none !important;
  }

  .bk-module-chip {
    display: none;
  }

  .sidebar {
    background: #0b1f33 !important;
  }
}

/* Cegah horizontal scrollbar di form/iframe */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Halaman di dalam iframe: kunci body, scroll di 1 container saja */
html:has(body[style*="transparent"]),
body[style*="transparent"] {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

body[style*="transparent"] .containerutama1 {
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

/* Jika ada card scroll khusus, jadikan itu satu-satunya scroller */
body[style*="transparent"] .containerutama1:has(.card.bk-table-scroll) {
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

body[style*="transparent"] .card.bk-table-scroll {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

.containerutama1,
.card,
.card-body,
.form-style-9,
.form-style-8 {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Tabel lebar: scroll horizontal di #tabel, vertikal di parent card saja */
.bk-table-scroll,
.form-style-9.bk-table-scroll {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#tabel {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

@media (max-width: 991.98px) {
  .containerutama1 {
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .card,
  .card-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .page-title-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  .mb-3.row {
    display: block !important;
  }

  .mb-3.row > [class*="col-"],
  .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 6px;
  }

  .form-control,
  select,
  input[type="text"],
  input[type="password"],
  input[type="number"],
  textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .actions {
    justify-content: flex-start !important;
  }

  .bk-input-money,
  .table input[type="text"],
  .table input[type="number"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .header {
    padding: 0 12px !important;
  }

  .header .clock {
    display: none !important;
  }

  .bk-logo img {
    height: 30px !important;
  }

  .bk-login-card {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .card-body {
    padding: 12px !important;
  }

  .mb-3.row > label.col-sm-2 {
    margin-bottom: 4px;
  }

  .tabs li a.tabs-inner {
    padding: 0 10px !important;
    font-size: 0.75rem !important;
  }

  .tabs-title,
  .tabs li .tabs-title {
    font-size: 0.75rem !important;
  }
}

/* Backdrop when sidebar open on mobile */
.sa-backdrop {
  background: rgba(11, 31, 51, 0.45) !important;
  backdrop-filter: blur(2px);
}

/* ========== FORM LUXURY POLISH ========== */
.containerutama1 .card:not(.bk-dashboard-hero),
.bk-split .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 32px rgba(15, 39, 68, 0.07) !important;
  position: relative;
}

.containerutama1 .card:not(.bk-dashboard-hero)::before,
.bk-split .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #0f766e, #14b8a6 55%, rgba(20, 184, 166, 0.2));
  pointer-events: none;
}

.card:not(.bk-dashboard-hero) > .card-body > .card-title,
.card:not(.bk-dashboard-hero) > .card-body > h4.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 39, 68, 0.07);
  font-size: 1.08rem !important;
}

.card:not(.bk-dashboard-hero) > .card-body > .card-title::before,
.card:not(.bk-dashboard-hero) > .card-body > h4.card-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  flex-shrink: 0;
}

.col-form-label,
label.col-form-label,
.bk-field > label,
.card-body form label:not(.custom-file-label) {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--bk-slate) !important;
  margin-bottom: 6px;
}

.mb-3.row {
  align-items: center;
  margin-bottom: 1rem !important;
}

.mb-3.row .col-form-label {
  margin-bottom: 0 !important;
}

.form-control,
.select2-container--default .select2-selection--single {
  border: 1px solid #d5dee8 !important;
  background: #fff !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control:hover,
.select2-container--default .select2-selection--single:hover {
  border-color: #b7c6d6 !important;
}

.form-control:focus {
  border-color: var(--bk-accent-2) !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14) !important;
  background: #fff !important;
}

textarea.form-control {
  min-height: 96px;
  line-height: 1.55;
  padding-top: 12px !important;
}

/* ========== FILE PICKER (custom-file) ========== */
.custom-file {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  margin-bottom: 0 !important;
}

.custom-file-input {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.custom-file-label,
.custom-file .custom-file-label {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 128px 0 52px !important;
  border: 1.5px dashed rgba(15, 118, 110, 0.32) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5faf9 100%) !important;
  color: var(--bk-muted) !important;
  font-family: var(--bk-font) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  text-transform: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease !important;
}

/* Ikon upload di kiri */
.custom-file-label::before {
  content: "\ea7c" !important;
  font-family: "zwicon" !important;
  font-size: 1.15rem !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  color: #0f766e !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  background: rgba(13, 148, 136, 0.12) !important;
  speak: none;
}

.custom-file-label::after,
.custom-file-input:lang(en) ~ .custom-file-label::after,
.custom-file-input ~ .custom-file-label[data-browse]::after {
  content: "Pilih File" !important;
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  bottom: 5px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  height: auto !important;
  min-width: 110px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%) !important;
  color: #ffffff !important;
  font-family: var(--bk-font) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.25);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.custom-file:hover .custom-file-label {
  border-color: rgba(15, 118, 110, 0.55) !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef9f7 100%) !important;
  color: var(--bk-slate) !important;
}

.custom-file:hover .custom-file-label::after {
  filter: brightness(1.04);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.32);
}

.custom-file-input:focus ~ .custom-file-label,
.custom-file-input:focus-visible ~ .custom-file-label {
  border-style: solid !important;
  border-color: var(--bk-accent-2) !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14) !important;
  color: var(--bk-ink) !important;
}

/* File sudah dipilih */
.custom-file.is-filled .custom-file-label,
.custom-file-label.bk-file-filled {
  border-style: solid !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
  background: #ffffff !important;
  color: var(--bk-ink) !important;
  font-weight: 600 !important;
}

.custom-file.is-filled .custom-file-label::before,
.custom-file-label.bk-file-filled::before {
  content: "\e949" !important; /* document */
  background: rgba(13, 148, 136, 0.16) !important;
}

.custom-file-input:disabled ~ .custom-file-label {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #f1f5f9 !important;
  border-style: solid !important;
  border-color: #d5dee8 !important;
}

.custom-file-input:disabled ~ .custom-file-label::after {
  background: #94a3b8 !important;
  box-shadow: none !important;
}

/* Preview PDF (upload form + dokumen pendukung) */
iframe[id^="viewer"],
.card-body iframe[id*="viewer"] {
  display: block !important;
  width: 100% !important;
  height: min(58vh, 560px) !important;
  min-height: 360px !important;
  border: 1px solid rgba(15, 39, 68, 0.1) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

h5.mt-4 {
  font-family: var(--bk-display) !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  color: var(--bk-ink) !important;
  letter-spacing: -0.01em;
  margin-top: 1.5rem !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

/* Toolbar aksi massal dokumen */
.bk-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f5 100%);
}

.bk-bulk-checkall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bk-ink);
  cursor: pointer;
  user-select: none;
}

.bk-bulk-checkall input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0f766e;
  cursor: pointer;
}

.bk-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-bulk-actions .btn {
  min-height: 38px;
}

@media (max-width: 767.98px) {
  .bk-bulk-bar {
    align-items: stretch;
  }

  .bk-bulk-actions {
    width: 100%;
  }

  .bk-bulk-actions .btn {
    flex: 1;
  }
}

/* Status ikon dokumen — hijau gelap agar terbaca */
i.zwicon-checkmark-square,
i.zwicon-checkmark-circle,
i.zwicon-checkmark,
.zwicon-checkmark-square[style*="greenyellow"],
.zwicon-checkmark-circle[style*="greenyellow"],
.zwicon-file-empty[style*="greenyellow"],
i[style*="greenyellow"] {
  color: #15803d !important;
}

i.zwicon-close-square[style*="lightcoral"],
i.zwicon-close-circle[style*="lightcoral"],
i[style*="lightcoral"] {
  color: #b91c1c !important;
}

/* Dokumen pendukung: grid 3 kolom selebar form */
.card-body > .cards,
.cards {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  box-sizing: border-box !important;
}

.cards .card1 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.cards .card1 > .card {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
}

.cards .card1 object,
.cards .card1 object[type="application/pdf"],
.cards .card1 iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: min(52vh, 480px) !important;
  min-height: 360px !important;
}

@media (max-width: 1199.98px) {
  .card-body > .cards,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .card-body > .cards,
  .cards {
    grid-template-columns: 1fr !important;
  }
}

/* Search bar di halaman list */
.card-body .search,
.card .search {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 10px 12px;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  transform: none !important;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 14px;
  box-shadow: none !important;
  z-index: 1 !important;
}

.card-body .search > i.zwicon-search,
.card .search > i.zwicon-search {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--bk-muted);
  font-size: 1.1rem !important;
  margin: 0 !important;
  pointer-events: none;
}

.card-body .search > .form-control,
.card .search > .form-control {
  flex: 1;
  min-width: 0;
  text-indent: 28px !important;
  margin: 0 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.card-body .search > .btn,
.card .search > .btn {
  margin: 0 !important;
  flex-shrink: 0;
}

.card-body .search > div,
.card .search > div {
  flex-shrink: 0;
  margin: 0 !important;
}

/* Tombol utama */
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px !important;
  border-radius: 11px !important;
  font-family: var(--bk-font) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease !important;
}

.btn:hover:not(:disabled):not(.disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active:not(:disabled):not(.disabled) {
  transform: translateY(0);
}

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 48%, #14b8a6 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover:not(:disabled):not(.disabled),
.btn.btn-primary:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.34);
  color: #fff !important;
}

.btn-danger,
.btn.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.btn-danger:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
  color: #fff !important;
}

.btn:disabled,
.btn.disabled,
input.btn:disabled {
  opacity: 0.48 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed !important;
  filter: grayscale(0.2);
}

.btn--icon-text {
  gap: 8px !important;
}

.btn--icon-text > [class*="zwicon-"] {
  font-size: 1.05rem !important;
  margin: 0 !important;
  line-height: 1;
  opacity: 0.95;
}

.btn--icon-text > span {
  line-height: 1;
}

/* Hapus = icon only */
.bk-btn-icon,
.btn.bk-btn-icon {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  gap: 0 !important;
}

.bk-btn-icon > [class*="zwicon-"],
.btn.bk-btn-icon > [class*="zwicon-"] {
  margin: 0 !important;
  font-size: 1.15rem !important;
  line-height: 1;
}

.table .bk-btn-icon,
.table .btn.bk-btn-icon {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 9px !important;
}

.table .btn {
  min-height: 34px;
  padding: 5px 11px !important;
  font-size: 0.78rem !important;
  gap: 5px;
}

.table .btn--icon-text > [class*="zwicon-"] {
  font-size: 0.95rem !important;
}

.table td .btn + .btn {
  margin-left: 4px;
}

/* Area aksi form bawah */
.card-body form .mt-4,
.card-body form > div[style*="text-align: center"],
.card-body form > .mt-3 {
  padding-top: 8px;
}

.card-body form .mt-4 .btn,
.card-body form [style*="text-align: center"] .btn {
  min-width: 140px;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* Select2 di form lebih rapi */
.select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center;
  padding-right: 8px;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #d5dee8 !important;
  border-radius: 10px !important;
  min-height: 42px !important;
  height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 12px !important;
  color: var(--bk-ink) !important;
  font-weight: 500;
  line-height: 1.4 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--bk-muted) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: block !important;
  height: 100% !important;
  top: 0 !important;
}

.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--bk-accent-2) !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14) !important;
}

/* Select2 dropdown — paksa light theme (override dark di app.min.css) */
.select2-dropdown,
.select2-container--default .select2-dropdown,
.select2-container--open .select2-dropdown {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 39, 68, 0.1) !important;
  border-radius: 12px !important;
  padding: 6px 0 !important;
  box-shadow: 0 16px 40px rgba(15, 39, 68, 0.14) !important;
  overflow: hidden;
  z-index: 10050 !important;
}

.select2-dropdown .select2-results__option,
.select2-results__option {
  padding: 10px 14px !important;
  color: var(--bk-ink) !important;
  font-family: var(--bk-font) !important;
  font-size: 0.9rem !important;
  background: transparent !important;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[aria-selected=true]:focus,
.select2-container--default .select2-results__option[aria-selected=true]:hover {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0f766e !important;
  font-weight: 600;
}

.select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-dropdown .select2-results__option--highlighted[aria-selected]:not([aria-selected=true]),
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, #0f766e, #0d9488) !important;
  color: #ffffff !important;
}

.select2-dropdown .select2-results__option[aria-disabled=true] {
  color: var(--bk-muted) !important;
  opacity: 0.45 !important;
}

.select2-dropdown .select2-search--dropdown {
  margin: 0 0 6px !important;
  padding: 8px 10px 10px !important;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08) !important;
  position: relative;
  background: #f8fafc !important;
}

.select2-dropdown .select2-search--dropdown:before {
  color: var(--bk-muted) !important;
  left: 1.35rem !important;
  top: 50% !important;
  transform: translateY(-50%);
  font-size: 1.15rem !important;
}

.select2-dropdown .select2-search--dropdown .select2-search__field,
.select2-search__field {
  border: 1px solid #d5dee8 !important;
  background: #ffffff !important;
  color: var(--bk-ink) !important;
  border-radius: 10px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px 0 2.6rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.select2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--bk-accent-2) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14) !important;
}

.select2-search__field::-webkit-input-placeholder,
.select2-search__field::placeholder {
  color: var(--bk-muted) !important;
}

.select2-search__field:-moz-placeholder,
.select2-search__field::-moz-placeholder,
.select2-search__field:-ms-input-placeholder {
  color: var(--bk-muted) !important;
}

.select2-results__message {
  color: var(--bk-muted) !important;
  padding: 10px 14px !important;
}

.select2-container--default .select2-selection--multiple {
  background: #fff !important;
  border: 1px solid #d5dee8 !important;
  border-radius: 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: rgba(13, 148, 136, 0.12) !important;
  border: 1px solid rgba(13, 148, 136, 0.2) !important;
  color: #0f766e !important;
  border-radius: 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #0f766e !important;
}

/* Split form tombol full width di mobile kecil */
@media (max-width: 575.98px) {
  .bk-split__form .btn,
  .card-body form .mt-4 .btn {
    width: 100%;
  }

  .card-body .search,
  .card .search {
    flex-wrap: wrap;
  }

  .card-body .search > .form-control,
  .card .search > .form-control {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ========== DASHBOARD ANALYTICS ========== */
.bk-dash {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 30px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 28px;
  scroll-behavior: smooth;
}

.bk-dash__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.96) 0%, rgba(18, 50, 74, 0.94) 55%, rgba(15, 118, 110, 0.9) 130%);
  box-shadow: 0 14px 34px rgba(11, 31, 51, 0.18);
  color: #fff;
  animation: bk-rise 0.45s ease both;
}

.bk-dash__toolbar h1 {
  margin: 0;
  font-family: var(--bk-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #fff;
}

.bk-dash__toolbar p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.bk-dash__period {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bk-dash__period-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.bk-dash__period-field span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.bk-dash__period .form-group {
  margin: 0;
}

.bk-dash__period .select2-container {
  min-width: 72px;
}

.bk-dash__period .select2-container--default .select2-selection--single {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(6px);
}

.bk-dash__period .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px !important;
  color: #fff !important;
  font-weight: 600;
  padding-left: 12px !important;
}

.bk-dash__period .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
}

.bk-dash__period .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.75) transparent transparent transparent !important;
}

.bk-dash__panel {
  width: 100%;
  margin: 0 0 16px !important;
  animation: bk-rise 0.5s ease both;
}

.bk-dash__panel:nth-child(2) { animation-delay: 0.05s; }
.bk-dash__panel:nth-child(3) { animation-delay: 0.1s; }
.bk-dash__panel:nth-child(4) { animation-delay: 0.15s; }
.bk-dash__panel:nth-child(5) { animation-delay: 0.2s; }
.bk-dash__panel:nth-child(6) { animation-delay: 0.25s; }
.bk-dash__panel:nth-child(7) { animation-delay: 0.3s; }
.bk-dash__panel:nth-child(8) { animation-delay: 0.35s; }

.bk-dash__panel > .card-body {
  padding: 20px 20px 18px !important;
}

.bk-dash__panel .card-title {
  margin-bottom: 14px !important;
}

.bk-dash__panel > .card-body > .card-title::before {
  display: none;
}

.bk-dash__panel .card-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 2px !important;
  margin-top: 0 !important;
  border-radius: 10px;
  font-size: 1.05rem !important;
  font-weight: normal !important;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.14);
}

.bk-dash__chart {
  height: 320px;
  padding: 8px 4px 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    radial-gradient(700px 180px at 10% 0%, rgba(13, 148, 136, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(15, 39, 68, 0.06);
}

.bk-dash__chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.bk-dash__table {
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  background: #fff;
}

.bk-dash__table--sm {
  max-height: 240px;
}

.bk-dash__table--lg {
  max-height: 400px;
}

.bk-dash__table .table {
  margin-bottom: 0 !important;
  font-size: 0.82rem;
}

.bk-dash__table .table thead td,
.bk-dash__table .table thead th {
  background: #0b1f33 !important;
  color: #fff !important;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border-color: rgba(255, 255, 255, 0.08) !important;
  padding: 10px 12px !important;
}

.bk-dash__table .table tbody td {
  padding: 9px 12px !important;
  border-color: rgba(15, 39, 68, 0.06) !important;
  color: var(--bk-ink);
  vertical-align: middle;
}

.bk-dash__table .table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.bk-dash__table .table tbody tr:hover td {
  background: rgba(13, 148, 136, 0.06);
}

.bk-dash__table .table tbody td:first-child,
.bk-dash__table .table thead td:first-child,
.bk-dash__table .table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  font-weight: 600;
  white-space: nowrap;
}

.bk-dash__table .table tbody td:first-child {
  background: #f8fafc;
  box-shadow: 4px 0 10px rgba(15, 39, 68, 0.04);
}

.bk-dash__table .table tbody tr:nth-child(even) td:first-child {
  background: #f1f5f9;
}

.bk-dash__table .table tbody tr:hover td:first-child {
  background: #e6f4f3;
}

.bk-dash__table .table thead td:first-child,
.bk-dash__table .table thead th:first-child {
  z-index: 3;
  background: #0b1f33 !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .bk-dash {
    padding: 2px 2px 20px;
  }

  .bk-dash__toolbar {
    padding: 16px;
    border-radius: 14px;
  }

  .bk-dash__toolbar h1 {
    font-size: 1.2rem;
  }

  .bk-dash__period {
    width: 100%;
  }

  .bk-dash__chart {
    height: 260px;
  }

  .bk-dash__table {
    max-height: 260px;
  }
}

/* ========== GLOBAL PAGE LUXURY ========== */
body[style*="transparent"] {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(37, 99, 235, 0.05), transparent 50%),
    transparent !important;
}

body[style*="transparent"] .containerutama1 {
  padding: 6px 8px 18px !important;
  animation: bk-rise 0.4s ease both;
}

/* Kartu utama halaman list/form */
.containerutama1 > .card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.containerutama1 > .card::before {
  display: none !important;
}

.containerutama1 > .card > .card-body {
  padding: 0 !important;
  background: transparent !important;
}

.containerutama1 > .card.bk-table-scroll > .card-body {
  padding: 4px 2px 8px !important;
}

.containerutama1 > .card > .card-body > .card-title,
.containerutama1 > .card.bk-table-scroll > .card-body > .card-title {
  margin: 0 0 14px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.97) 0%, rgba(18, 50, 74, 0.94) 60%, rgba(15, 118, 110, 0.88) 140%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.14);
  border-bottom: 0 !important;
}

.containerutama1 > .card > .card-body > .card-title::before,
.containerutama1 > .card.bk-table-scroll > .card-body > .card-title::before {
  background: #5eead4 !important;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.22) !important;
}

.containerutama1 > .card > .card-body > .card-title,
.containerutama1 > .card.bk-table-scroll > .card-body > .card-title {
  font-size: 1.12rem !important;
}

/* Panel konten di dalam halaman */
.containerutama1 > .card > .card-body > .card.bk-table-scroll,
.containerutama1 > .card.bk-table-scroll {
  margin-top: 0 !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 32px rgba(15, 39, 68, 0.07) !important;
}

.containerutama1 > .card > .card-body > .card.bk-table-scroll::before,
.containerutama1 > .card.bk-table-scroll::before {
  left: 16px;
  right: 16px;
}

/* Toolbar list: search row penuh lebar */
.containerutama1 .row.height.d-flex {
  margin: 0 0 14px !important;
  width: 100%;
  max-width: 100%;
}

.containerutama1 .row.height.d-flex > [class*="col-"] {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Form horizontal lebih rapi */
.card-body form > .mb-3.row {
  margin: 0 0 12px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(15, 39, 68, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-body form > .mb-3.row:focus-within {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

.card-body form > .mb-3.row > .col-form-label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bk-slate) !important;
}

.card-body form > h5.mt-4,
.card-body > h5.mt-4,
.card-body form h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px !important;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
  font-family: var(--bk-display) !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
  color: var(--bk-ink) !important;
}

.card-body form > h5.mt-4::before,
.card-body > h5.mt-4::before,
.card-body form h5::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  flex-shrink: 0;
}

/* Preview PDF di form upload */
.card-body iframe[id^="viewer"],
.card-body object[type="application/pdf"] {
  display: block;
  width: 100% !important;
  min-height: 240px;
  margin-top: 10px;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  border-radius: 12px !important;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-body form > .mt-4 {
  margin-top: 18px !important;
  padding: 16px 0 4px !important;
  text-align: center !important;
  border-top: 1px solid rgba(15, 39, 68, 0.06);
}

.card-body form > .mt-4 .btn,
.card-body form > .mt-4 input[type="submit"] {
  min-width: 160px;
  min-height: 44px;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.28);
}

.card-body form .btn,
.card-body form input[type="submit"].btn,
.card-body > form + form .btn,
.card-body div[style*="text-align: right"] .btn {
  min-width: 132px;
}

.card-body div[style*="text-align: right"] {
  margin-top: 8px;
  padding-top: 8px;
}

/* Readonly fields */
.form-control[readonly],
.form-control:disabled {
  background: #f1f5f9 !important;
  color: var(--bk-ink-soft) !important;
  cursor: default;
}

/* Actions / filter tahun — batalkan absolute dari app.min.css */
.card-body > .actions,
.bk-page-head .actions,
.card-body .bk-page-head .actions {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
}

/* Toolbar filter saja — jangan kena tombol folder di kartu dokumen */
.bk-page-head .actions,
.card-body > .actions:not(:has(.actions__item)) {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.cards .card1 .actions,
.card1 .actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
}

.cards .card1 .actions__item,
.card1 .actions__item {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: rgba(13, 148, 136, 0.12) !important;
  border: 1px solid rgba(13, 148, 136, 0.18) !important;
  color: #0f766e !important;
  font-size: 1.15rem !important;
}

.actions > label {
  margin: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bk-slate) !important;
}

.actions .select2-container {
  min-width: 120px;
  max-width: 180px;
}

/* Toolbar judul + filter (halaman anggaran, dll) */
.bk-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px !important;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 8px 22px rgba(15, 39, 68, 0.05);
}

.bk-page-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bk-page-head__title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  flex-shrink: 0;
}

.bk-page-head__title h4,
.bk-page-head__title .card-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--bk-ink) !important;
  font-family: var(--bk-display) !important;
  font-size: 1.1rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bk-page-head__title h4::before,
.bk-page-head__title .card-title::before {
  display: none !important;
}

.bk-page-head .actions {
  margin: 0 !important;
  padding: 8px 12px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 39, 68, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.bk-page-head .actions > label {
  color: var(--bk-muted) !important;
}

/* Halaman anggaran: tabel lebih ringan */
.bk-anggaran-page.card.bk-table-scroll::before {
  display: none !important;
}

.bk-anggaran-page #tabel {
  border-radius: 14px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  background: #fff;
  overflow: auto;
}

.bk-anggaran-page .table.table-bordered {
  border: 0 !important;
  border-radius: 0;
  margin-bottom: 0 !important;
}

.bk-anggaran-page .table thead td,
.bk-anggaran-page .table thead th {
  background: #12324a !important;
  padding: 11px 12px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left !important;
}

.bk-anggaran-page .table thead tr:first-child th:first-child,
.bk-anggaran-page .table thead tr:first-child td:first-child,
.bk-anggaran-page .table thead tr:first-child th:last-child,
.bk-anggaran-page .table thead tr:first-child td:last-child {
  border-radius: 0 !important;
}

.bk-anggaran-page .table tbody td {
  padding: 10px 12px !important;
  border-color: rgba(15, 39, 68, 0.05) !important;
  vertical-align: middle !important;
}

.bk-anggaran-page .table tbody tr:hover td {
  background: rgba(13, 148, 136, 0.05) !important;
}

.bk-anggaran-page .bk-input-money {
  min-width: 140px;
  max-width: 200px;
  height: 38px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
}

.bk-anggaran-page .bk-badge,
.bk-anggaran-page .badge-soft {
  font-size: 0.74rem;
  padding: 5px 10px;
}

.bk-anggaran-page .pagination {
  margin: 14px 0 2px !important;
}

@media (max-width: 767.98px) {
  .bk-page-head {
    padding: 12px;
  }

  .bk-page-head .actions {
    width: 100%;
  }

  .bk-page-head .actions .select2-container {
    flex: 1;
    max-width: none;
  }
}

/* Pagination modern */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 4px !important;
  padding: 0;
  list-style: none;
}

.pagination .page-item {
  margin: 0 !important;
}

.pagination .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px !important;
  border: 1px solid rgba(15, 39, 68, 0.1) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--bk-ink) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.pagination .page-link:hover {
  background: rgba(13, 148, 136, 0.1) !important;
  border-color: rgba(13, 148, 136, 0.35) !important;
  color: #0f766e !important;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link,
.pagination .page-link:focus {
  background: linear-gradient(135deg, #0f766e, #0d9488) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Tabel: hilangkan border HTML lama */
table.table[border],
table[border].table {
  border: 0 !important;
}

.table.table-bordered {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.table.table-bordered td,
.table.table-bordered th {
  border-color: rgba(15, 39, 68, 0.06) !important;
}

.table tbody td {
  font-size: 0.86rem;
  padding: 11px 14px !important;
  vertical-align: middle !important;
}

.table tbody td[style*="text-align: right"],
.table tbody td.text-right {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--bk-ink-soft) !important;
}

/* Highlight row selected di master data */
.table tbody tr.highlight td,
#myTable tbody tr.highlight td {
  background: rgba(13, 148, 136, 0.12) !important;
}

/* Doc card actions di approve */
.cards .card1 .btn {
  min-height: 36px;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
}

.cards .card1 object,
.cards .card1 iframe {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
  overflow: hidden;
}

.cards .card1 img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 68, 0.08);
}

/* Tutorial / media page */
.bk-media-page {
  height: calc(100vh - 40px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bk-media-page__head {
  padding: 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.97) 0%, rgba(18, 50, 74, 0.94) 60%, rgba(15, 118, 110, 0.88) 140%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.14);
}

.bk-media-page__head h1 {
  margin: 0;
  font-family: var(--bk-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.bk-media-page__head p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.bk-media-page__stage {
  flex: 1;
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.07);
}

.bk-media-page__stage video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #0b1f33;
  object-fit: contain;
}

/* Admin welcome dashboard */
.bk-dashboard-hero.card {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px !important;
  min-height: calc(100vh - 90px);
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.62) 0%, rgba(11, 31, 51, 0.45) 45%, rgba(11, 31, 51, 0.7) 100%),
    url("../../hero-big.jpg") center center / cover no-repeat !important;
  box-shadow: 0 20px 50px rgba(11, 31, 51, 0.28) !important;
  animation: bk-rise 0.5s ease both;
}

.bk-dashboard-hero.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 50% 40%, rgba(15, 118, 110, 0.18), transparent 65%);
  pointer-events: none;
  display: block !important;
  height: auto !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  border-radius: 0 !important;
}

.bk-dashboard-hero .card-body {
  position: relative;
  z-index: 1;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: 32px !important;
}

.bk-dashboard-hero__content {
  text-align: center;
  max-width: 560px;
}

.bk-dashboard-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #99f6e4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bk-dashboard-hero .card-title {
  color: #fff !important;
  font-size: 2rem !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.bk-dashboard-hero .card-title::before {
  display: none !important;
}

.bk-dashboard-hero__text {
  margin: 0 auto;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.98rem;
}

.bk-dashboard-hero__hint {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

/* SweetAlert soft override jika dipakai */
.swal-modal {
  border-radius: 18px !important;
  font-family: var(--bk-font) !important;
}

.swal-button {
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.swal-button--confirm {
  background: linear-gradient(135deg, #0f766e, #0d9488) !important;
}

@media (max-width: 767.98px) {
  .containerutama1 > .card > .card-body > .card-title,
  .containerutama1 > .card.bk-table-scroll > .card-body > .card-title {
    font-size: 1rem !important;
    padding: 14px 14px !important;
  }

  .bk-dashboard-hero .card-title {
    font-size: 1.45rem !important;
  }

  .card-body form > .mb-3.row {
    padding: 10px 12px;
  }
}
