:root {
  --sacti-green: #218838;
  --sacti-green-dark: #123019;
  --sacti-green-soft: #eaf7ee;
  --sacti-gold: #f0a51b;
  --sacti-bg: #f3f6f8;
  --sacti-text: #2b303b;
  --sacti-muted: #7a8494;
  --sacti-border: #e6eaf0;
  --sacti-shadow: 0 10px 28px rgba(18, 48, 25, .08);
  --sacti-radius: 14px;
}

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

body.sacti-admin-template {
  background: var(--sacti-bg);
  color: var(--sacti-text);
  font-size: 14px;
}

body.sacti-admin-template::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(33,136,56,.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(240,165,27,.10), transparent 34rem);
  z-index: -1;
}

#preloader {
  background: rgba(255,255,255,.92);
}

#preloader .path {
  stroke: var(--sacti-green);
}

.nav-header {
  background: linear-gradient(135deg, #123019 0%, #1f7a34 100%);
  box-shadow: 0 6px 18px rgba(18,48,25,.12);
}

.brand-logo {
  padding-left: 18px;
}

.brand-logo a {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.sacti-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 5px;
  flex: 0 0 auto;
}

.sacti-brand-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sacti-brand-title {
  display: flex !important;
  flex-direction: column;
  color: #fff;
  line-height: 1.1;
}

.sacti-brand-title strong {
  font-size: 17px;
  letter-spacing: .16em;
  color: #fff;
}

.sacti-brand-title small {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255,255,255,.78);
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav-control .hamburger .line {
  background: #fff;
}

.header {
  background: rgba(255,255,255,.94);
  box-shadow: var(--sacti-shadow);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,234,240,.9);
}

.sacti-page-context {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding-left: 6px;
}

.sacti-page-context span {
  font-weight: 700;
  color: var(--sacti-text);
}

.sacti-page-context small {
  color: var(--sacti-muted);
  font-size: 12px;
  margin-top: 2px;
}

.header-right .icons>a,
.header-right .icons>a:hover,
.header-right .icons>a:focus {
  color: var(--sacti-text);
}

.sacti-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
}

.nk-sidebar {
  background: #fff;
  border-right: 1px solid var(--sacti-border);
  box-shadow: 4px 0 24px rgba(18,48,25,.05);
}

.nk-sidebar .nav-label {
  color: #9ca3af;
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 800;
  padding: 18px 18px 8px;
  text-transform: uppercase;
}

.metismenu > li > a {
  color: #596273;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-left: 4px solid transparent;
  transition: all .15s ease;
}

.metismenu > li > a i {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  color: #8792a4;
  margin-right: 8px;
}

.metismenu > li > a:hover,
.metismenu > li > a.active {
  color: var(--sacti-green);
  background: var(--sacti-green-soft);
  border-left-color: var(--sacti-green);
}

.metismenu > li > a:hover i,
.metismenu > li > a.active i {
  color: var(--sacti-green);
}

.sacti-logout-link,
.sacti-logout-link i {
  color: #e74a3b !important;
}

.sacti-logout-link:hover {
  background: rgba(231,74,59,.08) !important;
  border-left-color: #e74a3b !important;
}

.content-body {
  background: transparent;
  min-height: calc(100vh - 120px);
}

.sacti-container {
  max-width: 1480px;
}

.footer {
  background: transparent;
  border-top: 0;
  padding: 14px 30px;
}

.footer .copyright p {
  color: var(--sacti-muted);
  font-size: 12px;
}

h1,
.h1 {
  font-size: 28px !important;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--sacti-text);
}

h2,
.h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--sacti-text);
}

.subtitle {
  margin: 0 0 18px;
  color: var(--sacti-muted);
  font-size: 14px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.card,
.table-wrap,
.form-card,
.dashboard-panel,
.landing-panel,
.landing-slider-section {
  background: #fff;
  border: 1px solid var(--sacti-border);
  border-radius: var(--sacti-radius);
  box-shadow: var(--sacti-shadow);
}

.card,
.form-card,
.dashboard-panel {
  padding: 20px;
}

.form-card {
  max-width: 960px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #2f3542;
  font-size: 13px;
  font-weight: 700;
}

.input,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--sacti-text);
  background: #fff;
  font-size: 14px;
}

.field textarea,
textarea {
  min-height: 92px;
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(33,136,56,.14);
  border-color: var(--sacti-green);
}

.input-icon {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  color: var(--sacti-green);
  background: var(--sacti-green-soft);
  border: 1px solid #d7dde7;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.input-icon input {
  border-radius: 0 8px 8px 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--sacti-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}

.btn:hover,
.btn:focus {
  color: #fff;
  background: #166b2a;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(33,136,56,.16);
}

.btn-sm {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.btn-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
}

.btn-icon.btn-sm {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.btn-outline,
.btn.btn-outline {
  color: var(--sacti-green);
  background: #fff;
  border-color: var(--sacti-green);
}

.btn-outline:hover,
.btn.btn-outline:hover {
  color: #fff;
  background: var(--sacti-green);
}

.btn-yellow { background: #f6c23e; color: #1f2937; }
.btn-yellow:hover { background: #dda20a; color: #1f2937; }
.btn-red { background: #e74a3b; color: #fff; }
.btn-red:hover { background: #c93628; }
.btn-blue { background: #4e73df; color: #fff; }
.btn-blue:hover { background: #3658be; }
.btn-glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.38); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.24); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actions form {
  display: inline-flex;
  margin: 0;
}

.table-wrap {
  overflow: auto;
  padding: 0;
}

.table-wrap table,
.table {
  width: 100%;
  min-width: 900px;
  margin: 0;
  border-collapse: collapse;
  color: var(--sacti-text);
  font-size: 13.5px;
}

.table-wrap th,
.table-wrap td,
.table th,
.table td {
  padding: 11px 13px;
  border-bottom: 1px solid #edf0f7;
  vertical-align: middle;
}

.table-wrap th,
.table th {
  background: #f8f9fc;
  color: #394150;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrap tr:hover td,
.table tr:hover td {
  background: #fcfdff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.badge.ok { background: #e7f6ec; color: #187737; }
.badge.warn { background: #fff6df; color: #9a6700; }
.badge.danger { background: #fdecec; color: #b42318; }

.alert.sacti-alert,
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert.success,
.alert-success { background: #e7f6ec; color: #187737; border-color: #bbe7c8; }
.alert.danger,
.alert-danger { background: #fdecec; color: #b42318; border-color: #fac5bf; }
.alert.warning,
.alert-warn,
.alert-warning { background: #fff6df; color: #9a6700; border-color: #ffe5a3; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-hero,
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  margin-bottom: 18px;
  padding: 26px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18,94,46,.90), rgba(33,136,56,.72)),
    url('background.jpg'),
    url('bg.svg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--sacti-shadow);
  color: #fff;
}

.dashboard-hero h1,
.hero h1 {
  color: #fff !important;
  font-size: 30px !important;
  margin-bottom: 8px;
}

.dashboard-hero p,
.hero p {
  margin: 0;
  color: rgba(255,255,255,.88);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-kicker {
  color: var(--sacti-green);
  background: var(--sacti-green-soft);
}

.dashboard-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-stats {
  margin-bottom: 18px;
}

.sb-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 92px;
  border-left: 4px solid var(--sacti-green);
  color: inherit;
}

.sb-stat:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18,48,25,.11);
}

.sb-stat small {
  display: block;
  margin-bottom: 6px;
  color: #697586;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sb-stat b {
  display: block;
  color: #263043;
  font-size: 28px;
  line-height: 1;
}

.sb-stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
  font-size: 18px;
}

.sb-stat.warn { border-left-color: #f6c23e; }
.sb-stat.warn .sb-stat-icon { background: #fff7e0; color: #a66a00; }
.sb-stat.info { border-left-color: #36b9cc; }
.sb-stat.info .sb-stat-icon { background: #e8f9fb; color: #0f8798; }
.sb-stat.primary { border-left-color: #4e73df; }
.sb-stat.primary .sb-stat-icon { background: #eef2ff; color: #4e73df; }

.dashboard-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.dashboard-panel {
  margin-top: 18px;
}

.admin-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card-title h2 {
  margin: 0;
}

.admin-card-title span {
  color: var(--sacti-muted);
  font-size: 13px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  background: #fff;
  color: #263043;
  font-weight: 750;
}

.module-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
}

.module-card:hover {
  color: var(--sacti-green);
  transform: translateY(-2px);
  box-shadow: var(--sacti-shadow);
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--sacti-muted);
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
}

/* Login */
body.sacti-template-login {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18,48,25,.86), rgba(33,136,56,.70)),
    url('template/assets/images/background/login-register.jpg'),
    url('background.jpg');
  background-size: cover;
  background-position: center;
}

.sacti-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.sacti-login-card {
  width: min(100%, 440px);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  overflow: hidden;
}

.sacti-login-card .card-body {
  padding: 34px;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
  font-size: 13px;
  font-weight: 700;
}

.login-back:hover {
  color: #fff;
  background: var(--sacti-green);
}

.login-logo-img {
  display: block;
  max-width: 168px;
  max-height: 96px;
  object-fit: contain;
  margin: 6px auto 18px;
}

.login-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 20px;
  background: var(--sacti-green);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.login-title {
  margin: 0;
  text-align: center;
  color: var(--sacti-text);
  font-size: 24px;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Landing */
body.landing-body {
  background: #f4f8f5;
  color: var(--sacti-text);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 5vw, 70px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sacti-border);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sacti-text);
}

.landing-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.landing-logo-fallback {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sacti-green);
  color: #fff;
  font-weight: 900;
}

.landing-brand b {
  display: block;
  color: var(--sacti-green-dark);
  font-size: 19px;
  letter-spacing: .08em;
}

.landing-brand small {
  color: var(--sacti-muted);
}

.landing-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.landing-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  font-size: 13px;
}

.landing-menu a:hover,
.landing-menu .landing-login {
  color: #fff;
  background: var(--sacti-green);
}

.landing-main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(18,94,46,.92), rgba(33,136,56,.64)),
    url('background.jpg'),
    url('template/assets/images/background/user-bg.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(18,48,25,.18);
  color: #fff;
}

.landing-hero h1 {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: clamp(32px, 5vw, 56px) !important;
}

.landing-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.88);
  font-size: 16px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.landing-hero-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: var(--sacti-text);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.13);
}

.landing-hero-card img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
}

.landing-hero-card span {
  color: var(--sacti-muted);
  font-size: 13px;
}

.landing-slider-section,
.landing-panel {
  margin-top: 26px;
  padding: clamp(18px, 3vw, 26px);
}

.landing-section-head {
  margin-bottom: 16px;
}

.landing-section-head h2 {
  margin: 0;
  font-size: 26px;
}

.landing-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 310px;
  background: #e9eef2;
}

