/* =========================================================
   SISTEM INFORMASI HR — SANTA CLARA
   Tema "mewah profesional": navy dalam + emas antik
   Dimuat terakhir; menimpa ACE / Bootstrap 3 dengan !important.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --sc-navy-950: #070f1e;
  --sc-navy-900: #0d1f38;
  --sc-navy-850: #122544;
  --sc-navy-800: #16304f;
  --sc-navy-700: #1f3d5f;
  --sc-navy-600: #2b5079;

  --sc-gold-100: #f6ead0;
  --sc-gold-200: #ecdcaa;
  --sc-gold-300: #e3c878;
  --sc-gold-400: #d4af37;
  --sc-gold-500: #c9a227;
  --sc-gold-600: #9a7b2d;
  --sc-gold-700: #6e5a1f;

  --sc-ivory: #f6f1e4;
  --sc-paper: #f5f1e6;
  --sc-paper-2: #ece7d8;
  --sc-line: #e0d9c6;
  --sc-ink: #1d2430;
  --sc-muted: #6b7690;

  --sc-shadow-card: 0 18px 50px -12px rgba(7, 15, 30, 0.45), 0 4px 14px rgba(7, 15, 30, 0.18);
  --sc-shadow-soft: 0 8px 30px -10px rgba(7, 15, 30, 0.3);
  --sc-gold-glow: 0 0 22px rgba(212, 175, 55, 0.35);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* =========================================================
   1. HALAMAN LOGIN — formal, institusional, tenang
   ========================================================= */
body.login-layout {
  background: #0a1322 !important;
  min-height: 100vh;
  font-family: var(--font-sans) !important;
  color: var(--sc-ivory);
  overflow-x: hidden;
}

/* ---------- latar: guilloché banknote, sangat halus ---------- */
.sc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 760px at 50% 20%, rgba(30, 52, 80, 0.55) 0%, rgba(10, 19, 34, 0) 62%),
    repeating-radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.045) 0 1px, transparent 1px 46px),
    repeating-radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.028) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(246, 241, 228, 0.012) 0 2px, transparent 2px 6px),
    #0a1322;
}

/* ---------- bingkai ganda bergaya sertifikat ---------- */
.sc-frame {
  position: fixed;
  inset: 16px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.38);
}
.sc-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.16);
}
.sc-corner {
  position: absolute;
  color: rgba(212, 175, 55, 0.6);
  font-size: 15px;
  line-height: 1;
}
.sc-tl { top: 10px; left: 12px; }
.sc-tr { top: 10px; right: 12px; }
.sc-bl { bottom: 10px; left: 12px; }
.sc-br { bottom: 10px; right: 12px; }

/* =========================================================
   Panggung utama — simetris, lapang, formal
   ========================================================= */
.sc-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 18px 30px;
  text-align: center;
}

/* ---------- medali statis ---------- */
.sc-medal {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.sc-medal-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 34%, #1b3450 0%, #101f36 62%, #0a1626 100%);
  border: 2px solid rgba(227, 200, 120, 0.62);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    inset 0 0 0 5px rgba(10, 19, 34, 0.9),
    inset 0 0 0 6.4px rgba(227, 200, 120, 0.35);
}
.sc-medal-core img { width: 64px; height: 64px; object-fit: contain; }

/* ---------- wordmark institusional ---------- */
.sc-stage-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-indent: 0.38em;
  color: var(--sc-gold-400);
  margin-bottom: 12px;
}
.sc-stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-ivory);
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.sc-stage-title .grad {
  display: block;
  font-size: clamp(2.5rem, 6.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.05;
  margin-top: 4px;
  background: linear-gradient(172deg, #f2e0a4 0%, #e3c878 32%, #d4af37 50%, #a87f22 68%, #e9cd82 88%, #f9efc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sc-stage-tag {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93a1b8;
  margin: 12px 0 0;
}

.sc-stage-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, 74vw);
  margin: 16px 0 18px;
}
.sc-stage-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 200, 120, 0.55), transparent);
}
.sc-stage-divider .gem { color: var(--sc-gold-400); font-size: 11px; }

