/* =========================================================================
   MODERN.CSS — Light Modern SaaS overlay for AdminLTE 2 + Bootstrap 3
   Loaded AFTER all theme CSS. Overrides look & feel; markup stays intact.
   ========================================================================= */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
}
:root {
  --accent: #5b6cff;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #5b6cff 0%, #8b5cf6 100%);
  --accent-soft: #eef0ff;
  --navy: #0e1a33;
  --navy-2: #16264a;
  --navy-grad: linear-gradient(180deg, #101d3b 0%, #17294f 100%);
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #27334c;
  --ink-soft: #63718f;
  --line: #e7ecf5;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --info: #06b6d4;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(23, 41, 79, .08);
  --shadow: 0 8px 24px rgba(23, 41, 79, .10);
  --shadow-lg: 0 18px 45px rgba(23, 41, 79, .16);
}

/* ---------- Base ---------- */
html, body, .wrapper {
  background-color: var(--bg);
}
.content-wrapper { background-color: var(--bg) !important; }
.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
body {
  font-family: 'Poppins', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .box-title, .info-box-text {
  font-family: 'Poppins', 'Source Sans Pro', sans-serif;
  color: var(--ink);
}
a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-2); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd6e8; border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #aebbd6; }

/* ---------- Header ---------- */
.skin-purple-light .main-header .navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(23, 41, 79, .06);
}
.skin-purple-light .main-header .navbar .nav > li > a { color: var(--ink-soft); }
.skin-purple-light .main-header .navbar .nav > li > a:hover,
.skin-purple-light .main-header .navbar .nav > li > a:focus { color: var(--accent); background: transparent; }
.skin-purple-light .main-header .navbar .sidebar-toggle { color: var(--ink-soft); }
.skin-purple-light .main-header .navbar .sidebar-toggle:hover { color: var(--accent); background: var(--accent-soft); }

.skin-purple-light .main-header .logo {
  background: var(--navy-grad);
  color: #ffffff;
  border-bottom: none;
}
.skin-purple-light .main-header .logo:hover { background: var(--navy-grad); color: #ffffff; }
.main-header .logo b { font-weight: 600; }

.skin-purple-light .main-header li.user-header {
  background: var(--accent-grad);
}
.user-menu > .dropdown-menu > li.user-header > p > small { color: rgba(255,255,255,.85) !important; }

.navbar-nav > .user-menu .user-image {
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--accent);
}

/* ---------- Sidebar ---------- */
.skin-purple-light .wrapper,
.skin-purple-light .main-sidebar,
.skin-purple-light .left-side {
  background: var(--navy-grad);
}
.skin-purple-light .main-sidebar { border-right: none; }
.skin-purple-light .main-sidebar { box-shadow: none; }