.slider-track,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18,48,25,.58), transparent 64%);
}

.slide-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

.slide-caption b,
.slide-caption span {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--sacti-green);
  transform: translateY(-50%);
}

.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

.slider-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

.landing-services,
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.about-stats > div {
  padding: 20px;
  border: 1px solid #edf0f7;
  border-radius: 16px;
  background: #fff;
  color: var(--sacti-text);
  box-shadow: 0 8px 20px rgba(18,48,25,.05);
}

.service-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
  font-size: 20px;
}

.service-card b,
.service-card small {
  display: block;
}

.service-card small,
.about-stats small {
  color: var(--sacti-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #edf0f7;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18,48,25,.05);
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-empty {
  padding: 28px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--sacti-muted);
  text-align: center;
}

.landing-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 20px;
  align-items: start;
}

.landing-footer {
  margin-top: 30px;
  padding: 30px 16px;
  text-align: center;
  color: var(--sacti-muted);
}

@media (max-width: 1199px) {
  .grid-4,
  .module-grid,
  .landing-services,
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-two-col { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero-card { max-width: 320px; justify-self: start; }
}

@media (max-width: 991px) {
  .sacti-brand-title small,
  .sacti-page-context small { display: none; }
  .dashboard-hero,
  .hero { grid-template-columns: 1fr; }
  .dashboard-hero-actions { justify-content: flex-start; }
  .grid-2,
  .grid-3,
  .grid-4,
  .module-grid,
  .landing-services,
  .about-stats,
  .landing-about,
  .gallery-grid { grid-template-columns: 1fr; }
  .page-head { display: block; }
  .page-head .actions { margin-top: 12px; }
  .table-wrap table { min-width: 760px; }
  .landing-nav { align-items: flex-start; flex-direction: column; }
  .landing-menu { justify-content: flex-start; }
}

@media (max-width: 575px) {
  body.sacti-admin-template { font-size: 13.5px; }
  h1, .h1 { font-size: 24px !important; }
  .container-fluid.sacti-container { padding-left: 14px; padding-right: 14px; }
  .card, .form-card, .dashboard-panel { padding: 16px; }
  .dashboard-hero, .hero { padding: 20px; border-radius: 15px; }
  .dashboard-hero h1, .hero h1 { font-size: 24px !important; }
  .sb-stat { min-height: 82px; }
  .table-wrap th, .table-wrap td { padding: 9px 10px; }
  .sacti-login-card .card-body { padding: 24px 18px; }
  .landing-main { width: min(100% - 20px, 1180px); margin-top: 14px; }
  .landing-hero { border-radius: 18px; padding: 24px 18px; }
  .landing-hero h1 { font-size: 30px !important; }
  .landing-slider { min-height: 240px; }
  .landing-menu a { padding: 8px 10px; font-size: 12px; }
}

@media print {
  .nav-header,
  .header,
  .nk-sidebar,
  .footer,
  .btn,
  .actions { display: none !important; }
  .content-body { margin-left: 0 !important; padding-top: 0 !important; }
  .card,
  .table-wrap { box-shadow: none !important; border: 1px solid #ddd !important; }
}

.landing-about.header-image {
  margin-top: 26px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--sacti-border);
  border-radius: var(--sacti-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.88)),
    url('background.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--sacti-shadow);
}

.about-stats span {
  display: block;
  padding: 18px;
  border: 1px solid #edf0f7;
  border-radius: 16px;
  background: #fff;
  color: var(--sacti-text);
  box-shadow: 0 8px 20px rgba(18,48,25,.05);
  text-align: center;
}

.about-stats b {
  display: block;
  color: var(--sacti-green);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stats small,
.gallery-empty span,
.service-card small {
  display: block;
}

.gallery-empty i {
  display: block;
  color: var(--sacti-green);
  font-size: 28px;
  margin-bottom: 8px;
}


/* Patch: logo sidebar single image tanpa box putih */
.nav-header .brand-logo {
  height: 100%;
  padding-left: 18px;
  padding-right: 56px;
}

.nav-header .brand-logo a {
  height: 100%;
  width: 100%;
  min-width: 0;
  display: flex !important;
  align-items: center;
}

.sacti-brand-mark {
  width: auto;
  min-width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  flex: 0 0 auto;
}

.sacti-sidebar-logo {
  display: block !important;
  width: auto;
  max-width: 138px;
  max-height: 54px;
  object-fit: contain;
}

.sacti-logo-full,
.sacti-logo-mini {
  display: none !important;
}

#main-wrapper.menu-toggle .nav-header,
body[data-sidebar-style="mini"] .nav-header,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .nav-header {
  width: 6rem !important;
  overflow: visible;
}

#main-wrapper.menu-toggle .nav-header .brand-logo,
body[data-sidebar-style="mini"] .nav-header .brand-logo,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .nav-header .brand-logo {
  width: 6rem !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-wrapper.menu-toggle .nav-header .brand-logo a,
body[data-sidebar-style="mini"] .nav-header .brand-logo a,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .nav-header .brand-logo a {
  width: 6rem !important;
  padding: 0 !important;
  justify-content: center;
  gap: 0;
}

#main-wrapper.menu-toggle .sacti-brand-title,
body[data-sidebar-style="mini"] .sacti-brand-title,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .sacti-brand-title {
  display: none !important;
}

#main-wrapper.menu-toggle .sacti-brand-mark,
body[data-sidebar-style="mini"] .sacti-brand-mark,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .sacti-brand-mark {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#main-wrapper.menu-toggle .sacti-sidebar-logo,
body[data-sidebar-style="mini"] .sacti-sidebar-logo,
body[data-sidebar-style="compact"] #main-wrapper.menu-toggle .sacti-sidebar-logo {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

#main-wrapper.menu-toggle .nav-header .nav-control {
  right: -54px;
  top: 22px;
}

#main-wrapper.menu-toggle .nav-control .hamburger .line {
  background: var(--sacti-text) !important;
}

@media (max-width: 767px) {
  .nav-header .brand-logo {
    padding-left: 14px;
    padding-right: 46px;
  }

  .sacti-sidebar-logo {
    max-width: 124px;
  }

  #main-wrapper.menu-toggle .nav-header .nav-control {
    right: 14px;
    top: 22px;
  }
}

/* SACTI v5 responsive workflow improvements */
.sacti-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.sacti-page-head h1{margin-bottom:4px}.sacti-filter{padding:18px;margin-bottom:18px}.sacti-checks{display:flex;gap:14px;flex-wrap:wrap;padding-top:8px}.sacti-checks label{font-weight:600;display:inline-flex;gap:6px;align-items:center}.btn-icon{width:38px;height:34px;display:inline-flex!important;align-items:center;justify-content:center;padding:0!important}.sacti-action-cell{min-width:210px}.sacti-inline-reject{display:flex;gap:6px;margin-top:7px;align-items:center}.sacti-inline-reject .form-control{max-width:170px}.sacti-upload-final{display:flex;gap:8px;align-items:center;margin-top:7px;flex-wrap:wrap}.sacti-upload-final input[type=file]{max-width:210px}.sacti-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}.sacti-hero{border-radius:18px;padding:28px;margin-bottom:22px;color:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;overflow:hidden;position:relative}.sacti-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(29,110,45,.90),rgba(29,110,45,.65));z-index:0}.sacti-hero>*{position:relative;z-index:1}.sacti-hero h1{color:#fff;margin:10px 0 4px}.sacti-hero p{color:rgba(255,255,255,.9);margin:0}.sacti-hero-actions{display:flex;gap:8px;flex-wrap:wrap}.sacti-metric-row{margin-bottom:18px}.sacti-metric{display:flex;align-items:center;gap:14px;padding:18px}.sacti-metric span{width:46px;height:46px;border-radius:14px;background:#eaf7ed;color:#1f7a34;display:flex;align-items:center;justify-content:center;font-size:20px}.sacti-metric small{display:block;color:#6c757d;text-transform:uppercase;font-weight:700;font-size:11px;letter-spacing:.04em}.sacti-metric b{font-size:30px;color:#1f7a34}.sacti-bars{display:flex;flex-direction:column;gap:12px}.sacti-bar-label{display:flex;justify-content:space-between;gap:12px;font-size:13px}.sacti-bar-track{height:10px;background:#eef1f4;border-radius:999px;overflow:hidden}.sacti-bar-track span{display:block;height:100%;background:#1f7a34;border-radius:999px}.sacti-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sacti-quick-grid a{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px;border:1px solid #eef1f4;border-radius:16px;color:#263238;background:#fff}.sacti-quick-grid i{font-size:24px;color:#1f7a34}.track-page{max-width:1100px;margin:0 auto;padding:24px}.track-card{border-radius:20px;padding:30px;color:#fff;margin-bottom:20px;position:relative;overflow:hidden}.track-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(29,110,45,.92),rgba(29,110,45,.65));z-index:0}.track-card>*{position:relative;z-index:1}.track-card h1{color:#fff}.track-card p{color:rgba(255,255,255,.9)}.track-form{display:flex;gap:10px;max-width:620px}.track-logs{margin:0;padding-left:18px;min-width:210px}.track-logs li{margin-bottom:8px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.form-card .row>[class*=col-]{margin-bottom:14px}.badge.warn{background:#f6c343;color:#2e2e2e}.badge.ok{background:#1f8f43;color:#fff}.badge.danger{background:#dc3545;color:#fff}
@media(max-width:991px){.sacti-hero{align-items:flex-start;flex-direction:column}.sacti-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sacti-action-cell{min-width:180px}.sacti-inline-reject{flex-direction:column;align-items:stretch}.sacti-inline-reject .form-control{max-width:none}.sacti-upload-final{flex-direction:column;align-items:stretch}.sacti-upload-final input[type=file]{max-width:none}.track-form{flex-direction:column}}
@media(max-width:767px){.sacti-container{padding-left:12px!important;padding-right:12px!important}.sacti-page-head{display:block}.sacti-page-head .actions{margin-top:10px}.card{border-radius:14px}.sacti-hero{padding:20px;border-radius:14px}.sacti-metric{padding:14px}.sacti-metric b{font-size:24px}.sacti-quick-grid{grid-template-columns:1fr}.btn:not(.btn-icon){white-space:normal}.table-responsive table{min-width:720px}.track-page{padding:12px}.track-card{padding:22px;border-radius:14px}.landing-menu{flex-wrap:wrap}.landing-menu a{font-size:13px}.landing-actions{flex-direction:column}.landing-actions .btn{width:100%;justify-content:center}}

/* SACTI v6 Mobile Dashboard Layout Fix
   Memperbaiki sidebar/topbar/card agar rapi di layar HP. */
@media (max-width: 767.98px) {
  html,
  body.sacti-admin-template {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.sacti-admin-template {
    font-size: 14px !important;
  }

  #main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Topbar mobile: hamburger tetap tampil, logo sidebar tidak memakan ruang */
  .nav-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 58px !important;
    height: 60px !important;
    min-height: 60px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 1060 !important;
    overflow: visible !important;
  }

  .nav-header .brand-logo {
    display: none !important;
  }

  .nav-header .nav-control {
    position: fixed !important;
    left: 12px !important;
    right: auto !important;
    top: 12px !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--sacti-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(18, 48, 25, .10) !important;
  }

  .nav-header .hamburger,
  .hamburger {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 22px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-header .hamburger .line,
  .hamburger .line,
  .nav-control .hamburger .line {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 4px 0 !important;
    border-radius: 999px !important;
    background: var(--sacti-text) !important;
  }

  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    margin-left: 0 !important;
    padding: 0 10px 0 60px !important;
    z-index: 1050 !important;
    border-radius: 0 !important;
  }

  .header-content {
    height: 60px !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .header-left {
    float: none !important;
    margin-left: 0 !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    max-width: calc(100% - 74px) !important;
  }

  .sacti-page-context {
    min-width: 0 !important;
    padding-left: 0 !important;
  }

  .sacti-page-context span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .sacti-page-context small {
    display: none !important;
  }

  .header-right {
    float: none !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  .header-right ul {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-right .icons {
    position: relative !important;
    margin: 0 !important;
  }

  .header-right .icons > a {
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .header-right .log-user > span:not(.sacti-avatar),
  .header-right .log-user > .fa-caret-down {
    display: none !important;
  }

  .sacti-avatar {
    width: 32px !important;
    height: 32px !important;
    margin-right: 0 !important;
  }

  .drop-down,
  .dropdown-profile {
    width: min(320px, calc(100vw - 24px)) !important;
    right: 0 !important;
    left: auto !important;
    top: 54px !important;
  }

  /* Sidebar mobile off-canvas */
  .nk-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -286px !important;
    width: 280px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding-top: 70px !important;
    z-index: 1045 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transition: left .24s ease !important;
    box-shadow: 8px 0 24px rgba(18, 48, 25, .18) !important;
  }

  #main-wrapper.menu-toggle .nk-sidebar,
  body.menu-toggle .nk-sidebar,
  body[data-sidebar-style="overlay"] #main-wrapper.menu-toggle .nk-sidebar {
    left: 0 !important;
  }

  .nk-sidebar .nk-nav-scroll,
  .nk-sidebar .slimScrollDiv {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .nk-sidebar .metismenu > li > a {
    min-height: 42px !important;
    padding: 11px 16px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nk-sidebar .nav-label {
    padding: 16px 16px 7px !important;
  }

  #main-wrapper.menu-toggle::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(18, 48, 25, .34);
    pointer-events: none;
  }

  .content-body {
    width: 100% !important;
    margin-left: 0 !important;
    padding-top: 72px !important;
    min-height: calc(100vh - 72px) !important;
  }

  .content-body .container-fluid,
  .container-fluid.sacti-container,
  .sacti-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px 0 !important;
  }

  .footer {
    padding: 12px !important;
    margin-left: 0 !important;
  }

  .footer .copyright p {
    text-align: center !important;
    margin: 0 !important;
  }

  h1,
  .h1 {
    font-size: 24px !important;
    line-height: 1.16 !important;
    letter-spacing: -.02em !important;
  }

  h2,
  .h2 {
    font-size: 19px !important;
  }

  .subtitle,
  .page-head p,
  .sacti-page-head p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .sacti-hero,
  .dashboard-hero,
  .hero {
    display: block !important;
    padding: 18px !important;
    margin-bottom: 16px !important;
    border-radius: 18px !important;
  }

  .sacti-hero h1,
  .dashboard-hero h1,
  .hero h1 {
    font-size: 24px !important;
    margin-top: 8px !important;
  }

  .sacti-hero p,
  .dashboard-hero p,
  .hero p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .sacti-hero-actions,
  .dashboard-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .sacti-hero-actions .btn,
  .dashboard-hero-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .row > [class*="col-"],
  .row > .col {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .sacti-metric-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
  }

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

  .card.sacti-metric,
  .sacti-metric {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 86px !important;
    padding: 16px !important;
    margin-bottom: 0 !important;
    border-radius: 18px !important;
  }

  .sacti-metric > span {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: var(--sacti-green-soft) !important;
    color: var(--sacti-green) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
  }

  .sacti-metric > span i {
    color: var(--sacti-green) !important;
    font-size: 18px !important;
  }

  .sacti-metric > div {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    line-height: 1.15 !important;
  }

  .sacti-metric small {
    display: block !important;
    margin-bottom: 5px !important;
    color: var(--sacti-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .03em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  .sacti-metric b {
    display: block !important;
    color: var(--sacti-green) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .card,
  .table-wrap,
  .form-card,
  .dashboard-panel,
  .landing-panel {
    border-radius: 18px !important;
    margin-bottom: 14px !important;
  }

  .card,
  .form-card,
  .dashboard-panel {
    padding: 0 !important;
  }

  .card-body,
  .form-card > form,
  .form-card > .card-body {
    padding: 16px !important;
  }

  .card h4,
  .card-body h4,
  .dashboard-panel h4 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .table-responsive,
  .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-responsive table,
  .table-wrap table {
    min-width: 640px !important;
  }

  .table th,
  .table td,
  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    vertical-align: top !important;
    white-space: nowrap !important;
  }

  .table td small,
  .table-wrap td small {
    white-space: normal !important;
  }

  .sacti-bars {
    gap: 10px !important;
  }

  .sacti-bar-label {
    gap: 10px !important;
    font-size: 13px !important;
  }

  .btn {
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .btn-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
  }

  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    min-height: 42px !important;
    font-size: 14px !important;
  }

  .sacti-filter,
  .page-head,
  .sacti-page-head {
    margin-bottom: 14px !important;
  }

  .sacti-filter .row > [class*="col-"] {
    margin-bottom: 10px !important;
  }

  .sacti-action-cell {
    min-width: 160px !important;
  }

  .sacti-inline-reject,
  .sacti-upload-final,
  .track-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .sacti-inline-reject .form-control,
  .sacti-upload-final input[type="file"] {
    max-width: none !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .header {
    margin-left: 6rem !important;
    width: calc(100% - 6rem) !important;
  }

  .content-body {
    margin-left: 6rem !important;
  }

  .sacti-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .sacti-metric-row > [class*="col-"] {
    margin-bottom: 12px !important;
  }
}

/* SACTI v7 Mobile Form + Sidebar Logo Alignment Fix */
*, *::before, *::after {
  box-sizing: border-box;
}

.sacti-sidebar-mobile-brand {
  display: none;
}

.form-card,
.card,
.dashboard-panel,
.table-wrap {
  max-width: 100%;
}

.field,
.form-group,
.form-row,
.form-card .row,
.card .row {
  min-width: 0;
}

.field input,
.field select,
.field textarea,
.form-control,
.input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 767.98px) {
  /* Sidebar terbuka: tampilkan logo aplikasi di dalam sidebar, di atas label Dashboard */
  .nk-sidebar {
    padding-top: 0 !important;
    background: #fff !important;
  }

  .sacti-sidebar-mobile-brand {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 82px !important;
    padding: 14px 18px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--sacti-border) !important;
  }

  .sacti-sidebar-mobile-brand a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    color: var(--sacti-text) !important;
    text-decoration: none !important;
  }

  .sacti-sidebar-mobile-brand img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .sacti-sidebar-mobile-brand strong,
  .sacti-sidebar-mobile-brand small {
    display: block !important;
    line-height: 1.15 !important;
  }

  .sacti-sidebar-mobile-brand strong {
    color: var(--sacti-green) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  .sacti-sidebar-mobile-brand small {
    margin-top: 3px !important;
    color: var(--sacti-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .nk-sidebar .nk-nav-scroll {
    padding-top: 0 !important;
  }

  .nk-sidebar .nav-label:first-child {
    padding-top: 18px !important;
  }

  /* Form mobile: paksa rata kiri-kanan dan cegah input keluar dari card */
  .content-body,
  .content-body .container-fluid,
  .container-fluid.sacti-container,
  .sacti-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .form-card,
  .card.form-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    overflow: hidden !important;
  }

  .form-card > form,
  .card.form-card > form,
  .form-card > .card-body {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .form-card .row,
  .card.form-card .row,
  .sacti-filter .row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .form-card .row > [class*="col-"],
  .card.form-card .row > [class*="col-"],
  .sacti-filter .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 14px !important;
  }

  .field,
  .form-group {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }

  .field label,
  .form-group label,
  label.form-label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--sacti-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }

  .field input:not([type="checkbox"]):not([type="radio"]),
  .field select,
  .field textarea,
  .form-control,
  .input,
  input.form-control,
  select.form-control,
  textarea.form-control,
  select,
  textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  textarea.form-control,
  .field textarea,
  textarea {
    min-height: 104px !important;
  }

  .input-icon {
    width: 100% !important;
    max-width: 100% !important;
  }

  .input-icon input {
    min-width: 0 !important;
  }

  .sacti-page-head,
  .page-head {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sacti-page-head .actions,
  .page-head .actions,
  .actions {
    width: 100% !important;
  }

  .actions .btn:not(.btn-icon) {
    min-width: 0 !important;
  }

  /* Tabel mobile: tetap rapi dengan scroll horizontal, bukan melebar merusak layout */
  .table-wrap,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-wrap table,
  .table-responsive table,
  table.table {
    width: max-content !important;
    min-width: 680px !important;
    max-width: none !important;
  }

  .table-wrap::after,
  .table-responsive::after {
    content: "Geser tabel ke samping";
    display: block;
    padding: 8px 12px 10px;
    color: var(--sacti-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
  }

  .card:not(.sacti-metric):not(.form-card),
  .dashboard-panel {
    overflow: hidden !important;
  }
}


/* SACTI v8 Mobile Sidebar Logo Uncovered Fix
   Sidebar mobile dibuat mulai di bawah topbar agar logo aplikasi tidak tertutup tombol hamburger/header. */
@media (max-width: 767.98px) {
  #main-wrapper.menu-toggle .nk-sidebar,
  body.menu-toggle .nk-sidebar,
  body[data-sidebar-style="overlay"] #main-wrapper.menu-toggle .nk-sidebar,
  .nk-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    padding-top: 0 !important;
    z-index: 1045 !important;
  }

  .sacti-sidebar-mobile-brand {
    position: sticky !important;
    top: 0 !important;
    min-height: 96px !important;
    padding: 18px 18px 14px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--sacti-border) !important;
    box-shadow: 0 4px 14px rgba(18,48,25,.04) !important;
  }

  .sacti-sidebar-mobile-brand img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  .sacti-sidebar-mobile-brand strong {
    font-size: 18px !important;
  }

  .sacti-sidebar-mobile-brand small {
    font-size: 11px !important;
  }

  .nk-sidebar .nk-nav-scroll {
    padding-top: 0 !important;
  }

  .nk-sidebar .nav-label:first-child {
    padding-top: 18px !important;
  }

  #main-wrapper.menu-toggle::after {
    top: 60px !important;
    z-index: 1040 !important;
  }

  .nav-header,
  .header {
    z-index: 1060 !important;
  }

  .nav-header .nav-control {
    z-index: 1070 !important;
  }
}


/* SACTI v9 Mobile Menu Button Restore Fix
   Memastikan tombol hamburger / close tetap tampil di kiri atas setelah sidebar mobile dibuka. */
@media (max-width: 767.98px) {
  body.sacti-admin-template .nav-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 64px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 12050 !important;
    pointer-events: none !important;
  }

  body.sacti-admin-template .nav-header .brand-logo {
    display: none !important;
  }

  body.sacti-admin-template .nav-header .nav-control,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .nav-control,
  body.sacti-admin-template.menu-toggle .nav-header .nav-control {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 11px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid var(--sacti-border) !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 22px rgba(18, 48, 25, .16) !important;
    transform: none !important;
    z-index: 12060 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body.sacti-admin-template .nav-header .hamburger,
  body.sacti-admin-template .hamburger,
  body.sacti-admin-template #main-wrapper.menu-toggle .hamburger,
  body.sacti-admin-template.menu-toggle .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 22px !important;
    height: 18px !important;
    min-width: 22px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: transparent !important;
    transform: none !important;
    z-index: 12061 !important;
    pointer-events: auto !important;
  }

  body.sacti-admin-template .hamburger .line,
  body.sacti-admin-template .nav-header .hamburger .line,
  body.sacti-admin-template .nav-control .hamburger .line {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: var(--sacti-text) !important;
    opacity: 1 !important;
    transform-origin: center !important;
  }

  /* Saat menu terbuka, icon berubah menjadi X agar jelas tombol close. */
  body.sacti-admin-template #main-wrapper.menu-toggle .hamburger .line:nth-child(1),
  body.sacti-admin-template.menu-toggle .hamburger .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .hamburger .line:nth-child(2),
  body.sacti-admin-template.menu-toggle .hamburger .line:nth-child(2) {
    opacity: 0 !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .hamburger .line:nth-child(3),
  body.sacti-admin-template.menu-toggle .hamburger .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  body.sacti-admin-template .header {
    z-index: 12000 !important;
  }

  body.sacti-admin-template .nk-sidebar {
    z-index: 11900 !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle::after {
    z-index: 11800 !important;
  }
}

/* SACTI v10 Table/Form Padding Fix
   Merapikan padding filter, DataTables, form atas halaman, dan kolom tabel agar teks tidak menabrak border. */

/* Area kontrol/filter di atas tabel: Akun Pengguna, Data Pegawai, Hari Libur, Rekap Cuti */
.card > .dataTables_wrapper,
.table-wrap > .dataTables_wrapper,
.dashboard-panel > .dataTables_wrapper,
.sacti-table-panel > .dataTables_wrapper,
.sacti-datatable-wrap > .dataTables_wrapper {
  padding: 18px !important;
}

.dataTables_wrapper {
  width: 100% !important;
}

.dataTables_wrapper .row {
  min-width: 0 !important;
}

.dataTables_wrapper .row:first-child {
  align-items: center !important;
  row-gap: 12px !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
  margin-bottom: 12px !important;
}

.dataTables_wrapper .row:first-child > [class*="col-"],
.dataTables_wrapper .row:first-child > .col,
.dataTables_wrapper .row:first-child > div {
  min-width: 0 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  float: none !important;
  margin: 0 !important;
  color: var(--sacti-text) !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--sacti-text) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.dataTables_wrapper .dataTables_length select {
  width: auto !important;
  min-width: 74px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 7px 30px 7px 12px !important;
  margin: 0 4px !important;
  border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_filter input {
  width: min(100%, 280px) !important;
  min-width: 190px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  margin-left: 4px !important;
  border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding-top: 14px !important;
  margin-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .pagination .page-link {
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  line-height: 1.2 !important;
}

/* Form/filter box di bagian atas halaman */
.sacti-filter,
.filter-card,
.filter-box,
.search-card,
.card.sacti-filter,
.card.filter-card {
  padding: 18px !important;
  overflow: visible !important;
}

.sacti-filter .form-group,
.sacti-filter .field,
.filter-card .form-group,
.filter-card .field,
.filter-box .form-group,
.filter-box .field {
  margin-bottom: 12px !important;
}

.sacti-filter label,
.filter-card label,
.filter-box label,
.search-card label {
  display: block !important;
  margin-bottom: 7px !important;
  color: var(--sacti-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.sacti-filter input:not([type="checkbox"]):not([type="radio"]),
.sacti-filter select,
.sacti-filter textarea,
.filter-card input:not([type="checkbox"]):not([type="radio"]),
.filter-card select,
.filter-card textarea,
.filter-box input:not([type="checkbox"]):not([type="radio"]),
.filter-box select,
.filter-box textarea,
.search-card input:not([type="checkbox"]):not([type="radio"]),
.search-card select,
.search-card textarea {
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 11px !important;
  line-height: 1.45 !important;
}

/* Tabel: tambah jarak aman antara teks dan border kolom */
.table-wrap table,
.table-responsive table,
.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-wrap th,
.table-wrap td,
.table-responsive th,
.table-responsive td,
.table th,
.table td {
  padding: 14px 16px !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
  border-color: #e8edf4 !important;
}

.table-wrap th,
.table-responsive th,
.table th {
  font-size: 13px !important;
  white-space: nowrap !important;
}

.table-wrap td,
.table-responsive td,
.table td {
  font-size: 13.5px !important;
  overflow-wrap: anywhere !important;
}

.table-wrap td .actions,
.table-responsive td .actions,
.table td .actions {
  gap: 7px !important;
  justify-content: flex-start !important;
}

.table-wrap td .btn-icon,
.table-responsive td .btn-icon,
.table td .btn-icon {
  flex: 0 0 auto !important;
}

/* Card yang berisi form langsung tanpa .card-body */
.card > form:not(.no-padding),
.dashboard-panel > form:not(.no-padding),
.form-card > form:not(.no-padding) {
  padding: 18px !important;
}

.form-card > form:not(.no-padding) {
  padding: 0 !important;
}

.card > .table-responsive,
.card > .table-wrap,
.dashboard-panel > .table-responsive,
.dashboard-panel > .table-wrap {
  margin-top: 0 !important;
}

/* Mobile specific */
@media (max-width: 767.98px) {
  .card > .dataTables_wrapper,
  .table-wrap > .dataTables_wrapper,
  .dashboard-panel > .dataTables_wrapper,
  .sacti-table-panel > .dataTables_wrapper,
  .sacti-datatable-wrap > .dataTables_wrapper {
    padding: 14px !important;
  }

  .dataTables_wrapper .row,
  .dataTables_wrapper .row:first-child,
  .dataTables_wrapper .row:last-child {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .dataTables_wrapper .row > [class*="col-"],
  .dataTables_wrapper .row > .col,
  .dataTables_wrapper .row > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    width: 100% !important;
    align-items: flex-start !important;
  }

  .dataTables_wrapper .dataTables_filter label {
    display: block !important;
  }

  .dataTables_wrapper .dataTables_filter input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 7px 0 0 !important;
  }

  .dataTables_wrapper .dataTables_length label {
    flex-wrap: wrap !important;
  }

  .dataTables_wrapper .dataTables_length select {
    min-width: 82px !important;
    margin: 0 4px !important;
  }

  .dataTables_wrapper .dataTables_info {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    padding-top: 8px !important;
  }

  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .pagination {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }

  .sacti-filter,
  .filter-card,
  .filter-box,
  .search-card,
  .card.sacti-filter,
  .card.filter-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .sacti-filter .row,
  .filter-card .row,
  .filter-box .row,
  .search-card .row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .sacti-filter .row > [class*="col-"],
  .filter-card .row > [class*="col-"],
  .filter-box .row > [class*="col-"],
  .search-card .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
  }

  .table-responsive,
  .table-wrap {
    padding: 0 !important;
    border-radius: 16px !important;
  }

  .table-responsive table,
  .table-wrap table,
  table.table {
    min-width: 760px !important;
  }

  .table-wrap th,
  .table-wrap td,
  .table-responsive th,
  .table-responsive td,
  .table th,
  .table td {
    padding: 12px 14px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    vertical-align: middle !important;
  }

  .table-wrap td,
  .table-responsive td,
  .table td {
    white-space: normal !important;
  }

  .table-wrap th,
  .table-responsive th,
  .table th {
    white-space: nowrap !important;
  }

  .table-wrap td .btn-icon,
  .table-responsive td .btn-icon,
  .table td .btn-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

/* SACTI v11 Hari Libur Table/Form Padding Fix
   Perbaikan khusus halaman Hari Libur agar kolom tanggal/keterangan/tipe/aksi tidak menabrak border. */
.sacti-holiday-page .sacti-holiday-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.sacti-holiday-page .sacti-generate-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}

.sacti-holiday-page .sacti-generate-form .input {
  width: 126px !important;
  min-width: 126px !important;
}

.sacti-holiday-filter.card,
.sacti-holiday-form.card {
  padding: 20px !important;
  overflow: visible !important;
}

.sacti-holiday-filter .grid,
.sacti-holiday-form .grid {
  align-items: end !important;
}

.sacti-holiday-filter .field,
.sacti-holiday-form .field {
  margin-bottom: 0 !important;
  min-width: 0 !important;
}

.sacti-holiday-filter .input,
.sacti-holiday-form .input,
.sacti-holiday-form select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 14px !important;
  min-height: 44px !important;
}

.sacti-holiday-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 16px !important;
}

.sacti-holiday-table {
  width: 100% !important;
  min-width: 760px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

.sacti-holiday-table th,
.sacti-holiday-table td {
  padding: 16px 18px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e8edf4 !important;
  border-right: 1px solid #f1f4f8 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.sacti-holiday-table th:last-child,
.sacti-holiday-table td:last-child {
  border-right: 0 !important;
}

.sacti-holiday-table th:nth-child(1),
.sacti-holiday-table td:nth-child(1) {
  width: 150px !important;
  white-space: nowrap !important;
}

.sacti-holiday-table th:nth-child(2),
.sacti-holiday-table td:nth-child(2) {
  width: auto !important;
  min-width: 330px !important;
}

.sacti-holiday-table th:nth-child(3),
.sacti-holiday-table td:nth-child(3) {
  width: 160px !important;
  white-space: nowrap !important;
}

.sacti-holiday-table th:nth-child(4),
.sacti-holiday-table td:nth-child(4) {
  width: 136px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.sacti-holiday-table td.actions,
table td.actions,
.table td.actions,
.table-wrap td.actions,
.table-responsive td.actions {
  display: table-cell !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
}

.sacti-holiday-table td.actions .sacti-row-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important;
}

.sacti-holiday-table td.actions form {
  display: inline-flex !important;
  margin: 0 !important;
}

.sacti-holiday-table .badge {
  max-width: 100% !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  .sacti-holiday-page .sacti-holiday-actions {
    display: block !important;
  }

  .sacti-holiday-page .sacti-holiday-actions > div {
    margin-bottom: 12px !important;
  }

  .sacti-holiday-page .sacti-generate-form {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    width: 100% !important;
  }

  .sacti-holiday-page .sacti-generate-form .input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .sacti-holiday-page .sacti-generate-form .btn {
    min-width: 48px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .sacti-holiday-filter.card,
  .sacti-holiday-form.card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .sacti-holiday-filter .grid,
  .sacti-holiday-form .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .sacti-holiday-filter .field,
  .sacti-holiday-form .field {
    margin-bottom: 0 !important;
  }

  .sacti-holiday-table-wrap {
    margin-top: 16px !important;
    padding: 0 !important;
  }

  .sacti-holiday-table {
    min-width: 720px !important;
    table-layout: fixed !important;
  }

  .sacti-holiday-table th,
  .sacti-holiday-table td {
    padding: 14px 16px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .sacti-holiday-table th:nth-child(1),
  .sacti-holiday-table td:nth-child(1) { width: 132px !important; }
  .sacti-holiday-table th:nth-child(2),
  .sacti-holiday-table td:nth-child(2) { width: 300px !important; }
  .sacti-holiday-table th:nth-child(3),
  .sacti-holiday-table td:nth-child(3) { width: 146px !important; }
  .sacti-holiday-table th:nth-child(4),
  .sacti-holiday-table td:nth-child(4) { width: 118px !important; }
}

/* SACTI v11 Rekap Cuti Filter Padding Fix
   Merapikan field/filter bagian atas, terutama halaman admin/rekap-cuti.php. */
form.card,
.card.sacti-filter,
.card.filter-card,
.filter-card,
.filter-box,
.search-card {
  padding: 22px !important;
  overflow: visible !important;
  border-radius: 18px !important;
}

form.card > .grid,
form.card > .row,
.card.sacti-filter > .grid,
.card.filter-card > .grid,
.filter-card > .grid,
.filter-box > .grid,
.search-card > .grid {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: end !important;
  gap: 18px !important;
}

form.card .field,
.card.sacti-filter .field,
.card.filter-card .field,
.filter-card .field,
.filter-box .field,
.search-card .field {
  min-width: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

form.card .field label,
.card.sacti-filter .field label,
.card.filter-card .field label,
.filter-card .field label,
.filter-box .field label,
.search-card .field label {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--sacti-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

form.card .input,
form.card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
form.card select,
form.card textarea,
.card.sacti-filter .input,
.card.sacti-filter input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.card.sacti-filter select,
.card.sacti-filter textarea,
.card.filter-card .input,
.card.filter-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.card.filter-card select,
.card.filter-card textarea,
.filter-card .input,
.filter-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.filter-card select,
.filter-card textarea,
.filter-box .input,
.filter-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.filter-box select,
.filter-box textarea,
.search-card .input,
.search-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.search-card select,
.search-card textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 11px 15px !important;
  border: 1px solid #dbe2ec !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  line-height: 1.45 !important;
  box-sizing: border-box !important;
}

form.card .btn,
.card.sacti-filter .btn,
.card.filter-card .btn,
.filter-card .btn,
.filter-box .btn,
.search-card .btn {
  min-height: 46px !important;
  padding: 10px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Khusus rekap cuti: tabel bawah lebih lega dan tidak menempel border. */
body.sacti-admin-template .table-wrap table th,
body.sacti-admin-template .table-wrap table td {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

@media (max-width: 767.98px) {
  form.card,
  .card.sacti-filter,
  .card.filter-card,
  .filter-card,
  .filter-box,
  .search-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  form.card > .grid,
  form.card .grid,
  .card.sacti-filter > .grid,
  .card.filter-card > .grid,
  .filter-card > .grid,
  .filter-box > .grid,
  .search-card > .grid,
  form.card > .row,
  .card.sacti-filter > .row,
  .card.filter-card > .row,
  .filter-card > .row,
  .filter-box > .row,
  .search-card > .row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  form.card .field,
  .card.sacti-filter .field,
  .card.filter-card .field,
  .filter-card .field,
  .filter-box .field,
  .search-card .field {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  form.card .field label,
  .card.sacti-filter .field label,
  .card.filter-card .field label,
  .filter-card .field label,
  .filter-box .field label,
  .search-card .field label {
    margin-bottom: 7px !important;
  }

  form.card .btn,
  .card.sacti-filter .btn,
  .card.filter-card .btn,
  .filter-card .btn,
  .filter-box .btn,
  .search-card .btn {
    width: 100% !important;
  }

  body.sacti-admin-template .table-wrap table th,
  body.sacti-admin-template .table-wrap table td {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* SACTI dashboard clickable approval cards */
.sacti-metric-link,
.sacti-metric-link:hover,
.sacti-metric-link:focus {
  text-decoration: none !important;
  color: inherit;
}
.sacti-metric-link {
  position: relative;
  min-height: 116px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sacti-metric-link:hover,
.sacti-metric-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18,48,25,.13);
  border-color: rgba(33,136,56,.35);
}
.sacti-metric-link em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 600;
  color: var(--sacti-muted);
}
.sacti-metric-arrow {
  margin-left: auto;
  color: var(--sacti-green);
  opacity: .45;
  transition: opacity .16s ease, transform .16s ease;
}
.sacti-metric-link:hover .sacti-metric-arrow,
.sacti-metric-link:focus .sacti-metric-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.sacti-metric-link.metric-waiting {
  border-color: rgba(240,165,27,.35);
}
.sacti-metric-link.metric-waiting > span {
  background: rgba(240,165,27,.15);
  color: #b57400;
}
.sacti-metric-link.metric-waiting b {
  color: #b57400;
}
.sacti-metric-link.metric-scan > span {
  background: rgba(13,110,253,.11);
  color: #0d6efd;
}
.sacti-metric-link.metric-scan b {
  color: #0d6efd;
}
.sacti-metric-link.metric-doc > span {
  background: rgba(25,135,84,.11);
  color: #198754;
}
.sacti-metric-link.metric-doc b {
  color: #198754;
}
.sacti-approval-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -4px 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(240,165,27,.35);
  background: linear-gradient(135deg, rgba(240,165,27,.14), rgba(255,255,255,.92));
  box-shadow: var(--sacti-shadow);
}
.sacti-approval-callout > div:first-child {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,165,27,.18);
  color: #b57400;
  flex: 0 0 auto;
}
.sacti-approval-callout > div:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}
.sacti-approval-callout b,
.sacti-approval-callout span {
  display: block;
}
.sacti-approval-callout span {
  color: var(--sacti-muted);
  font-size: 13px;
  margin-top: 2px;
}
.sacti-verif-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sacti-verif-chip,
.sacti-verif-chip:hover,
.sacti-verif-chip:focus {
  text-decoration: none !important;
}
.sacti-verif-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--sacti-border);
  background: #fff;
  color: var(--sacti-text);
  box-shadow: 0 8px 22px rgba(18,48,25,.06);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.sacti-verif-chip:hover,
.sacti-verif-chip:focus,
.sacti-verif-chip.active {
  border-color: rgba(33,136,56,.38);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(18,48,25,.10);
}
.sacti-verif-chip i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green);
}
.sacti-verif-chip span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--sacti-muted);
  font-weight: 700;
  font-size: 13px;
}
.sacti-verif-chip b {
  font-size: 24px;
  line-height: 1;
  color: var(--sacti-green);
}
.sacti-result-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--sacti-green-soft);
  color: var(--sacti-green-dark);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .sacti-verif-shortcuts {
    grid-template-columns: 1fr;
  }
  .sacti-approval-callout {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sacti-approval-callout .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .sacti-metric-link {
    min-height: 104px;
  }
  .sacti-metric-arrow {
    position: absolute;
    right: 14px;
    top: 14px;
  }
  .sacti-metric-link em {
    padding-right: 24px;
  }
  .sacti-verif-chip {
    min-height: 62px;
    padding: 12px;
  }
  .sacti-verif-chip b {
    font-size: 22px;
  }
}

/* SACTI v6 Template/Mobile/User Upload Patch
   Merapikan lacak cuti, sidebar/topbar, KPI pegawai, dan upload PDF TTD ASN. */

/* Background gambar untuk header/dashboard/sidebar mobile.
   Prioritas: public/assets/gambar/bacground.jpg (sesuai request), fallback background.jpg bila tersedia. */
.sacti-hero.header-image,
.landing-hero.header-image,
.track-hero.header-image,
.landing-about.header-image {
  background-image:
    linear-gradient(135deg, rgba(18,48,25,.88), rgba(33,136,56,.68)),
    url('gambar/bacground.jpg'),
    url('gambar/background.jpg'),
    url('background.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Topbar profile dropdown: cegah tombol Keluar/Ubah Password turun jauh dan melebar. */
.header .header-content {
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
}
.header-left {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.header-right {
  flex: 0 0 auto !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
}
.header-right > ul,
.header-right ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.header-right .icons {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.header-right .icons > a.log-user {
  height: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--sacti-border) !important;
  box-shadow: 0 6px 18px rgba(18,48,25,.06) !important;
  line-height: 1 !important;
}
.header-right .drop-down,
.header-right .dropdown-profile {
  position: absolute !important;
  top: calc(100% - 6px) !important;
  right: 0 !important;
  left: auto !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 34px rgba(18,48,25,.16) !important;
  z-index: 13000 !important;
}
.header-right .dropdown-content-body {
  padding: 8px !important;
  background: #fff !important;
}
.header-right .dropdown-content-body ul {
  display: block !important;
  height: auto !important;
}
.header-right .dropdown-content-body li,
.header-right .dropdown-content-body a {
  width: 100% !important;
}
.header-right .dropdown-content-body a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: var(--sacti-text) !important;
}

/* Logo sidebar dan toggle: tanpa box putih, ukuran seimbang, toggle tidak menutupi judul. */
.nav-header {
  position: fixed !important;
  overflow: visible !important;
}
.brand-logo {
  padding: 12px 14px 54px 14px !important;
}
.sacti-brand-mark {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sacti-brand-mark img,
.sacti-sidebar-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}
.nav-header .nav-control {
  position: absolute !important;
  right: 18px !important;
  left: auto !important;
  bottom: 12px !important;
  top: auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: 20 !important;
}
.nav-header .nav-control .hamburger {
  width: 22px !important;
  height: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-header .nav-control .hamburger .line {
  width: 22px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 999px !important;
}
#main-wrapper.menu-toggle .brand-logo,
body.menu-toggle .brand-logo {
  padding: 12px 10px 54px !important;
}
#main-wrapper.menu-toggle .sacti-brand-mark,
body.menu-toggle .sacti-brand-mark {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto !important;
}
#main-wrapper.menu-toggle .sacti-sidebar-logo,
body.menu-toggle .sacti-sidebar-logo {
  max-width: 42px !important;
  max-height: 42px !important;
}
#main-wrapper.menu-toggle .nav-header .nav-control,
body.menu-toggle .nav-header .nav-control {
  left: 50% !important;
  right: auto !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
}

/* Lacak cuti tanpa login mengikuti template terbaru. */
body.sacti-track-template {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(33,136,56,.14), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(240,165,27,.10), transparent 32rem),
    #f4f8f5;
}
.track-template-page {
  max-width: 1180px !important;
  padding: clamp(16px, 3vw, 34px) !important;
}
.track-nav .landing-logo {
  background: transparent !important;
  border-radius: 0 !important;
}
.track-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
  min-height: 320px;
  margin-bottom: 20px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--sacti-shadow);
}
.track-hero .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}
.track-hero h1 {
  color: #fff !important;
  max-width: 720px;
  margin: 0 0 10px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
}
.track-hero p {
  max-width: 720px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
}
.track-form-modern {
  display: flex;
  gap: 10px;
  width: min(100%, 680px);
  max-width: none;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
}
.track-form-modern .form-control {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 13px !important;
  padding: 10px 14px !important;
}
.track-form-modern .btn {
  min-width: 132px;
  border-radius: 13px;
  background: #fff;
  color: var(--sacti-green-dark);
}
.track-hero-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  text-align: center;
}
.track-hero-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.track-hero-card b {
  color: #fff;
  font-size: 22px;
  letter-spacing: .08em;
}
.track-hero-card span {
  color: rgba(255,255,255,.86);
}
.track-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--sacti-border);
  box-shadow: var(--sacti-shadow);
}
.track-profile-card small {
  display: block;
  color: var(--sacti-green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.track-profile-card h2 {
  margin: 4px 0 2px;
}
.track-profile-card p {
  margin: 0;
  color: var(--sacti-muted);
}
.track-result-card .table-responsive {
  border: 1px solid var(--sacti-border);
  border-radius: 14px;
}
.track-table {
  margin-bottom: 0 !important;
}

/* KPI dashboard pegawai: rapi, seimbang, dan clickable. */
.sacti-user-kpi-row > [class*="col-"] {
  margin-bottom: 16px;
}
.sacti-user-kpi {
  height: 100%;
  min-height: 118px !important;
  align-items: center !important;
}
.sacti-user-kpi > span {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
}
.sacti-user-kpi b {
  margin-top: 2px;
}
.sacti-user-quick-grid a:last-child i {
  color: #0d6efd;
}
.sacti-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sacti-upload-final-user {
  margin-top: 8px !important;
  padding: 8px !important;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed var(--sacti-border);
}
.sacti-upload-final-user input[type="file"] {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--sacti-border);
  border-radius: 10px;
  background: #fff;
}

@media (min-width: 768px) {
  /* Pastikan panah toggle desktop berada di area sidebar, di bawah logo, bukan di atas judul halaman. */
  .header {
    z-index: 40 !important;
  }
  .nav-header {
    z-index: 45 !important;
  }
  .content-body,
  .header {
    overflow: visible !important;
  }
}

@media (max-width: 767.98px) {
  /* Mobile: tombol hamburger tetap kiri atas; sidebar pakai background dari assets/gambar/bacground.jpg. */
  body.sacti-admin-template .nav-header .nav-control,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .nav-control,
  body.sacti-admin-template.menu-toggle .nav-header .nav-control {
    position: fixed !important;
    top: 11px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: #fff !important;
    border-color: var(--sacti-border) !important;
    z-index: 12080 !important;
  }
  body.sacti-admin-template .nav-header .nav-control .hamburger .line {
    background: var(--sacti-text) !important;
  }
  #main-wrapper.menu-toggle .nk-sidebar,
  body.menu-toggle .nk-sidebar,
  .nk-sidebar {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.96)),
      url('gambar/bacground.jpg'),
      url('gambar/background.jpg'),
      url('background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .sacti-sidebar-mobile-brand {
    background: rgba(255,255,255,.90) !important;
    backdrop-filter: blur(10px) !important;
  }
  .sacti-sidebar-mobile-brand img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }
  .header .header-content {
    min-height: 60px !important;
    padding-left: 62px !important;
  }
  .header-right {
    height: 60px !important;
  }
  .header-right .icons > a.log-user {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .header-right .drop-down,
  .header-right .dropdown-profile {
    top: 54px !important;
    right: 8px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: calc(100vw - 24px) !important;
  }
  .track-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .track-template-page {
    padding: 14px !important;
  }
  .track-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }
  .track-hero-card {
    display: none;
  }
  .track-form-modern {
    flex-direction: column;
    padding: 8px;
  }
  .track-form-modern .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .track-profile-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .sacti-user-kpi {
    min-height: 108px !important;
    padding: 14px !important;
  }
  .sacti-user-kpi > span {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .sacti-upload-final-user {
    align-items: stretch !important;
  }
  .sacti-upload-final-user input[type="file"],
  .sacti-upload-final-user .btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* =========================================================
   SACTI v7 hotfix: landing mobile hamburger + hCaptcha textarea
   ========================================================= */
body.sacti-template-login {
  background:
    linear-gradient(135deg, rgba(18,48,25,.78), rgba(33,136,56,.58)),
    url('gambar/background.jpg') center center / cover no-repeat fixed !important;
}

.captcha-wrap {
  margin: 12px 0 14px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.captcha-wrap .h-captcha,
.captcha-wrap iframe {
  max-width: 100% !important;
}
/* hCaptcha membuat textarea token tersembunyi. CSS form global jangan sampai membuatnya tampil. */
textarea[name="h-captcha-response"],
textarea[name="g-recaptcha-response"],
textarea[id^="h-captcha-response"],
textarea[id^="g-recaptcha-response"],
.captcha-wrap textarea {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  resize: none !important;
}

.landing-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sacti-border, #dbe3ec);
  border-radius: 14px;
  background: #fff;
  color: var(--sacti-green, #218838);
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  cursor: pointer;
}
.landing-menu-toggle:focus {
  outline: 3px solid rgba(33,136,56,.16);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  body.sacti-template-login {
    background:
      linear-gradient(135deg, rgba(18,48,25,.82), rgba(33,136,56,.62)),
      url('gambar/background.jpg') center center / cover no-repeat !important;
  }

  .landing-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }
  .landing-brand {
    min-width: 0 !important;
    gap: 8px !important;
  }
  .landing-logo,
  .landing-logo-fallback {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .landing-brand b {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }
  .landing-brand small {
    display: block !important;
    max-width: 185px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }
  .landing-menu-toggle {
    display: inline-flex !important;
  }
  .landing-menu {
    grid-column: 1 / -1 !important;
    display: none !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid var(--sacti-border, #dbe3ec) !important;
    box-shadow: 0 16px 32px rgba(15,23,42,.12) !important;
    backdrop-filter: blur(12px) !important;
  }
  .landing-body.landing-menu-open .landing-menu,
  .landing-nav.is-open .landing-menu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .landing-menu a {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    border-radius: 12px !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    color: #334155 !important;
  }
  .landing-menu a:hover,
  .landing-menu .landing-login {
    color: #fff !important;
    background: var(--sacti-green, #218838) !important;
  }
}

/* =========================================================
   SACTI v8: footer landing putih + sidebar toggle arrow
   ========================================================= */
/* Footer / section bawah index utama: pakai class khusus, bukan selector h2/p global. */
.landing-about.header-image .sacti-index-footer-kicker,
.sacti-index-footer-kicker {
  color: rgba(255,255,255,.92) !important;
}
.sacti-index-footer-title {
  margin: 8px 0 10px !important;
  color: #ffffff !important;
  font-size: clamp(24px, 3.1vw, 38px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
.sacti-index-footer-desc {
  max-width: 760px !important;
  color: rgba(255,255,255,.90) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}
.sacti-index-footer {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(18,48,25,.98), rgba(33,136,56,.95)) !important;
  border-top: 0 !important;
  box-shadow: 0 -12px 28px rgba(18,48,25,.10) !important;
}
.sacti-index-footer-brand,
.sacti-index-footer-copy {
  display: inline-block !important;
  color: #ffffff !important;
}
.sacti-index-footer-brand {
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  margin-right: 8px !important;
}
.sacti-index-footer-copy {
  opacity: .92 !important;
}

/* Toggle sidebar: ganti icon hamburger menjadi arrow agar tidak terlihat seperti menu baru. */
body.sacti-admin-template .nav-header .nav-control,
body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .nav-control,
body.sacti-admin-template.menu-toggle .nav-header .nav-control {
  overflow: visible !important;
}
body.sacti-admin-template .nav-control .hamburger,
body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
body.sacti-admin-template .nav-control .hamburger .line,
body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle .line {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  transform: none !important;
}
body.sacti-admin-template .nav-control .hamburger::before,
body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle::before {
  content: "‹" !important;
  display: block !important;
  color: currentColor !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
body.sacti-admin-template #main-wrapper.menu-toggle .nav-control .hamburger::before,
body.sacti-admin-template.menu-toggle .nav-control .hamburger::before,
body.sacti-admin-template #main-wrapper.menu-toggle .nav-control .sacti-sidebar-arrow-toggle::before,
body.sacti-admin-template.menu-toggle .nav-control .sacti-sidebar-arrow-toggle::before {
  content: "›" !important;
}

/* Desktop: tombol arrow tetap di sidebar, di bawah area logo, tidak menutup judul halaman. */
@media (min-width: 768px) {
  body.sacti-admin-template .nav-header .nav-control {
    right: 16px !important;
    left: auto !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
  }
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .nav-control,
  body.sacti-admin-template.menu-toggle .nav-header .nav-control {
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
  }
}

/* Mobile: arrow sejajar dengan title halaman/topbar, bukan menutupi konten. */
@media (max-width: 767.98px) {
  body.sacti-admin-template .nav-header .nav-control,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .nav-control,
  body.sacti-admin-template.menu-toggle .nav-header .nav-control {
    position: fixed !important;
    top: 11px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid var(--sacti-border, #e6eaf0) !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.10) !important;
    z-index: 12090 !important;
  }
  body.sacti-admin-template .nav-control .hamburger,
  body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle {
    color: var(--sacti-text, #2b303b) !important;
    font-size: 30px !important;
  }
  body.sacti-admin-template .nav-control .hamburger::before,
  body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle::before {
    content: "›" !important;
  }
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-control .hamburger::before,
  body.sacti-admin-template.menu-toggle .nav-control .hamburger::before,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-control .sacti-sidebar-arrow-toggle::before,
  body.sacti-admin-template.menu-toggle .nav-control .sacti-sidebar-arrow-toggle::before {
    content: "‹" !important;
  }
  body.sacti-admin-template .header .header-content {
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 64px !important;
  }
  body.sacti-admin-template .sacti-page-context {
    justify-content: center !important;
    min-height: 42px !important;
  }
  .sacti-index-footer-title {
    font-size: 25px !important;
  }
  .sacti-index-footer-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  .sacti-index-footer-brand,
  .sacti-index-footer-copy {
    display: block !important;
    margin: 4px auto !important;
  }
}

/* SACTI v9.1 Sidebar Arrow Alignment Fix
   Toggle dipindahkan ke baris label sidebar agar sejajar dengan tulisan Dashboard.
   Saat sidebar mini, tombol berada di area putih tepat di atas icon Dashboard. */

/* Sembunyikan toggle lama di blok logo untuk desktop; mobile tetap punya tombol pembuka sidebar. */
@media (min-width: 768px) {
  body.sacti-admin-template .nav-header .sacti-mobile-nav-control {
    display: none !important;
  }
}

/* Logo header kembali fokus sebagai area branding, bukan tempat toggle. */
body.sacti-admin-template .nav-header .brand-logo {
  padding: 12px 18px !important;
}

body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .brand-logo,
body.sacti-admin-template.menu-toggle .nav-header .brand-logo,
body.sacti-admin-template[data-sidebar-style="mini"] .nav-header .brand-logo {
  padding: 10px 8px !important;
}

body.sacti-admin-template .sacti-nav-label-toggle {
  min-height: 56px !important;
  padding: 0 20px 0 26px !important;
  margin: 14px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  color: #9aa3b2 !important;
  background: #ffffff !important;
  border: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

body.sacti-admin-template .sacti-nav-label-toggle > span {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* Tombol panah inline pada label sidebar. */
body.sacti-admin-template .sacti-nav-label-toggle .sacti-inline-nav-control,
body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle .sacti-inline-nav-control,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle .sacti-inline-nav-control {
  position: static !important;
  inset: auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e8edf2 !important;
  box-shadow: 0 8px 18px rgba(18, 48, 25, .08) !important;
  transform: none !important;
  cursor: pointer !important;
  z-index: 4 !important;
}

body.sacti-admin-template .sacti-nav-label-toggle .hamburger,
body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle .hamburger,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle .hamburger {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: var(--sacti-green) !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.sacti-admin-template .sacti-nav-label-toggle .hamburger .line,
body.sacti-admin-template .sacti-mobile-nav-control .hamburger .line {
  display: none !important;
}

body.sacti-admin-template .sacti-nav-label-toggle .sacti-toggle-icon {
  display: block !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: none !important;
}

body.sacti-admin-template .sacti-nav-label-toggle .sacti-inline-nav-control:hover,
body.sacti-admin-template .sacti-nav-label-toggle .sacti-inline-nav-control:focus-within {
  border-color: rgba(31, 122, 52, .22) !important;
  box-shadow: 0 10px 22px rgba(31, 122, 52, .13) !important;
}

/* Sidebar mini: label teks hilang, tombol panah berada di field putih tepat di atas icon Dashboard. */
body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle,
body.sacti-admin-template[data-sidebar-style="mini"] .sacti-nav-label-toggle {
  height: 54px !important;
  min-height: 54px !important;
  width: 100% !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  justify-content: center !important;
  background: #ffffff !important;
}

body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle > span,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle > span,
body.sacti-admin-template[data-sidebar-style="mini"] .sacti-nav-label-toggle > span {
  display: none !important;
}

body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle .sacti-inline-nav-control,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle .sacti-inline-nav-control,
body.sacti-admin-template[data-sidebar-style="mini"] .sacti-nav-label-toggle .sacti-inline-nav-control {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #e8edf2 !important;
}

body.sacti-admin-template #main-wrapper.menu-toggle .sacti-nav-label-toggle .hamburger,
body.sacti-admin-template.menu-toggle .sacti-nav-label-toggle .hamburger,
body.sacti-admin-template[data-sidebar-style="mini"] .sacti-nav-label-toggle .hamburger {
  color: var(--sacti-green) !important;
}

body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .metismenu > li:first-child + li > a,
body.sacti-admin-template.menu-toggle .nk-sidebar .metismenu > li:first-child + li > a,
body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .metismenu > li:first-child + li > a {
  margin-top: 0 !important;
}

/* Mobile tetap membutuhkan tombol pembuka karena sidebar off-canvas tertutup. Bentuknya panah, bukan hamburger. */
@media (max-width: 767.98px) {
  body.sacti-admin-template .nav-header .sacti-mobile-nav-control,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .sacti-mobile-nav-control,
  body.sacti-admin-template.menu-toggle .nav-header .sacti-mobile-nav-control {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 11px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 13px !important;
    background: #fff !important;
    border: 1px solid var(--sacti-border) !important;
    box-shadow: 0 8px 22px rgba(18,48,25,.16) !important;
    transform: none !important;
    z-index: 12060 !important;
    pointer-events: auto !important;
  }

  body.sacti-admin-template .nav-header .sacti-mobile-nav-control .hamburger,
  body.sacti-admin-template #main-wrapper.menu-toggle .nav-header .sacti-mobile-nav-control .hamburger,
  body.sacti-admin-template.menu-toggle .nav-header .sacti-mobile-nav-control .hamburger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--sacti-green) !important;
    background: transparent !important;
    transform: none !important;
  }

  body.sacti-admin-template .nav-header .sacti-mobile-nav-control .sacti-toggle-icon {
    display: block !important;
    font-size: 16px !important;
  }

  body.sacti-admin-template .sacti-nav-label-toggle {
    margin-top: 8px !important;
  }

  body.sacti-admin-template .sacti-nav-label-toggle .sacti-inline-nav-control {
    display: none !important;
  }
}

/* =========================================================
   SACTI v10: Toggle sidebar sebagai teks "Tutup Menu" + perapian mini sidebar
   ========================================================= */
/* Matikan pseudo arrow lama agar tidak dobel dengan icon FontAwesome. */
body.sacti-admin-template .sacti-sidebar-arrow-toggle::before,
body.sacti-admin-template .nav-control .hamburger::before,
body.sacti-admin-template .nav-control .sacti-sidebar-arrow-toggle::before {
  content: none !important;
  display: none !important;
}

@media (min-width: 768px) {
  /* Baris kontrol sidebar penuh: menggantikan tulisan abu-abu DASHBOARD. */
  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 22px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    border: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    overflow: hidden !important;
  }

  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control,
  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: 42px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text {
    width: auto !important;
    height: 42px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    color: #9aa3b2 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text:hover,
  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text:focus {
    color: var(--sacti-green, #218838) !important;
  }

  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-icon {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: currentColor !important;
    margin: 0 !important;
  }

  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-text {
    display: inline-flex !important;
    align-items: center !important;
    color: currentColor !important;
  }

  /* Sidebar mini: panah berada di dalam field putih, sejajar dengan logo dan icon Dashboard. */
  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar,
  body.sacti-admin-template.menu-toggle .nk-sidebar,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar {
    overflow: hidden !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .nk-nav-scroll,
  body.sacti-admin-template.menu-toggle .nk-sidebar .nk-nav-scroll,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .nk-nav-scroll {
    overflow: visible !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .sacti-nav-label-toggle {
    height: 58px !important;
    min-height: 58px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 0 !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .sacti-nav-label-toggle .sacti-inline-nav-control {
    width: 100% !important;
    height: 58px !important;
    min-width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .sacti-nav-label-toggle .sacti-menu-toggle-text {
    width: 100% !important;
    height: 58px !important;
    min-width: 100% !important;
    min-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--sacti-green, #218838) !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-text,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-text,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-text {
    display: none !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-icon,
  body.sacti-admin-template.menu-toggle .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-icon,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .sacti-nav-label-toggle .sacti-toggle-icon {
    font-size: 16px !important;
  }

  /* Link menu mini tidak boleh keluar dari sidebar. */
  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .metismenu > li,
  body.sacti-admin-template.menu-toggle .nk-sidebar .metismenu > li,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .metismenu > li {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .metismenu > li > a,
  body.sacti-admin-template.menu-toggle .nk-sidebar .metismenu > li > a,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .metismenu > li > a {
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .metismenu > li > a i,
  body.sacti-admin-template.menu-toggle .nk-sidebar .metismenu > li > a i,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .metismenu > li > a i {
    width: 54px !important;
    min-width: 54px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .metismenu > li > a .nav-text,
  body.sacti-admin-template.menu-toggle .nk-sidebar .metismenu > li > a .nav-text,
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .metismenu > li > a .nav-text {
    display: none !important;
  }

  body.sacti-admin-template #main-wrapper.menu-toggle .nk-sidebar .nav-label:not(.sacti-nav-label-toggle),
  body.sacti-admin-template.menu-toggle .nk-sidebar .nav-label:not(.sacti-nav-label-toggle),
  body.sacti-admin-template[data-sidebar-style="mini"] .nk-sidebar .nav-label:not(.sacti-nav-label-toggle) {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body.sacti-admin-template .nk-sidebar .sacti-nav-label-toggle {
    display: none !important;
  }
}

/* Badge Tentang SACTI dibuat sama gaya dengan badge "Sistem Administrasi Cuti Terintegrasi": teks putih di atas background putih transparan. */
.landing-about.header-image .sacti-index-footer-kicker,
.landing-about.header-image .section-kicker.sacti-index-footer-kicker,
.sacti-index-footer-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

.landing-about.header-image .sacti-index-footer-kicker i,
.landing-about.header-image .section-kicker.sacti-index-footer-kicker i {
  color: #ffffff !important;
}

/* SACTI v11 - Testing V2 leave workflow polish */
.sacti-balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}.sacti-balance-card{background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:18px;padding:16px 18px;box-shadow:0 12px 32px rgba(15,23,42,.06)}.sacti-balance-card small{display:block;color:#6b7280;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.sacti-balance-card b{display:block;font-size:34px;line-height:1;color:#15803d;margin:8px 0 2px}.sacti-balance-card span{font-size:13px;color:#6b7280}.sacti-annual-source{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 8px}.sacti-radio-card{display:flex;align-items:center;gap:10px;border:1px solid #dbe3ef;border-radius:16px;background:#fff;padding:12px 14px;cursor:pointer;min-height:74px}.sacti-radio-card input{width:18px;height:18px;accent-color:#15803d}.sacti-radio-card span{display:flex;flex-direction:column;gap:3px}.sacti-radio-card b{font-size:14px;color:#111827}.sacti-radio-card small{font-size:12px;color:#6b7280}.sacti-radio-card:has(input:checked){border-color:#15803d;background:#f0fdf4;box-shadow:0 0 0 3px rgba(21,128,61,.08)}.sacti-form-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sacti-action-buttons form{display:inline-flex}.sacti-riwayat-actions .sacti-action-buttons{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.sacti-upload-final-user,.sacti-upload-final{margin-top:8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sacti-upload-final-user input[type=file],.sacti-upload-final input[type=file]{max-width:260px;border:1px solid #d8dee9;border-radius:10px;padding:7px;background:#fff;font-size:12px}.sacti-result-note{margin-bottom:12px}.sacti-filter .row{row-gap:12px}.sacti-print-status-note{font-size:12px;color:#6b7280}@media(max-width:767.98px){.sacti-balance-grid,.sacti-annual-source{grid-template-columns:1fr}.sacti-balance-card{padding:14px 16px}.sacti-balance-card b{font-size:28px}.sacti-form-actions{justify-content:stretch}.sacti-form-actions .btn{width:100%;justify-content:center}.sacti-upload-final-user,.sacti-upload-final{display:grid;grid-template-columns:1fr;align-items:stretch}.sacti-upload-final-user input[type=file],.sacti-upload-final input[type=file]{max-width:none;width:100%}.sacti-riwayat-actions .sacti-action-buttons{justify-content:flex-start}.sacti-radio-card{min-height:66px}.sacti-radio-card b{font-size:13px}}

/* SACTI v13 - Testing V3 polish */
.track-form-modern{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto;gap:10px;align-items:end}.track-form-modern .form-control{min-height:46px}.sacti-track-template .track-table th,.sacti-track-template .track-table td{vertical-align:top}.btn-info.btn-icon,.btn.btn-info{background:#0ea5e9!important;border-color:#0ea5e9!important;color:#fff!important}.btn-warning.btn-icon,.btn.btn-warning{background:#f59e0b!important;border-color:#f59e0b!important;color:#111827!important}.btn-danger.btn-icon,.btn.btn-danger{background:#ef4444!important;border-color:#ef4444!important;color:#fff!important}.btn-success.btn-icon,.btn.btn-success{background:#16a34a!important;border-color:#16a34a!important;color:#fff!important}.btn-primary.btn-icon,.btn.btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}.sacti-result-note{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px;color:#374151}.sacti-admin-template .table th:first-child,.sacti-admin-template .table td:first-child{white-space:nowrap}.sacti-checks{display:flex;gap:14px;flex-wrap:wrap;align-items:center;min-height:42px}.sacti-checks label{display:inline-flex;gap:8px;align-items:center;margin:0}.sacti-page-head .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sacti-action-cell .btn-icon,.actions .btn-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0}.approved-cell{font-weight:800;background:#d9ead3!important}@media(max-width:767.98px){.track-form-modern{grid-template-columns:1fr}.track-form-modern .btn{width:100%;justify-content:center}.sacti-checks{display:grid;grid-template-columns:1fr;gap:8px}.sacti-page-head{gap:12px}.sacti-page-head .actions{width:100%;justify-content:flex-start}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.sacti-action-cell{min-width:220px}.sacti-filter .row>[class*="col-"]{margin-bottom:10px}}


/* SACTI v14 - About landing text white custom classes
   Khusus teks yang ada di section Tentang SACTI pada index utama.
   Tidak memakai selector default h2/p global. */
.landing-about.header-image .sacti-index-about-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18) !important;
}

.landing-about.header-image .sacti-index-about-desc {
  color: rgba(255, 255, 255, .96) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .16) !important;
}

.landing-about.header-image .sacti-index-about-title::selection,
.landing-about.header-image .sacti-index-about-desc::selection {
  color: #ffffff !important;
  background: rgba(37, 99, 235, .72) !important;
}