/* ---------- panel kaca: form ---------- */
.sc-panel {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(173deg, rgba(21, 38, 61, 0.92) 0%, rgba(13, 25, 42, 0.94) 100%);
  border: 1px solid rgba(227, 200, 120, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(227, 200, 120, 0.16);
  padding: 22px 30px 16px;
  position: relative;
  text-align: left;
}
.sc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 200, 120, 0.75), transparent);
}

/* ---------- field ---------- */
.sc-field { position: relative; margin-bottom: 14px; }
.sc-field label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9faebf;
  margin-bottom: 6px;
}
.sc-input {
  width: 100% !important;
  height: 46px !important;
  background: rgba(7, 16, 30, 0.75) !important;
  border: 1px solid rgba(163, 178, 200, 0.22) !important;
  border-radius: 6px !important;
  color: var(--sc-ivory) !important;
  font-size: 15px !important;
  font-family: var(--font-sans) !important;
  padding: 0 16px 0 44px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
  box-sizing: border-box !important;
}
.sc-input::placeholder { color: #5b6b83 !important; }
.sc-input:focus {
  outline: none !important;
  border-color: var(--sc-gold-400) !important;
  background: rgba(8, 18, 34, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), inset 0 1px 5px rgba(0,0,0,0.45) !important;
}
.sc-field .sc-icon {
  position: absolute;
  left: 15px;
  bottom: 14px;
  color: #7f93ab;
  font-size: 16px;
  pointer-events: none;
  transition: color .2s ease;
}
.sc-field:focus-within .sc-icon { color: var(--sc-gold-400); }

/* ---------- tombol MASUK ---------- */
.sc-submit {
  width: 100%;
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em;
  color: #241a04;
  background: linear-gradient(180deg, #d8bd6a 0%, #c9a227 45%, #a87f22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(84,60,5,0.35);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .16s ease, filter .16s ease;
}
.sc-submit:hover { transform: translateY(-1px); filter: brightness(1.07); }
.sc-submit:active { transform: translateY(1px); filter: brightness(0.98); }

/* ---------- lupa password ---------- */
.sc-recover {
  display: block;
  text-align: center;
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #a7b4c9;
  text-decoration: none;
  transition: color .2s ease;
}
.sc-recover span { color: var(--sc-gold-400); }
.sc-recover:hover { color: #d7e0ef; text-decoration: none; }

/* ---------- alert ---------- */
.sc-alert {
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(32, 27, 11, 0.55);
  padding: 10px 14px;
  font-size: 12px;
  color: #e8ddb5;
  margin-bottom: 13px;
}
.sc-alert.error { border-color: rgba(206, 102, 102, 0.55); background: rgba(48, 15, 15, 0.5); color: #f2c5c5; }
.sc-alert.success { border-color: rgba(112, 190, 131, 0.5); background: rgba(15, 38, 23, 0.5); color: #b9e4c5; }
.sc-alert ul { margin: 0; padding-left: 16px; }

/* ---------- chips & footer panggung ---------- */
.sc-stage-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-indent: 0.3em;
  color: rgba(227, 200, 120, 0.55);
}
.sc-stage-chips i { font-style: normal; font-size: 8px; color: rgba(227, 200, 120, 0.35); }

.sc-stage-foot {
  margin-top: 11px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: #55637b;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sc-stage-foot .dot { color: rgba(227, 200, 120, 0.4); }
.sc-stage-foot a { color: #8fa3bd; text-decoration: none; }
.sc-stage-foot a:hover { color: var(--sc-gold-300); }

/* ---------- responsif ---------- */
@media (max-width: 560px) {
  .sc-frame { inset: 10px; }
  .sc-stage { padding: 8vh 30px 16px; justify-content: flex-start; }
  .sc-medal { width: 108px; height: 108px; margin-bottom: 14px; }
  .sc-medal-core img { width: 58px; height: 58px; }
  .sc-stage-title { letter-spacing: 0.1em; }
  .sc-stage-chips { display: none; }
  .sc-panel { padding: 20px 18px 14px; }
}

/* ---------- aksesibilitas ---------- */
@media (prefers-reduced-motion: reduce) {
  .sc-panel, .sc-input, .sc-submit { transition: none !important; }
}

/* =========================================================
   2. PORTAL SHELL (HRD)
   ========================================================= */
body.navbar-fixed {
  font-family: var(--font-sans) !important;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(13, 31, 56, 0.10), transparent 60%),
    var(--sc-paper) !important;
  color: var(--sc-ink);
}

/* ---------- top navbar ---------- */
.navbar-fixed-top .navbar-inner,
.navbar .navbar-inner {
  background: linear-gradient(180deg, #122544 0%, #0d1f38 78%) !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 6px 22px -8px rgba(7, 15, 30, 0.65) !important;
  min-height: 60px !important;
  padding-top: 2px;
}

.navbar .brand {
  padding: 6px 14px 5px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
}
.navbar .brand:hover { background: rgba(212, 175, 55, 0.06) !important; }

.sc-brandmark { display: flex; flex-direction: column; line-height: 1.05; }
.sc-brandmark .t1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sc-gold-300);
}
.sc-brandmark .t2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--sc-ivory);
  margin-top: 2px;
  white-space: nowrap;
}
.sc-brandmark .t2 span { color: var(--sc-gold-300); }

.navbar .brand img {
  height: 44px !important;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 3px;
  background: rgba(7, 15, 30, 0.6);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  margin: 0 !important;
}

/* nav icons (ace-nav) */
.ace-nav > li > a { color: #c8d2e2 !important; padding: 14px 12px !important; }
.ace-nav > li > a:hover { color: var(--sc-gold-300) !important; background: rgba(212, 175, 55, 0.07) !important; }
.ace-nav .badge {
  background: linear-gradient(180deg, var(--sc-gold-300), var(--sc-gold-500)) !important;
  color: #241a04 !important;
  border: 0 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* user chip */
.nav-user-photo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--sc-gold-400) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}
.user-info { color: var(--sc-ivory) !important; font-size: 12px; line-height: 1.25 !important; }
.user-info small { color: var(--sc-gold-300) !important; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* dropdown menus */
.dropdown-menu, .user-menu {
  background: #122544 !important;
  border: 1px solid rgba(227, 200, 120, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 40px rgba(7, 15, 30, 0.5) !important;
  padding: 6px !important;
}
.dropdown-menu > li > a, .user-menu > li > a {
  color: #d5deeb !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
}
.dropdown-menu > li > a:hover, .user-menu > li > a:hover {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--sc-gold-200) !important;
}
.dropdown-menu .divider { background: rgba(227, 200, 120, 0.18) !important; border: 0 !important; height: 1px !important; }
.dropdown-header { color: var(--sc-gold-400) !important; }

/* role chooser select inside navbar */
.chzn-container .chzn-single {
  background: #fffdf6 !important;
  border: 1px solid #d8d0ba !important;
  color: #1d2430 !important;
  border-radius: 6px !important;
  height: 34px !important;
  line-height: 34px !important;
  box-shadow: none !important;
}
.chzn-container .chzn-single div { top: 4px !important; }
.chzn-container .chzn-single b { background-position: 0 0 !important; }
.chzn-container .chzn-single span { color: #1d2430 !important; font-size: 12px !important; }
.chzn-drop { background: #fffdf6 !important; border: 1px solid var(--sc-gold-500) !important; color: #1d2430 !important; }
.chzn-drop .chzn-search input { background: #fffdf6 !important; border: 1px solid #d8d0ba !important; color: #1d2430 !important; }
.chzn-results li { color: #1d2430 !important; }
.chzn-results .highlighted { background: rgba(212,175,55,0.35) !important; color: #241a04 !important; }

/* ---------- sidebar ---------- */
.sidebar {
  background: linear-gradient(185deg, #10233b 0%, #0d1f38 60%, #0a1626 100%) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 6px 0 24px -10px rgba(7, 15, 30, 0.55) !important;
}

.sidebar-shortcuts { border-bottom: 1px solid rgba(227, 200, 120, 0.28) !important; }
.sidebar-shortcuts-large { padding: 16px 18px !important; }
.sidebar-shortcuts-large strong {
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--sc-gold-400) !important;
}

.nav-list > li > a {
  color: #c2cddc !important;
  background: transparent !important;
  padding: 10px 12px 10px 18px !important;
  border-left: 3px solid transparent;
  font-size: 12.5px !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}
.nav-list > li > a .menu-text { font-weight: 500; }
.nav-list > li > a:hover {
  background: rgba(212, 175, 55, 0.07) !important;
  color: var(--sc-gold-200) !important;
  border-left-color: rgba(212, 175, 55, 0.4) !important;
}
.nav-list > li.open > a,
.nav-list > li.active > a {
  color: var(--sc-gold-200) !important;
  border-left-color: var(--sc-gold-400) !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.03)) !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* icons: muted gold instead of ACE blue */
.nav-list > li > a > [class*="fa fa-"]:first-child,
.nav-list > li .submenu > li > a > [class*="fa fa-"]:first-child {
  color: #8fa3bd !important;
}
.nav-list > li:hover > a > [class*="fa fa-"]:first-child,
.nav-list > li.open > a > [class*="fa fa-"]:first-child,
.nav-list > li.active > a > [class*="fa fa-"]:first-child,
.nav-list > li .submenu > li:hover > a > [class*="fa fa-"]:first-child,
.nav-list > li .submenu > li.active > a > [class*="fa fa-"]:first-child {
  color: var(--sc-gold-400) !important;
}

/* submenu */
.nav-list .submenu {
  background: #0a1828 !important;
  border-left: 1px solid rgba(212, 175, 55, 0.18);
}
.nav-list .submenu > li > a {
  color: #a9b6cb !important;
  font-size: 12px !important;
  padding: 8px 12px 8px 34px !important;
  border-left: 2px solid transparent;
}
.nav-list .submenu > li > a:hover { color: var(--sc-gold-200) !important; background: rgba(212,175,55,0.06) !important; }
.nav-list .submenu > li.active > a {
  color: var(--sc-gold-200) !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border-left-color: var(--sc-gold-400);
}

/* caret */
.nav-list > li > a .arrow { color: #6d7d94 !important; }
.nav-list > li.open > a .arrow { transform: rotate(180deg); color: var(--sc-gold-400) !important; }

/* sidebar collapse handle */
.sidebar .nav-list { scrollbar-width: thin; scrollbar-color: var(--sc-gold-600) transparent; }
.sidebar .nav-list::-webkit-scrollbar { width: 8px; }
.sidebar .nav-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.35); border-radius: 4px; }

/* ---------- main content / breadcrumb / page header ---------- */
.main-content { background: transparent !important; }
.page-content {
  background:
    radial-gradient(rgba(13, 31, 56, 0.045) 1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f7f4ea 0%, #f5f1e6 100%) !important;
  padding: 8px 22px 30px !important;
}

.breadcrumbs, #breadcrumbs {
  background: linear-gradient(90deg, rgba(13, 31, 56, 0.06), rgba(212, 175, 55, 0.10)) !important;
  border-bottom: 1px solid var(--sc-line) !important;
}
.breadcrumb > li, .breadcrumb > li > a { color: var(--sc-muted) !important; font-size: 12px !important; }
.breadcrumb > li:last-child, .breadcrumb > li:last-child > a { color: var(--sc-navy-800) !important; font-weight: 700 !important; }
.breadcrumb .divider .icon-angle-right { color: var(--sc-gold-500) !important; }
.breadcrumb .home-icon { color: var(--sc-gold-500) !important; }

.page-header { border-bottom: 2px solid rgba(13, 31, 56, 0.14) !important; padding-bottom: 12px !important; }
.page-header h1, .page-header .lighter {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--sc-navy-900) !important;
  font-size: 24px !important;
  letter-spacing: 0.01em;
}
.page-header h1 small { color: var(--sc-muted) !important; }

/* dashboard widgets */
.widget-box {
  background: #fffdf6 !important;
  border: 1px solid var(--sc-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--sc-shadow-soft) !important;
  overflow: hidden;
}
.widget-header {
  background: linear-gradient(180deg, #16304f, #122544) !important;
  border-bottom: 0 !important;
  padding: 12px 16px !important;
}
.widget-title {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: var(--sc-gold-300) !important;
}
.widget-toolbar { border-left: 1px solid rgba(227,200,120,0.25) !important; }
.widget-body { background: #fffdf6 !important; }

/* generic ACE row/cell helpers used on detail pages */
.datagrid-view, .tab-content { background: transparent !important; }
.well { background: #efeada !important; border: 1px solid var(--sc-line) !important; border-radius: 8px !important; box-shadow: none !important; }

/* ---------- buttons ---------- */
.btn {
  border-radius: 5px !important;
  font-family: var(--font-sans) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
.btn:focus { outline: 0 !important; box-shadow: 0 0 0 3px rgba(212,175,55,0.4) !important; }

.btn-primary,
.btn-info {
  background: linear-gradient(180deg, #e9cd82 0%, #d4af37 45%, #b8860b 100%) !important;
  border: 0 !important;
  color: #241a04 !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  box-shadow: 0 6px 18px -6px rgba(184, 134, 11, 0.55), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}
.btn-primary:hover, .btn-info:hover { filter: brightness(1.05); transform: translateY(-1px); color: #241a04 !important; }

.btn-success {
  background: linear-gradient(180deg, #2f6b4f, #1f5136) !important;
  border: 0 !important;
  color: #eaffef !important;
  box-shadow: 0 6px 16px -6px rgba(31, 81, 54, 0.6) !important;
}
.btn-danger {
  background: linear-gradient(180deg, #7e2f2f, #5d1f1f) !important;
  border: 0 !important;
  color: #ffe9e9 !important;
  box-shadow: 0 6px 16px -6px rgba(93, 31, 31, 0.6) !important;
}
.btn-warning {
  background: linear-gradient(180deg, #8a6d1d, #6b5414) !important;
  border: 0 !important;
  color: #fdf3c9 !important;
}
.btn-inverse {
  background: linear-gradient(180deg, #16304f, #0d1f38) !important;
  border: 1px solid rgba(227,200,120,0.4) !important;
  color: var(--sc-gold-200) !important;
}
.btn-default {
  background: #fffdf6 !important;
  border: 1px solid var(--sc-line) !important;
  color: var(--sc-navy-800) !important;
}
.btn-default:hover { border-color: var(--sc-gold-500) !important; color: var(--sc-gold-600) !important; }
.btn-xs, .btn-mini { border-radius: 4px !important; }

/* ---------- tables ---------- */
.table {
  border: 1px solid var(--sc-line) !important;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf6 !important;
}
.table thead th, .table th {
  background: linear-gradient(180deg, #16304f, #101f38) !important;
  color: var(--sc-gold-200) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  padding: 10px 12px !important;
}
.table tbody tr:nth-child(even) { background: #faf7ec !important; }
.table tbody tr:hover { background: #f1ead0 !important; }
.table td { border-top: 1px solid var(--sc-paper-2) !important; color: #2a3342 !important; font-size: 12.5px !important; vertical-align: middle !important; }

.table-bordered { border-radius: 8px; overflow: hidden; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(180deg, #e9cd82, #d4af37) !important;
  border: 0 !important;
  color: #241a04 !important;
  box-shadow: 0 3px 10px -3px rgba(184,134,11,0.55) !important;
}
.dataTables_wrapper .paginate_button { border-radius: 4px !important; }

/* ---------- forms ---------- */
label { color: #3a4356 !important; font-size: 12px; font-weight: 600; }
.form-control, input[type="text"].form-control, select.form-control, textarea.form-control,
.input-xlarge, .input-large, .input-mini, .input-small {
  background: #fffdf6 !important;
  border: 1px solid #d8d0ba !important;
  border-radius: 6px !important;
  color: var(--sc-ink) !important;
  box-shadow: inset 0 1px 2px rgba(7,15,30,0.06) !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}
.form-control:focus, .input-xlarge:focus {
  border-color: var(--sc-gold-500) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28) !important;
  background: #fffef9 !important;
  outline: 0 !important;
}
.help-block, .help-inline { color: var(--sc-muted) !important; font-size: 11px !important; }

/* chosen dropdowns for light theme */
.chzn-container .chzn-single {
  background: #fffdf6 !important;
  border: 1px solid #d8d0ba !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.chzn-drop { background: #fffdf6 !important; border: 1px solid var(--sc-gold-500) !important; color: var(--sc-ink) !important; }
.chzn-results li { color: #2a3342 !important; }
.chzn-results .highlighted { background: rgba(212,175,55,0.3) !important; color: #241a04 !important; }

/* ---------- badges / labels ---------- */
.badge, .label { border-radius: 20px !important; }
.label-info, .badge-info { background: var(--sc-navy-700) !important; color: #fff !important; }
.label-important, .badge-important { background: var(--sc-gold-500) !important; color: #241a04 !important; }
.label-success { background: #2f6b4f !important; color: #fff !important; }
.label-warning { background: #8a6d1d !important; color: #fff !important; }

/* ---------- tooltip / popover ---------- */
.tooltip-inner { background: #122544 !important; color: var(--sc-ivory) !important; border: 1px solid rgba(227,200,120,0.4) !important; }
.tooltip.top .tooltip-arrow { border-top-color: #122544 !important; }

/* ---------- footer strip & scroll-up ---------- */
#btn-scroll-up.btn-inverse {
  background: linear-gradient(180deg, #e9cd82, #d4af37) !important;
  border: 0 !important;
  color: #241a04 !important;
  border-radius: 50% !important;
  width: 38px; height: 38px; line-height: 38px;
  box-shadow: 0 8px 20px -6px rgba(184,134,11,0.6) !important;
}
.main-container { padding-bottom: 30px; }

/* ---------- snackbar + error/confirm panels ---------- */
#snackbar {
  background: #122544 !important;
  color: var(--sc-gold-200) !important;
  border: 1px solid rgba(227,200,120,0.5) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(7,15,30,0.45) !important;
}
#errorPanel #errorContent, #confirmPanel #confirmContent {
  background: #fffdf6 !important;
  border: 1px solid var(--sc-gold-500) !important;
  border-radius: 10px !important;
  box-shadow: var(--sc-shadow-card) !important;
}
#errorPanel .infoError, #confirmPanel .info { color: var(--sc-navy-800) !important; }
#errorPanel .infoError i { color: #b25b1d !important; }
.buttonerror button, #btnYesConfirm, #btnNoConfirm, #btnOkError {
  background: linear-gradient(180deg, #16304f, #0d1f38) !important;
  border: 1px solid rgba(227,200,120,0.45) !important;
  color: var(--sc-gold-200) !important;
  border-radius: 6px !important;
  padding: 6px 18px !important;
  margin: 0 4px;
}

/* ---------- print ---------- */
@media print {
  .navbar, .sidebar, .breadcrumbs, #btn-scroll-up, .loading { display: none !important; }
  .page-content, .main-content { margin: 0 !important; padding: 0 !important; background: #fff !important; }
}

/* ---------- default: sembunyikan panel error/confirm/info (tampil via JS) ---------- */
#errorPanel, #confirmPanel, #infoPanel { display: none; }

/* ---------- Hero sambutan (hrd/home) ---------- */
.sc-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  background:
    radial-gradient(600px 220px at 85% 110%, rgba(212,175,55,0.22), transparent 60%),
    linear-gradient(135deg, #122544 0%, #0d1f38 60%, #070f1e 100%);
  border: 1px solid rgba(227,200,120,0.4);
  border-radius: 12px;
  padding: 26px 30px;
  box-shadow: 0 16px 40px -14px rgba(7,15,30,0.6);
  margin: 6px 0 22px;
  position: relative;
  overflow: hidden;
}
.sc-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 26px solid rgba(212,175,55,0.06);
  pointer-events: none;
}
.sc-hero-crest {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227,200,120,0.6);
  outline: 1px solid rgba(227,200,120,0.25);
  outline-offset: 4px;
  background: radial-gradient(circle at 50% 35%, rgba(212,175,55,0.16), rgba(7,15,30,0.4) 75%);
}
.sc-hero-crest img { width: 56px; height: 56px; object-fit: contain; }
.sc-hero-crest i { font-size: 38px; color: var(--sc-gold-300); }
.sc-hero-body { flex: 1 1 auto; position: relative; z-index: 1; }
.sc-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sc-gold-400);
  margin-bottom: 6px;
}
.sc-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.22;
  color: var(--sc-ivory);
  margin: 0 0 4px;
}
.sc-hero-title span { color: var(--sc-gold-300); }
.sc-hero-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #93a1b8; margin: 0; }
.sc-hero-side { flex: 0 0 auto; text-align: right; position: relative; z-index: 1; border-left: 1px solid rgba(227,200,120,0.25); padding-left: 26px; }
.sc-hero-side-label { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: #93a1b8; }
.sc-hero-side-value { font-family: var(--font-display); font-size: 19px; color: var(--sc-gold-200); margin-top: 4px; white-space: nowrap; }

@media (max-width: 900px) {
  .sc-hero { flex-wrap: wrap; gap: 18px; padding: 20px; }
  .sc-hero-side { border-left: 0; padding-left: 0; text-align: left; width: 100%; }
}

/* ---------- ace-nav: seragamkan dengan navbar navy ---------- */
.ace-nav > li.light-blue {
  background: transparent !important;
  border-left: 1px solid rgba(227,200,120,0.18) !important;
}
.ace-nav > li.light-blue:hover { background: rgba(212,175,55,0.09) !important; }
.ace-nav > li.light-blue .dropdown-caret.dropdown-caret:before,
.ace-nav > li.light-blue .dropdown-caret.dropdown-caret:after { border-top-color: transparent !important; }
.ace-nav > li.light-blue.open .dropdown-toggle,
.ace-nav > li.light-blue.active { background: rgba(212,175,55,0.12) !important; }

/* avatar default (placeholder ikon人物) jangan terlalu lebar */
.user-info { min-width: 0 !important; }
@media (max-width: 1100px) { .user-info { display: none; } }

/* ---------- offset navbar tetap (ACE default 45px terlalu kecil) ---------- */
body.navbar-fixed { padding-top: 64px !important; }

/* ---------- Sidebar: grup bisa di-hide/show (klik judulnya); item aktif tetap dinamis ---------- */
.nav-list .submenu,
.nav-list > li > .submenu.nav-static-open { display: block !important; }
.nav-list > li.nav-group.closed > .submenu { display: none !important; }
.nav-list > li > a.nav-section-title {
  cursor: pointer !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--sc-gold-400) !important;
  padding: 14px 10px 8px 16px !important;
  line-height: 1.35 !important;
  border-left: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(227, 200, 120, 0.14);
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.nav-list > li > a.nav-section-title:hover { background: rgba(212, 175, 55, 0.07) !important; color: var(--sc-gold-300) !important; }
.nav-list > li > a.nav-section-title > [class*="fa fa-"]:first-child {
  color: var(--sc-gold-500) !important;
  font-size: 13px !important;
  flex: 0 0 auto;
}
.nav-list > li > a.nav-section-title .menu-text { transform: none !important; flex: 1 1 auto; }
.nav-list > li > a.nav-section-title .nav-section-caret {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  color: var(--sc-gold-500);
  transition: transform .22s ease;
}
.nav-list > li.nav-group.closed > a.nav-section-title .nav-section-caret { transform: rotate(-90deg); }

/* ---------- Sidebar STATIS: menempel di tempat saat halaman discroll ---------- */
@media (min-width: 768px) {
  body.navbar-fixed .sidebar {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    overflow-y: auto;
    z-index: 100 !important;
  }
}

/* ---------- Filter bar Report Kehadiran ---------- */
.sc-attendance-filter {
  background: #fffdf6;
  border-bottom: 1px solid var(--sc-line);
  padding: 16px 20px;
}
.sc-filter-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.sc-filter-group label {
  display: block;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sc-muted) !important;
  margin-bottom: 6px;
}
.sc-filter-select { min-width: 150px; }
.sc-filter-btn { height: 38px !important; padding: 0 18px !important; }
.sc-attendance-legend { font-size: 11px; color: var(--sc-muted); }
.sc-modal-subtitle { font-size: 11px; color: var(--sc-muted); margin: 6px 0 0; }

/* ---------- Progress bar % kehadiran ---------- */
.sc-progress {
  display: inline-block;
  width: 78px; height: 8px;
  background: #e8e3d4;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}
.sc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #d4af37 60%, #8a6d1d);
  border-radius: 4px;
}
.sc-progress-label { font-size: 11px; font-weight: 700; color: var(--sc-navy-800); }

/* ---------- Tombol aktif/nonaktif per user (halaman Aplikasi User) ---------- */
.btn-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-status-toggle.active {
  background: #173d28;
  border-color: #2f6b4f;
  color: #8fe0b0;
}
.btn-status-toggle.inactive {
  background: #3a241a;
  border-color: #7e2f2f;
  color: #f2a9a9;
}
.btn-status-toggle:hover { filter: brightness(1.25); }

/* ---------- Kehadiran Harian (finger) ---------- */
.sc-finger-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--sc-gold-300);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 3px;
}

.sc-holiday-banner {
  background: #fff8e7;
  border-bottom: 1px solid #e4d3a0;
  color: #6b5510;
  font-size: 12px;
  padding: 10px 20px;
}
.sc-holiday-banner i { margin-right: 8px; color: #a8862a; }

.sc-filter-date {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8d0ba;
  border-radius: 6px;
  background: #fffdf6;
  color: #1d2430;
  font-size: 12px;
  font-family: inherit;
}
.sc-filter-date:focus {
  border-color: var(--sc-gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
  outline: 0;
}

.sc-date-nav { display: flex; gap: 8px; align-items: center; padding-bottom: 0; }

.sc-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 16px;
  font-size: 11.5px;
  color: var(--sc-muted);
  border-top: 1px dashed var(--sc-line);
}
.sc-freshness-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #b9b2a1;
  display: inline-block;
}
.sc-freshness-dot.live {
  background: #2f9e5f;
  box-shadow: 0 0 0 0 rgba(47, 158, 95, 0.5);
  animation: scPulse 1.8s infinite;
}
@keyframes scPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 95, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(47, 158, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 95, 0); }
}

/* ---------- Stat strip ---------- */
.sc-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px 4px;
  background: #fffdf6;
  border-top: 1px dashed var(--sc-line);
}
.sc-stat {
  flex: 1 1 120px;
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #faf6ea);
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.05);
}
.sc-stat-wide { flex: 1.4 1 160px; }
.sc-stat-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fffdf6;
}
.sc-stat-icon-total { background: #0d1f38; }
.sc-stat-icon-hadir { background: #2f6b4f; }
.sc-stat-icon-terlambat { background: #8a6d1d; }
.sc-stat-icon-sakit { background: #7e2f2f; }
.sc-stat-icon-izin { background: #34495e; }
.sc-stat-icon-alpa { background: #4a4a4a; }
.sc-stat-icon-percent { background: linear-gradient(135deg, #c9a227, #8a6d1d); }
.sc-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #14213d;
  line-height: 1.1;
}
.sc-stat-num small { font-size: 13px; color: var(--sc-muted); }
.sc-stat-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-muted);
  margin-top: 3px;
}

/* ---------- Status pills ---------- */
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sc-pill-hadir { background: #173d28; border: 1px solid #2f6b4f; color: #8fe0b0; }
.sc-pill-terlambat { background: #3f3312; border: 1px solid #8a6d1d; color: #f3d57a; }
.sc-pill-sakit { background: #421c1c; border: 1px solid #7e2f2f; color: #f2a9a9; }
.sc-pill-izin { background: #1d2b38; border: 1px solid #34495e; color: #a9c6e0; }
.sc-pill-alpa { background: #2a2a2a; border: 1px solid #4a4a4a; color: #c9c9c9; }
.sc-pill-libur { background: #23263b; border: 1px solid #3d4066; color: #b9bcff; }

/* ---------- Row tints ---------- */
.sc-row-terlambat td { background: #fffdf0 !important; }
.sc-row-sakit td { background: #fdf3f3 !important; }
.sc-row-izin td { background: #f4f7fb !important; }
.sc-row-alpa td { background: #faf8f5 !important; color: #6b6b6b; }
.sc-row-libur td { background: #f5f5fa !important; color: #6a6a85; }

@media (max-width: 900px) {
  .sc-stat { flex: 1 1 44%; }
  .sc-date-nav { flex-wrap: wrap; }
}