.skin-purple-light .sidebar-menu > li.header {
  color: rgba(255,255,255,.45);
  background: transparent;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.4px;
  padding: 18px 16px 6px;
}
.skin-purple-light .sidebar a { color: #c1cbdd; }
.skin-purple-light .sidebar-menu > li {
  -webkit-transition: none; -o-transition: none; transition: none;
  margin: 2px 8px;
}
.skin-purple-light .sidebar-menu > li > a {
  border-left: none;
  border-radius: var(--r);
  font-weight: 500;
  padding: 11px 12px;
  -webkit-transition: background .18s ease, color .18s ease;
  -o-transition: background .18s ease, color .18s ease;
  transition: background .18s ease, color .18s ease;
}
.skin-purple-light .sidebar-menu > li:hover > a,
.skin-purple-light .sidebar-menu > li.active > a {
  color: #ffffff;
  background: transparent;
}
.skin-purple-light .sidebar-menu > li:hover > a { background: rgba(255,255,255,.07); }
.skin-purple-light .sidebar-menu > li.active > a {
  background: var(--accent-grad);
  box-shadow: 0 6px 16px rgba(91,108,255,.35);
  color: #fff;
}
.skin-purple-light .sidebar-menu > li.active { border-left-color: transparent; }
.skin-purple-light .sidebar-menu > li.active > a { font-weight: 600; }
.skin-purple-light .sidebar-menu > li > .treeview-menu {
  background: transparent;
  margin-top: 2px;
}
.skin-purple-light .sidebar-menu .treeview-menu > li > a {
  color: #aeb9d0;
  border-radius: var(--r);
  padding: 8px 12px 8px 26px;
  margin: 1px 0 1px 8px;
  -webkit-transition: background .18s ease, color .18s ease, padding-left .18s ease;
  -o-transition: background .18s ease, color .18s ease, padding-left .18s ease;
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.skin-purple-light .sidebar-menu .treeview-menu > li.active > a,
.skin-purple-light .sidebar-menu .treeview-menu > li > a:hover {
  color: #ffffff;
  background: rgba(255,255,255,.08);
  padding-left: 30px;
}
.skin-purple-light .sidebar-menu .treeview-menu > li.active > a {
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent-2);
  background: rgba(255,255,255,.08);
}
.skin-purple-light .sidebar-menu > li.treeview > a:after,
.skin-purple-light .sidebar a { text-decoration: none; }

/* Sidebar mini (collapsed) */
@media (min-width: 768px) {
  .skin-purple-light.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
    border-left: none;
    background: var(--navy-2);
  }
  .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a {
    background: var(--accent-grad);
    color: #fff;
  }
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
    border-radius: 0 var(--r) var(--r) 0;
    box-shadow: var(--shadow-lg);
  }
}

/* ---------- Content header & breadcrumb ---------- */
.content-header {
  padding: 22px 22px 6px;
}
.content-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.content-header h1 > small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}
.content-header > .breadcrumb {
  background: #eef1fa;
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: 12px;
}
.content-header > .breadcrumb > li > a { color: var(--accent); }
.content-header > .breadcrumb > .active { color: var(--ink-soft); }

.content {
  padding: 14px 22px 22px;
}

