/* ==========================================================================
   Portal Sekolah Pascasarjana UNILAK — tema utama
   Dipakai oleh views/layouts/app.php dan views/new_login/login_25d.php
   ========================================================================== */

:root {
  --brand: #b8892a;
  --brand-600: #9a7120;
  --brand-700: #7a5816;
  --brand-50: #fbf6ea;
  --brand-100: #f2e3bd;
  --accent: #e8bf5a;
  --gold-grad: linear-gradient(135deg, #f0cf7a 0%, #d4a43c 45%, #a97b1f 100%);
  --on-gold: #2a1e05;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e5e9f2;
  --border-strong: #d6dce8;

  --success: #12a150;
  --danger: #e5484d;
  --warning: #f0a020;
  --info: #0ea5e9;

  --sidebar-bg: #15120c;
  --sidebar-bg-2: #231c10;
  --sidebar-text: #cbbfa6;
  --sidebar-text-strong: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-active: rgba(232, 191, 90, .14);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .14);

  --sidebar-w: 268px;
  --sidebar-w-mini: 76px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Beberapa view lama menimpa font body (Times New Roman); kembalikan ke font tema */
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; font-size: .9rem !important; }
td, th { font-family: inherit !important; font-size: inherit !important; }
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; letter-spacing: -.01em; }
::selection { background: var(--brand-100); }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }

.app-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  transition: width .25s var(--ease), transform .25s var(--ease);
}
.app-sidebar__brand {
  display: flex; align-items: center; gap: .75rem;
  height: var(--topbar-h); padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff; flex-shrink: 0;
}
.app-sidebar__brand:hover { color: #fff; }
.app-sidebar__logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: #fff; padding: 4px; object-fit: contain;
}
.app-sidebar__name { line-height: 1.15; overflow: hidden; white-space: nowrap; }
.app-sidebar__name strong { display: block; font-size: 1rem; letter-spacing: .02em; }
.app-sidebar__name small { display: block; font-size: .7rem; color: var(--sidebar-text); }