/* ---------- Box -> modern card ---------- */
.box {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
  -webkit-transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  -o-transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.box:hover {
  box-shadow: var(--shadow);
  border-color: #dde5f2;
}
.box-header {
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--line) !important;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.box-header.with-border { border-bottom-color: var(--line); }
.box-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.box-header > .box-tools { top: 10px; }
.btn-box-tool,
.btn-box-tool:hover { color: var(--ink-soft); }
.btn-box-tool.btn:focus { outline: none; box-shadow: none; }
.box-body {
  padding: 20px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.box-footer {
  background: #fbfcff;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 14px 20px;
}
/* colored box headers keep brand color but softer */
.box-primary > .box-header,
.box-info > .box-header,
.box-success > .box-header,
.box-warning > .box-header,
.box-danger > .box-header {
  background: var(--card);
  border-bottom: 1px solid var(--line) !important;
}
.box.box-primary { border-top: 3px solid var(--accent); }
.box.box-info { border-top: 3px solid var(--info); }
.box.box-success { border-top: 3px solid var(--green); }
.box.box-warning { border-top: 3px solid var(--amber); }
.box.box-danger { border-top: 3px solid var(--red); }
.box.box-solid { border: none; }
.box.box-solid > .box-header { color: #fff; border-bottom: none; }
.box.box-solid.box-primary > .box-header { background: var(--accent-grad); }
.box.box-solid.box-info > .box-header { background: linear-gradient(135deg,#06b6d4,#0ea5e9); }
.box.box-solid.box-success > .box-header { background: linear-gradient(135deg,#22c55e,#16a34a); }
.box.box-solid.box-warning > .box-header { background: linear-gradient(135deg,#f59e0b,#f97316); }
.box.box-solid.box-danger > .box-header { background: linear-gradient(135deg,#ef4444,#dc2626); }

/* collapsed box */
.box.collapsed-box .box-body { border-radius: var(--r-lg); }

/* ---------- Stat cards (info-box / small-box) ---------- */
.info-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  min-height: 92px;
  overflow: hidden;
  -webkit-transition: transform .22s ease, box-shadow .22s ease;
  -o-transition: transform .22s ease, box-shadow .22s ease;
  transition: transform .22s ease, box-shadow .22s ease;
}
.info-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-box-icon {
  border-radius: 0;
  border-bottom-left-radius: var(--r-lg);
  border-top-left-radius: var(--r-lg);
  background: var(--accent-grad) !important;
  display: flex; align-items: center; justify-content: center;
}
.info-box .info-box-icon.bg-aqua { background: linear-gradient(135deg,#06b6d4,#0ea5e9) !important; }
.info-box .info-box-icon.bg-red { background: linear-gradient(135deg,#ef4444,#dc2626) !important; }
.info-box .info-box-icon.bg-green { background: linear-gradient(135deg,#22c55e,#16a34a) !important; }
.info-box .info-box-icon.bg-yellow { background: linear-gradient(135deg,#f59e0b,#f97316) !important; }
.info-box .info-box-icon.bg-purple { background: var(--accent-grad) !important; }
.info-box .info-box-icon.bg-teal { background: linear-gradient(135deg,#14b8a6,#0d9488) !important; }
.info-box-content { padding: 14px 18px; }
.info-box-text { color: var(--ink-soft); text-transform: none; letter-spacing: .2px; font-size: 12px; }
.info-box-number { font-weight: 600; color: var(--ink); font-size: 20px; }

.small-box {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  -webkit-transition: transform .22s ease, box-shadow .22s ease;
  -o-transition: transform .22s ease, box-shadow .22s ease;
  transition: transform .22s ease, box-shadow .22s ease;
}
.small-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.small-box h3, .small-box p { color: #fff; }
.small-box .icon { color: rgba(255,255,255,.35); }
.small-box.bg-aqua { background: linear-gradient(135deg,#06b6d4,#0ea5e9) !important; }
.small-box.bg-red { background: linear-gradient(135deg,#ef4444,#dc2626) !important; }
.small-box.bg-green { background: linear-gradient(135deg,#22c55e,#16a34a) !important; }
.small-box.bg-yellow { background: linear-gradient(135deg,#f59e0b,#f97316) !important; }
.small-box.bg-purple { background: var(--accent-grad) !important; }
.small-box.bg-blue, .small-box.bg-light-blue { background: linear-gradient(135deg,#3b82f6,#2563eb) !important; }
.small-box-footer { background: rgba(0,0,0,.12); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--r);
  font-weight: 500;
  border: none;
  padding: 7px 16px;
  -webkit-transition: all .18s ease;
  -o-transition: all .18s ease;
  transition: all .18s ease;
  box-shadow: 0 2px 6px rgba(23,41,79,.08);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active, .btn:focus { transform: translateY(0); }
.btn:focus { outline: none; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-xs {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: var(--r-sm);
  box-shadow: none;
}
.btn-lg { padding: 11px 22px; border-radius: var(--r); }

.btn-primary { background: var(--accent-grad); }
.btn-primary:hover, .btn-primary:focus, .btn-primary.active { background: var(--accent-grad); filter: brightness(1.04); }
.btn-info { background: linear-gradient(135deg,#06b6d4,#0ea5e9); }
.btn-info:hover, .btn-info:focus { background: linear-gradient(135deg,#06b6d4,#0284c7); }
.btn-success { background: linear-gradient(135deg,#22c55e,#16a34a); }
.btn-success:hover, .btn-success:focus { background: linear-gradient(135deg,#22c55e,#15803d); }
.btn-warning { background: linear-gradient(135deg,#f59e0b,#f97316); }
.btn-warning:hover, .btn-warning:focus { background: linear-gradient(135deg,#d97706,#ea580c); }
.btn-danger { background: linear-gradient(135deg,#ef4444,#dc2626); }
.btn-danger:hover, .btn-danger:focus { background: linear-gradient(135deg,#dc2626,#b91c1c); }
.btn-default {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-default:hover, .btn-default:focus { background: #f6f8ff; color: var(--ink); border-color: #d9e1f0; }

/* btn-flat used on login & profile; flatten radius intentionally keep modern */
.btn-flat { border-radius: var(--r); }

.btn-app { border-radius: var(--r-lg); }

/* ---------- Forms ---------- */
.form-control {
  border: 1px solid #d8e0ee;
  border-radius: var(--r-sm);
  color: var(--ink);
  box-shadow: none;
  height: 38px;
  padding: 8px 12px;
  -webkit-transition: border-color .18s ease, box-shadow .18s ease;
  -o-transition: border-color .18s ease, box-shadow .18s ease;
  transition: border-color .18s ease, box-shadow .18s ease;
}
select.form-control { box-shadow: none; height: 38px; line-height: 36px; padding: 0 10px; }
select.form-control.input-sm { height: 38px; line-height: 36px; padding: 0 10px; }
select.form-control option { font-family: inherit; color: var(--ink); line-height: 1.3; }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,108,255,.14);
}
textarea.form-control { height: auto; min-height: 90px; }
.input-group-addon {
  background: #f3f6fc;
  border-color: #d8e0ee;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
}
/* addon label rumus bobot (ATS/AAS/UH) - lebar tetap di desktop,
   dilepas lagi oleh responsive.css di layar kecil */
.input-group-addon.w-label { min-width: 150px; text-align: left; }
.form-group label, .form-horizontal label { font-weight: 500; color: var(--ink-soft); font-size: 13px; }
.help-block { color: #9aa8c0; font-size: 12px; }

/* checkbox & radio accents */
input[type="checkbox"]:checked,
input[type="radio"]:checked { accent-color: var(--accent); }
.icheckbox_minimal-blue, .iradio_minimal-blue { margin-top: 2px; }

/* ---------- Tables ---------- */
.table { color: var(--ink); }
.table > thead > tr > th {
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: #f8faff;
  vertical-align: middle;
}
.table > tbody > tr > td { border-top: 1px solid #f0f4fb; vertical-align: middle; }
.table > tbody > tr { -webkit-transition: background .15s ease; -o-transition: background .15s ease; transition: background .15s ease; }
.table-hover > tbody > tr:hover { background: #f4f7ff; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfe; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td {
  border-color: var(--line);
}
.table-responsive { border-radius: var(--r); }

/* ---------- Labels / badges ---------- */
.label {
  border-radius: var(--r-pill);
  font-weight: 500;
  padding: 4px 11px;
  font-size: 11px;
  display: inline-block;
  letter-spacing: .2px;
}
/* Label tampil 10-11px sehingga wajib >= 4.5:1 terhadap teks putih.
   Warna di bawah adalah versi gelap dari token agar tetap satu keluarga. */
.label-success { background: #15803d; }
.label-danger { background: #b91c1c; }
.label-warning { background: #b45309; }
.label-info { background: #0e7490; }
.label-primary { background: linear-gradient(135deg, #4655e8 0%, #7c3aed 100%); }
.label-default { background: #e6eaf2; color: #46536e; }
.badge { border-radius: var(--r-pill); background: #e6eaf2; color: var(--ink-soft); font-weight: 500; }

/* ---------- Alerts ---------- */
.alert {
  border: none;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #eafaf1; color: #15803d; }
.alert-info { background: #ecfeff; color: #0e7490; }
.alert-warning { background: #fff7e6; color: #b45309; }
.alert-danger { background: #fef2f2; color: #b91c1c; }

/* ---------- Modal ---------- */
.modal { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-backdrop { background: rgba(14,26,51,.45); }
.modal-content {
  border: none;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--line); background: #fbfcff; }
.modal-title { font-weight: 600; color: var(--ink); }
.modal-footer { border-top: 1px solid var(--line); background: #fbfcff; }
.modal-body { padding: 20px; }

/* ---------- Pagination ---------- */
.pagination { border-radius: var(--r); }
.pagination > li > a {
  color: var(--accent);
  border: 1px solid transparent;
  margin: 0 3px;
  border-radius: var(--r-sm) !important;
  -webkit-transition: all .15s ease; -o-transition: all .15s ease; transition: all .15s ease;
}
.pagination > li > a:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pagination > .active > a,
.pagination > .active > a:hover {
  background: var(--accent-grad);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(91,108,255,.3);
}
.pagination > li > span, .pagination > li > a:focus { border-color: transparent; }

/* ---------- Dropdown ---------- */
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.dropdown-menu > li > a { padding: 9px 18px; color: var(--ink); }
.dropdown-menu > li > a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown-header { color: var(--ink-soft); text-transform: uppercase; font-size: 11px; letter-spacing: .6px; }

/* ---------- Tabs ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs > li > a { color: var(--ink-soft); border-radius: var(--r) var(--r) 0 0; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-bottom-color: transparent;
  color: var(--accent);
  background: #fff;
  font-weight: 500;
}
.nav-tabs-custom { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.nav-tabs-custom > .nav-tabs { background: transparent; border-bottom: 1px solid var(--line); }
.nav-tabs-custom > .tab-content { padding: 16px; }

/* ---------- Carousel (informasi) ---------- */
.carousel-control.left, .carousel-control.right { background-image: none; }
.carousel-indicators.ind { bottom: -18px !important; }
.carousel-indicators li { border: 1px solid #c3cde0; background: #dde5f2; }
.carousel-indicators .active { background: var(--accent); }
.carousel-caption { color: var(--ink); }

/* ---------- Toast (jquery.toast) ---------- */
.jq-toast-single {
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: 'Poppins', sans-serif;
}
.jq-toast-single h2 { font-family: 'Poppins', sans-serif; font-weight: 600; }
.jq-toast-wrap.top-right { top: 66px; right: 16px; }

/* ---------- Mobile bottom bar (student) ---------- */
.bott-bar { background: #fff; border-top: 1px solid var(--line); }
.content-bar.active { color: var(--accent); }
.content-bar:hover { color: var(--accent); }

/* ---------- misc polish ---------- */
.panel { border-radius: var(--r-lg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.panel-default > .panel-heading { background: #fbfcff; border-color: var(--line); }
.well { background: #fbfcff; border-radius: var(--r); border-color: var(--line); }
.progress { border-radius: var(--r-pill); background: #eef1f8; }
.progress-bar { border-radius: var(--r-pill); }
.timeline > li > .timeline-item { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border-color: var(--line); }
.img-circle { box-shadow: 0 2px 8px rgba(23,41,79,.10); }

/* ---------- Mobile (xs) ---------- */
@media (max-width: 767px) {
  .wrapper { padding-bottom: 64px; }
  .content { padding: 15px 12px; }
  .content-header { padding: 15px 12px 0; }
  .box-title { font-size: 14px; }
  .box-tools { position: static; float: none !important; margin-top: 8px; text-align: right; }
  .box-tools .input-group,
  .box-tools .form-group,
  .box-tools input,
  .box-tools select { width: 100% !important; }
  .box-tools .form-inline .form-group { display: block; margin-bottom: 6px; }
  .info-box-number { font-size: 16px !important; white-space: nowrap; }
  .main-footer { display: none !important; }
  .small-box .icon { font-size: 52px !important; }
}

/* ---------- Print: bersih & sederhana ---------- */
/* ---------- Dashboard chart ---------- */
.chart-card { overflow: hidden; }
.chart-card .box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.chart-card .box-header .box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}
.chart-card .box-header .box-tools {
  position: static;
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, .28);
  flex-shrink: 0;
}
.chart-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 400;
}
.chart-stat {
  display: flex;
  flex-direction: column;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
  line-height: 1.3;
}
.chart-stat small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.chart-stat b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

@media (max-width: 767px) {
  .chart-card .box-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }
  .chart-card .box-header .box-tools {
    width: 100%;
    margin-top: 10px;
  }
  .chart-stat {
    flex: 1;
  }
  .chart-stat b { font-size: 11px; }
  .chart-container { height: 260px; }
}

@media print {
  * { box-shadow: none !important; text-shadow: none !important; }
  body, .wrapper, .box, .panel { background: #fff !important; }
  .box, .info-box, .small-box, .panel { border-radius: 4px; }
  .main-header, .main-sidebar, .main-footer { display: none !important; }
  .content-wrapper { margin-left: 0 !important; }
  a[href]:after { content: none !important; }
}