.app-sidebar__nav { flex: 1; overflow-y: auto; padding: 1rem .75rem 1.5rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.app-sidebar__nav::-webkit-scrollbar { width: 6px; }
.app-sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.nav-section {
  padding: 1rem .75rem .4rem; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: rgba(203, 191, 166, .5);
  white-space: nowrap;
}
.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .62rem .8rem; margin: 2px 0; border-radius: 10px;
  color: var(--sidebar-text); font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.side-link:hover, .side-link:focus { background: var(--sidebar-hover); color: var(--sidebar-text-strong); }
.side-link .side-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; opacity: .9; }
.side-link .side-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.side-link .side-caret { font-size: .7rem; transition: transform .2s var(--ease); opacity: .7; }
.side-link[aria-expanded="true"] .side-caret { transform: rotate(90deg); }
.side-link.is-active { background: var(--sidebar-active); color: #fff; }
.side-link.is-active .side-icon { color: var(--accent); }
.side-link.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.side-sub { padding: 2px 0 4px 2.15rem !important; }
.side-sub .side-link { padding: .45rem .8rem; font-size: .84rem; font-weight: 400; position: relative; }
.side-sub .side-link::before {
  content: ""; position: absolute; left: -.9rem; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor; opacity: .35; transform: translateY(-50%);
}
.side-sub .side-link.is-active { background: transparent; color: #fff; font-weight: 600; }
.side-sub .side-link.is-active::before { opacity: 1; background: var(--accent); }
.side-link--danger:hover { background: rgba(229, 72, 77, .14); color: #ffb4b6; }

.app-sidebar__foot {
  padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .72rem; color: rgba(203, 191, 166, .55); white-space: nowrap; overflow: hidden;
}

.app-main {
  margin-left: var(--sidebar-w); min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .25s var(--ease);
}

/* Topbar */
.app-topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); font-size: 1.05rem; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.icon-btn:focus { outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.app-topbar__title { min-width: 0; line-height: 1.2; }
.app-topbar__title strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar__title small { color: var(--muted); font-size: .75rem; }
.app-topbar__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 34px; padding: 0 .85rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: .78rem; font-weight: 500; white-space: nowrap;
}
.chip:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.user-btn {
  display: flex; align-items: center; gap: .6rem;
  padding: .25rem .5rem .25rem .25rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.user-btn:hover, .user-btn:focus { border-color: var(--brand-100); box-shadow: 0 0 0 3px var(--brand-50); outline: none; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: var(--on-gold);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
.avatar--lg { width: 48px; height: 48px; font-size: 1rem; }
.user-btn__meta { text-align: left; line-height: 1.15; max-width: 180px; }
.user-btn__meta strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-btn__meta small { color: var(--muted); font-size: .7rem; }
.user-menu { min-width: 260px; padding: .5rem; }
.user-menu__head { display: flex; gap: .75rem; align-items: center; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }
.user-menu__head strong { display: block; font-size: .88rem; }
.user-menu__head small { color: var(--muted); }

.app-content { flex: 1; padding: 1.5rem; }
.app-footer {
  padding: 1rem 1.5rem; color: var(--muted); font-size: .78rem;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  border-top: 1px solid var(--border);
}

.app-backdrop {
  position: fixed; inset: 0; z-index: 1035; background: rgba(21, 18, 12, .55);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}

/* Sidebar mini (desktop) */
@media (min-width: 992px) {
  body.sidebar-mini .app-sidebar { width: var(--sidebar-w-mini); }
  body.sidebar-mini .app-main { margin-left: var(--sidebar-w-mini); }
  body.sidebar-mini .app-sidebar__name,
  body.sidebar-mini .nav-section,
  body.sidebar-mini .side-label,
  body.sidebar-mini .side-caret,
  body.sidebar-mini .side-sub,
  body.sidebar-mini .app-sidebar__foot { display: none !important; }
  body.sidebar-mini .app-sidebar__brand { justify-content: center; padding: 0; }
  body.sidebar-mini .side-link { justify-content: center; padding: .7rem 0; }
  body.sidebar-mini .side-link .side-icon { font-size: 1.1rem; }
}

/* Mobile: sidebar off-canvas */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app-main { margin-left: 0; }
  body.sidebar-open .app-sidebar { transform: none; }
  body.sidebar-open .app-backdrop { opacity: 1; visibility: visible; }
  body.sidebar-open { overflow: hidden; }
}
@media (max-width: 575.98px) {
  .app-topbar { padding: 0 .75rem; }
  .app-content { padding: 1rem .75rem; }
  .app-footer { padding: 1rem .75rem; justify-content: center; text-align: center; }
}

/* ---------- Page header ---------- */
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .75rem; margin-bottom: 1.25rem;
}
.page-head h1 { font-size: 1.4rem; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

/* ---------- Komponen Bootstrap (penyesuaian tema) ---------- */
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--surface);
  margin-bottom: 1.5rem;
}
.card-header {
  background: transparent; border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; font-weight: 600;
}
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.25rem; }
.card-footer { background: var(--surface-2); border-top: 1px solid var(--border); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }

.btn {
  border-radius: var(--radius-sm); font-weight: 600; font-size: .85rem;
  padding: .5rem 1rem; transition: all .15s var(--ease);
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px var(--brand-100) !important; }
.btn-sm { padding: .35rem .7rem; font-size: .78rem; border-radius: 8px; }
.btn-xs { padding: .2rem .45rem; font-size: .72rem; border-radius: 7px; line-height: 1.4; }
.btn-lg { padding: .7rem 1.3rem; font-size: .95rem; }
.btn-primary { background: var(--gold-grad); border-color: #b8892a; color: var(--on-gold); }
.btn-primary:focus, .btn-primary.focus { color: var(--on-gold); }
.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active { background: linear-gradient(135deg, #e6c164 0%, #c39030 50%, #946a18 100%); border-color: #9a7120; color: var(--on-gold); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--gold-grad); border-color: #b8892a; color: var(--on-gold); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #3d2600; }
.btn-info { background: var(--info); border-color: var(--info); color: #fff; }
.btn-info:hover { color: #fff; }
.btn-light, .btn-default, .btn-secondary.btn-alt {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
}
.btn-light:hover, .btn-default:hover { background: var(--surface-2); color: var(--brand); border-color: var(--brand-100); }
.btn-circle { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.btn i + span, .btn span + i { margin-left: .35rem; }

.form-control, .custom-select {
  border-radius: var(--radius-sm); border-color: var(--border-strong);
  font-size: .875rem; color: var(--text); min-height: calc(1.5em + .9rem + 2px);
}
.form-control:focus, .custom-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.form-control::placeholder { color: #94a3b8; }
label, .control-label { font-weight: 600; font-size: .82rem; color: var(--text-2); margin-bottom: .35rem; }
.input-group-text { background: var(--surface-2); border-color: var(--border-strong); border-radius: var(--radius-sm); }
.custom-file-label { border-radius: var(--radius-sm); }

.table { color: var(--text); margin-bottom: 0; }
.table thead th {
  background: var(--surface-2); color: var(--muted);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border) !important; border-top: 0; white-space: nowrap; vertical-align: middle;
}
.table td, .table th { border-color: var(--border); vertical-align: middle; padding: .7rem .8rem; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--border); }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(241, 245, 249, .55); }
.table-hover tbody tr:hover, .table tbody tr:hover { background: var(--brand-50); }
.table-responsive { border-radius: var(--radius-sm); }

.nav-tabs { border-bottom: 1px solid var(--border); gap: .25rem; padding: 0 1rem; }
.nav-tabs .nav-link, .nav-tabs > li > a {
  display: block; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--muted); font-weight: 600; padding: .9rem .9rem .8rem; margin-bottom: -1px;
}
.nav-tabs .nav-link:hover, .nav-tabs > li > a:hover { color: var(--brand); border-color: transparent; }
.nav-tabs .nav-link.active, .nav-tabs > li.active > a { color: var(--brand-700); background: transparent; border-bottom-color: var(--brand); }
.nav-pills .nav-link { border-radius: var(--radius-sm); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--gold-grad); color: var(--on-gold); }
@media (max-width: 575.98px) {
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 .5rem; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs .nav-item, .nav-tabs > li { flex-shrink: 0; }
}

.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; align-items: center; }
.modal-header.bg-primary, .modal-header.bg-info, .modal-header.bg-success, .modal-header.bg-danger { color: #fff; }
.modal-header.bg-primary .modal-title, .modal-header.bg-primary .close { color: #fff; }
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-footer { border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-backdrop.show { opacity: .45; }

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .86rem; }
.alert-success { background: #e8f8ef; border-color: #bfe9d0; color: #0b6b36; }
.alert-danger { background: #fdecec; border-color: #f7c6c7; color: #a61b20; }
.alert-info { background: #e6f5fd; border-color: #b9e4f9; color: #075985; }
.alert-warning { background: #fff6e5; border-color: #fde0a8; color: #8a5400; }

.badge { font-weight: 600; border-radius: 6px; padding: .35em .6em; }
.badge-pill { border-radius: 999px; }
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: #94a3b8; }
.breadcrumb-item.active { color: var(--muted); }
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: .4rem; font-size: .86rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; color: var(--text-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-50); color: var(--brand); }
.dropdown-item i { width: 18px; text-align: center; margin-right: .4rem; opacity: .8; }
.page-link { border-color: var(--border); color: var(--text-2); }
.page-item.active .page-link { background: var(--gold-grad); border-color: #b8892a; color: var(--on-gold); }

.bg-primary { background-color: var(--brand) !important; }
.text-primary { color: var(--brand-600) !important; }
.bg-gradient-primary { background: var(--gold-grad) !important; color: var(--on-gold); }

/* DataTables */
.dataTables_wrapper { font-size: .84rem; }
.dataTables_wrapper .row:first-child { margin-bottom: .75rem; }
.dataTables_wrapper .row:last-child { margin-top: .75rem; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .35rem .6rem; margin-left: .4rem;
}
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.dataTables_wrapper .dataTables_info { color: var(--muted); padding-top: .5rem !important; }
.dataTables_wrapper .pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: 1px solid var(--border); }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: collapse !important; }
@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { text-align: left !important; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; margin: .25rem 0 0; }
  .dataTables_wrapper .dataTables_filter label { width: 100%; }
}

/* Select2 */
.select2-container--bootstrap4 .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: var(--border-strong) !important; border-radius: var(--radius-sm) !important; min-height: calc(1.5em + .9rem + 2px);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: calc(1.5em + .9rem); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(1.5em + .9rem); }
.select2-container--open { z-index: 1090; }
.select2-dropdown { border-color: var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.select2-container { width: 100% !important; }

/* SweetAlert2 */
.swal2-popup { border-radius: 16px !important; font-family: inherit !important; }
.swal2-styled.swal2-confirm { background: #b8892a !important; color: #fff !important; border-radius: 10px !important; }

/* ---------- Komponen tema ---------- */
.welcome-card {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, #3a2d14 0%, #1f190f 45%, #120f0a 100%);
  border-radius: 18px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-md);
}
.welcome-card::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07);
}
.welcome-card h2 { color: #fff; font-size: 1.45rem; margin: 0 0 .35rem; }
.welcome-card p { margin: 0; color: rgba(255, 255, 255, .82); }
.welcome-card .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; }
.welcome-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: relative; z-index: 1; }

.tile {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.15rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  color: var(--text); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); color: var(--text); }
.tile__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.tile__body { min-width: 0; flex: 1; }
.tile__body strong { display: block; font-size: .92rem; line-height: 1.3; }
.tile__body small { color: var(--muted); font-size: .76rem; }
.tile__arrow { color: #cbd5e1; transition: transform .2s, color .2s; }
.tile:hover .tile__arrow { color: var(--brand); transform: translateX(3px); }
.tone-blue   { background: #e8efff; color: #2f5bd0; }
.tone-gold   { background: #fbf1d8; color: #9a7120; }
.tone-green  { background: #e5f7ed; color: #0f8a45; }
.tone-amber  { background: #fff3dc; color: #b86e00; }
.tone-rose   { background: #ffe8ea; color: #d32f3a; }
.tone-violet { background: #f0eaff; color: #6d3fd6; }
.tone-cyan   { background: #e0f6fd; color: #0284c7; }
.tone-slate  { background: #eef1f6; color: #475569; }

.app-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.5rem; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: var(--text); }
.app-card__logo { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-50); padding: 10px; object-fit: contain; margin-bottom: 1rem; }
.app-card__role { position: absolute; top: 1.25rem; right: 1.25rem; }
.app-card h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.app-card p { color: var(--muted); margin: 0 0 1.25rem; font-size: .85rem; }
.app-card__cta { margin-top: auto; font-weight: 600; color: var(--brand); font-size: .85rem; }
.app-card__cta i { transition: transform .2s; }
.app-card:hover .app-card__cta i { transform: translateX(4px); }

.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 .85rem; }

/* ==========================================================================
   Lapisan kompatibilitas
   View lama ditulis untuk template Matrix (SIPMATCA), AdminLTE 3 (Portal) dan
   ProUI/Bootstrap 3 (SISTACA). Aturan di bawah ini membuat markup tersebut
   tetap rapi di layout baru tanpa harus menulis ulang setiap view.
   ========================================================================== */

/* Matrix: header halaman */
.page-breadcrumb { margin-bottom: 1.25rem; }
.page-breadcrumb .page-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.page-breadcrumb > .row > [class*="col-"] { flex-wrap: wrap; gap: .5rem; }
.app-content > .container-fluid, .app-content .page-wrapper > .container-fluid { padding-left: 0; padding-right: 0; }
.no-block { display: flex; }
.tabcontent-border { border: 0; }
.card > .tab-content { padding: 0; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .box { padding: 1.25rem; border-radius: var(--radius); }
.mail-desc { color: var(--muted); font-size: .78rem; }
.list-style-none { list-style: none; padding: 0; margin: 0; }
.font-24 { font-size: 24px; } .font-16 { font-size: 16px; } .font-12 { font-size: 12px; }
.p-10 { padding: 10px !important; } .p-20 { padding: 20px !important; } .p-30 { padding: 30px !important; }
.p-t-10 { padding-top: 10px !important; } .p-t-20 { padding-top: 20px !important; } .p-t-30 { padding-top: 30px !important; }
.p-b-10 { padding-bottom: 10px !important; } .p-b-20 { padding-bottom: 20px !important; }
.p-l-10 { padding-left: 10px !important; } .p-r-10 { padding-right: 10px !important; }
.m-0 { margin: 0 !important; }
.m-t-10 { margin-top: 10px !important; } .m-t-20 { margin-top: 20px !important; } .m-t-30 { margin-top: 30px !important; }
.m-b-0 { margin-bottom: 0 !important; } .m-b-10 { margin-bottom: 10px !important; } .m-b-20 { margin-bottom: 20px !important; }
.m-l-5 { margin-left: 5px !important; } .m-l-10 { margin-left: 10px !important; } .m-l-20 { margin-left: 20px !important; }
.m-r-5 { margin-right: 5px !important; } .m-r-10 { margin-right: 10px !important; } .m-r-20 { margin-right: 20px !important; }
@media (max-width: 575.98px) { .p-20 { padding: 14px !important; } }

/* AdminLTE: wrapper konten */
.content-wrapper { background: transparent; margin: 0; min-height: 0; }
.content-wrapper > .content-header,
.app-content > .content-header { padding: 0 0 1.25rem; }
.content-header h1, .content-header .m-0 { font-size: 1.4rem; font-weight: 700; color: var(--text) !important; text-shadow: none !important; }
.content-header h1 small { font-size: .9rem; font-weight: 400; color: var(--muted) !important; }
.content-wrapper > .content, .app-content > .content { padding: 0; }
.content-wrapper .container, .content-wrapper .container-fluid { max-width: none; padding-left: 0; padding-right: 0; }
.card-primary.card-outline { border-top: 3px solid var(--accent); }
.card-tools { float: right; }
.elevation-1, .elevation-2, .elevation-3 { box-shadow: var(--shadow-sm) !important; }
.img-circle { border-radius: 50%; }

/* ProUI / Bootstrap 3: SISTACA */
.content-header .header-section { padding: 0; }
.content-header .header-section h1 { margin: 0; font-size: 1.4rem; }
.content-header .header-section h1 i { color: var(--brand); margin-right: .35rem; }
.breadcrumb-top { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .8rem; color: var(--muted); }
.breadcrumb-top > li + li::before { content: "\203A"; padding: 0 .5rem; color: #94a3b8; }
.block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 1.5rem;
}
.block.full { padding: 1.25rem; }
.block-title {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  margin: -1.25rem -1.25rem 1.25rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border);
}
.block-title h2 { font-size: 1rem; margin: 0; font-weight: 700; }
.block-title .nav-tabs { border: 0; padding: 0; margin: -.9rem 0; }
.block-options { display: flex; gap: .35rem; }
.table-vcenter td, .table-vcenter th { vertical-align: middle !important; }
.table-condensed td, .table-condensed th { padding: .5rem .6rem; }
.pull-right { float: right !important; } .pull-left { float: left !important; }
.hidden, .hide { display: none !important; }
@media (max-width: 575.98px) { .hidden-xs { display: none !important; } }
.label { display: inline-block; padding: .3em .6em; font-size: .75em; font-weight: 600; border-radius: 6px; color: #fff; line-height: 1; }
.label-primary { background: var(--brand-600); } .label-success { background: var(--success); }
.label-danger { background: var(--danger); } .label-warning { background: var(--warning); color: #3d2600; }
.label-info { background: var(--info); } .label-default { background: #94a3b8; }
.help-block { display: block; margin-top: .3rem; font-size: .78rem; color: var(--muted); }
.form-horizontal .form-group, .form-group:has(> [class*="col-"]) { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.form-horizontal .form-group > [class*="col-"], .form-group > [class*="col-"] { position: relative; padding-left: 15px; padding-right: 15px; }
.form-horizontal .control-label { padding-top: calc(.45rem + 1px); }
.col-xs-1 { flex: 0 0 8.333%; max-width: 8.333%; } .col-xs-2 { flex: 0 0 16.667%; max-width: 16.667%; }
.col-xs-3 { flex: 0 0 25%; max-width: 25%; } .col-xs-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; } .col-xs-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }
[class*="col-xs-"] { position: relative; width: 100%; padding-left: 15px; padding-right: 15px; }
.btn-alt { box-shadow: none; }
.toggle-bordered.active { border-color: var(--brand); color: var(--brand); }
.modal.fade.in { opacity: 1; }

/* Ikon Glyphicons Pro (ProUI) dipetakan ke Font Awesome */
.gi, .hi { font-family: "Font Awesome 5 Free"; font-weight: 900; font-style: normal; display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased; }
.gi-list::before { content: "\f03a"; } .gi-home::before { content: "\f015"; }
.gi-exit::before { content: "\f2f5"; } .gi-wrench::before { content: "\f0ad"; }
.gi-ok::before { content: "\f00c"; } .gi-group::before { content: "\f0c0"; }
.gi-folder_plus::before { content: "\f65e"; } .gi-chevron::before, .gi-circle_arrow_right::before { content: "\f0a9"; }
.gi-wallet::before { content: "\f555"; } .gi-usd::before { content: "\f155"; }
.gi-picture::before { content: "\f03e"; } .gi-envelope::before { content: "\f0e0"; }
.gi-crown::before { content: "\f521"; } .gi-user::before { content: "\f007"; }

/* ---------- Utilitas ---------- */
.text-muted { color: var(--muted) !important; }
.fw-600 { font-weight: 600; }
.gap-2 { gap: .5rem; }
@media print {
  .app-sidebar, .app-topbar, .app-footer, .app-backdrop { display: none !important; }
  .app-main { margin: 0 !important; }
}
.min-w-0 { min-width: 0; }

/* Badge status (helper status_proses / status_pengajuan) */
.status-badge {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .3rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.2;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--wait  { background: #fff3dc; color: #a35f00; }
.status-badge--info  { background: #e0f2fe; color: #0369a1; }
.status-badge--ok    { background: #e5f7ed; color: #0b7a3b; }
.status-badge--no    { background: #ffe8ea; color: #c4262f; }
.status-badge--muted { background: #eef1f6; color: #475569; }

/* ---------- Aksen emas ---------- */
.app-sidebar__logo { background: transparent; padding: 0; border-radius: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.side-sub .side-link.is-active { box-shadow: none; }
.app-sidebar__name strong { color: var(--accent); }
.app-sidebar::before {
  /* motif garis emas tipis di sisi kanan sidebar */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(232,191,90,0) 0%, rgba(232,191,90,.45) 50%, rgba(232,191,90,0) 100%);
}
.welcome-card { border: 1px solid rgba(232, 191, 90, .25); }
.welcome-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24 Z' fill='none' stroke='%23e8bf5a' stroke-opacity='.12'/%3E%3Cpath d='M24 14 L34 24 L24 34 L14 24 Z' fill='none' stroke='%23e8bf5a' stroke-opacity='.08'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.welcome-card::after { border-color: rgba(232, 191, 90, .10); }
.welcome-card h2 { position: relative; z-index: 1; }
.welcome-card h2 span, .welcome-card h2 strong { color: var(--accent); }
.welcome-card p { position: relative; z-index: 1; color: rgba(255, 248, 230, .78); }
.welcome-card .chip { background: rgba(232, 191, 90, .12); border-color: rgba(232, 191, 90, .3); color: #f6e3b0; }
.app-card__logo { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
.app-card:hover { border-color: rgba(184, 137, 42, .45); }
.app-card__cta { color: var(--brand-600); }
.tile:hover { border-color: rgba(184, 137, 42, .35); }
.tile:hover .tile__arrow { color: var(--brand-600); }
.side-sub .side-link.is-active::before { background: var(--accent); }
.section-title::after { content: ""; display: inline-block; width: 28px; height: 2px; margin-left: .6rem; vertical-align: middle; background: var(--gold-grad); border-radius: 2px; }

/* Kartu statistik 2 kolom di layar kecil */
@media (max-width: 575.98px) {
  .col-6 > .tile { flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; }
  .col-6 > .tile .tile__icon { width: 40px; height: 40px; font-size: 1.05rem; }
}
/* Blok ProUI bersarang (SISTACA) tidak perlu bingkai ganda */
.block .block { border: 0; box-shadow: none; padding: 0; margin-bottom: 0; }
.block .block > .block-title { margin: 0 0 1.25rem; padding: 0 0 .9rem; }
.app-card--disabled { opacity: .6; cursor: not-allowed; }
.tile--active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-50); }
