/* ==========================================================================
   Tema eBasmalah (gaya "Central Payment")
   Hanya mengubah tampilan: semua class/ID bawaan AdminLTE & Bootstrap tetap.
   Dimuat paling akhir di template.php, login.php, Vendor/login.php, showotp.php
   ========================================================================== */

/* Font disimpan lokal (tidak bergantung internet / Google Fonts) */@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/plus-jakarta-sans/pjs-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/plus-jakarta-sans/pjs-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --cp-navy-950: #071433;
    --cp-navy-900: #0a1f4d;
    --cp-navy-800: #0f2a63;
    --cp-navy-700: #173a80;
    --cp-primary: #2563eb;
    --cp-primary-600: #1d4ed8;
    --cp-primary-50: #eef4ff;
    --cp-primary-100: #dbe7ff;
    --cp-green: #16a34a;
    --cp-green-50: #e8f8ee;
    --cp-orange: #f59e0b;
    --cp-orange-50: #fff4e0;
    --cp-red: #ef4444;
    --cp-red-50: #fdecec;
    --cp-cyan: #0891b2;
    --cp-cyan-50: #e3f6fa;
    --cp-bg: #f3f6fb;
    --cp-card: #ffffff;
    --cp-border: #e5eaf2;
    --cp-border-strong: #d5dce8;
    --cp-text: #0f172a;
    --cp-text-2: #334155;
    --cp-muted: #64748b;
    --cp-radius: 14px;
    --cp-radius-sm: 10px;
    --cp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
    --cp-shadow-lg: 0 20px 50px rgba(10, 31, 77, .18);
    --cp-header-h: 64px;
    --cp-font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dasar ---------- */
body,
.cp-theme .main-header .logo,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.info-box-number,
.info-box-text,
.btn,
.form-control,
.table,
.modal-title,
.box-title {
    font-family: var(--cp-font);
}
body {
    background: var(--cp-bg);
    color: var(--cp-text-2);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--cp-primary); }
a:hover,
a:focus { color: var(--cp-primary-600); }
.cp-theme .wrapper { background: var(--cp-navy-900); }
.content-wrapper,
.right-side { background: var(--cp-bg); }
h1,
h2,
h3,
h4,
h5,
h6 { color: var(--cp-text); }

/* ---------- Header ---------- */
.cp-theme .main-header { max-height: none; box-shadow: none; }
.cp-theme .main-header .logo {
    height: var(--cp-header-h);
    line-height: var(--cp-header-h);
    background: var(--cp-navy-900);
    color: #fff;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    text-align: left;
    padding: 0 20px;
    font-weight: 700;
}
.cp-theme .main-header .logo:hover { background: var(--cp-navy-900); color: #fff; }
.cp-theme .main-header .logo > .logo-lg { display: flex; align-items: center; height: 100%; }
.cp-theme .main-header .logo > .logo-mini { align-items: center; justify-content: center; height: 100%; }
@media (min-width: 768px) {
    .cp-theme.sidebar-mini.sidebar-collapse .main-header .logo { padding: 0; }
    .cp-theme.sidebar-mini.sidebar-collapse .main-header .logo > .logo-mini { display: flex; margin: 0; }
    .cp-theme.sidebar-mini.sidebar-collapse .main-header .logo > .logo-lg { display: none; }
}
.cp-theme .main-header .logo .cp-logo-img {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; padding: 2px; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}
.cp-theme .main-header .logo .cp-logo-text {
    margin-left: 10px; font-size: 18px; letter-spacing: .2px; line-height: 1.1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp-theme .main-header .logo .cp-logo-text small {
    display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .55); letter-spacing: .3px;
}
.cp-theme .main-header .navbar {
    min-height: var(--cp-header-h);
    background: #fff;
    border-bottom: 1px solid var(--cp-border);
    display: flex; align-items: center;
}
.cp-theme .main-header .navbar .sidebar-toggle {
    color: var(--cp-text-2);
    height: var(--cp-header-h);
    padding: 0 20px;
    display: flex; align-items: center;
    font-size: 18px;
}
.cp-theme .main-header .navbar .sidebar-toggle .icon-bar { background: var(--cp-text-2); }
.cp-theme .main-header .navbar .sidebar-toggle:hover { background: var(--cp-bg); color: var(--cp-primary); }
.cp-theme .main-header .navbar .cp-page-title {
    font-size: 17px; font-weight: 700; color: var(--cp-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1 1 auto; min-width: 0;
}
.cp-theme .main-header .navbar-custom-menu { margin-left: auto; float: none; }
.cp-theme .main-header .navbar .nav > li > a {
    color: var(--cp-text-2);
    height: var(--cp-header-h);
    display: flex; align-items: center;
    padding-top: 0; padding-bottom: 0;
}
.cp-theme .main-header .navbar .nav > li > a:hover,
.cp-theme .main-header .navbar .nav > li > a:focus,
.cp-theme .main-header .navbar .nav .open > a,
.cp-theme .main-header .navbar .nav .open > a:hover { background: var(--cp-bg); color: var(--cp-primary); }
.cp-theme .main-header .navbar .nav > li > a > .fa-bell-o {
    font-size: 18px; width: 38px; height: 38px; line-height: 38px; text-align: center;
    border-radius: 50%; background: var(--cp-bg);
}
.cp-theme .main-header .navbar .nav > li > a > .label {
    top: 12px; right: 8px; border-radius: 10px; padding: 2px 5px; font-size: 10px;
}
.cp-theme .navbar-nav > .user-menu .user-image {
    width: 38px; height: 38px; margin: 0 10px 0 0; float: none;
    border: 2px solid var(--cp-primary-100);
}
.cp-theme .cp-user-meta { display: inline-flex; flex-direction: column; line-height: 1.2; }
.cp-theme .cp-user-meta strong { color: var(--cp-text); font-size: 13px; font-weight: 700; }
.cp-theme .cp-user-meta small { color: var(--cp-muted); font-size: 11px; }
.cp-theme .navbar-nav > .user-menu > .dropdown-menu {
    border-radius: var(--cp-radius) !important;
    border: 1px solid var(--cp-border);
    box-shadow: var(--cp-shadow-lg);
    overflow: hidden; padding: 0; margin-top: 6px; min-width: 260px;
}
.cp-theme .navbar-nav > .user-menu > .dropdown-menu > .user-footer {
    background: #fff; padding: 14px;
}
.cp-theme .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default { color: var(--cp-text-2); }

/* ---------- Sidebar ---------- */
.cp-theme .main-sidebar,
.cp-theme .left-side {
    background: linear-gradient(180deg, var(--cp-navy-900) 0%, var(--cp-navy-950) 100%);
    padding-top: var(--cp-header-h);
}
.cp-theme.fixed .main-sidebar { padding-top: var(--cp-header-h); }
.cp-theme.fixed .content-wrapper,
.cp-theme.fixed .right-side { padding-top: var(--cp-header-h); }
.cp-theme .main-sidebar .sidebar { padding: 14px 0 50px; }
.cp-theme .sidebar-menu > li { margin: 2px 12px; }
.cp-theme .sidebar-menu > li > a {
    color: rgba(226, 232, 255, .78);
    border-left: 0 !important;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.cp-theme .sidebar-menu > li > a > .fa { width: 22px; font-size: 15px; margin-right: 6px; text-align: center; opacity: .9; }
.cp-theme .sidebar-menu > li:hover > a,
.cp-theme .sidebar-menu > li > a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cp-theme .sidebar-menu > li.active > a {
    background: linear-gradient(90deg, var(--cp-primary) 0%, #3b82f6 100%);
    color: #fff; font-weight: 600;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.cp-theme .sidebar-menu > li .pull-right-container,
.cp-theme .sidebar-menu > li > a > .fa-angle-left { margin-top: 2px; }
.cp-theme .sidebar-menu > li > .treeview-menu {
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    margin: 4px 0 6px; padding: 6px 0;
}
.cp-theme .sidebar-menu .treeview-menu > li > a {
    color: rgba(226, 232, 255, .65);
    padding: 7px 10px 7px 22px; font-size: 13px; border-radius: 8px; margin: 0 6px;
}
.cp-theme .sidebar-menu .treeview-menu > li > a > .fa { width: 18px; font-size: 11px; }
.cp-theme .sidebar-menu .treeview-menu > li > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cp-theme .sidebar-menu .treeview-menu > li.active > a { color: #fff; background: rgba(59, 130, 246, .28); font-weight: 600; }
.cp-theme .sidebar-menu li.header { background: transparent; color: rgba(226, 232, 255, .45); }
.cp-theme .main-sidebar #pg-render { color: rgba(226, 232, 255, .4) !important; }

/* sidebar mini (collapse) */
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li { margin: 2px 6px; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li > a { padding: 11px 8px; text-align: center; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .fa { margin-right: 0; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    background: var(--cp-navy-800); border-radius: 0 12px 12px 0;
}
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right) {
    padding: 11px 16px; top: 0; margin-left: -3px; color: #fff;
}
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu { top: 42px; margin-left: 0; }
.cp-theme.sidebar-mini.sidebar-collapse .main-sidebar #pg-render { display: none; }

/* ---------- Konten ---------- */
.content { padding: 24px; }
.content > h3,
.content h3.cp-section-title {
    font-size: 16px; font-weight: 700; margin: 26px 0 14px; color: var(--cp-text);
}
.content-header > h1 { font-weight: 700; }

/* Box / kartu */
.box {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-top: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    margin-bottom: 22px;
}
.box.box-primary,
.box.box-info,
.box.box-success,
.box.box-warning,
.box.box-danger,
.box.box-default { border-top-color: var(--cp-border); }
.box.box-solid > .box-header { border-radius: var(--cp-radius) var(--cp-radius) 0 0; }
.box-header { padding: 16px 20px; color: var(--cp-text); }
.box-header.with-border { border-bottom: 1px solid var(--cp-border); }
.box-header .box-title,
.box-title { font-size: 16px; font-weight: 700; color: var(--cp-text); }
.box-header > .box-tools { top: 12px; right: 16px; }
.box-body { padding: 18px 20px; }
.box-footer {
    background: #fbfcfe; border-top: 1px solid var(--cp-border);
    border-radius: 0 0 var(--cp-radius) var(--cp-radius); padding: 14px 20px;
}
.box .overlay,
.overlay-wrapper .overlay { border-radius: var(--cp-radius); }
.panel { border-radius: var(--cp-radius); border-color: var(--cp-border); box-shadow: var(--cp-shadow); }
.panel > .panel-heading { border-radius: var(--cp-radius) var(--cp-radius) 0 0; }
.well { background: #f8fafd; border-color: var(--cp-border); border-radius: var(--cp-radius); box-shadow: none; }

/* Info box = kartu statistik */
.info-box {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    min-height: 104px;
    padding: 18px 18px 20px;
    margin-bottom: 22px;
    display: flex; flex-direction: column; align-items: flex-start;
    transition: transform .15s ease, box-shadow .15s ease;
}
.info-box:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.info-box-icon {
    float: none; flex-shrink: 0;
    width: 52px; height: 52px; line-height: 52px; font-size: 22px;
    border-radius: 14px !important;
}
.info-box-icon.bg-light-blue,
.info-box-icon.bg-aqua,
.info-box-icon.bg-blue,
.info-box-icon.bg-light-blue-active,
.info-box-icon.bg-aqua-active,
.info-box-icon.bg-blue-active {
    background: var(--cp-primary-50) !important; color: var(--cp-primary) !important;
}
.info-box-icon.bg-red,
.info-box-icon.bg-red-active {
    background: var(--cp-red-50) !important; color: var(--cp-red) !important;
}
.info-box-icon.bg-orange,
.info-box-icon.bg-orange-active,
.info-box-icon.bg-yellow,
.info-box-icon.bg-yellow-active {
    background: var(--cp-orange-50) !important; color: var(--cp-orange) !important;
}
.info-box-icon.bg-lime,
.info-box-icon.bg-lime-active,
.info-box-icon.bg-green,
.info-box-icon.bg-green-active,
.info-box-icon.bg-olive,
.info-box-icon.bg-olive-active {
    background: var(--cp-green-50) !important; color: var(--cp-green) !important;
}
.info-box-content { margin-left: 0; padding: 14px 0 0; min-width: 0; width: 100%; container-type: inline-size; }
.info-box-text {
    text-transform: none; font-size: 13px; font-weight: 600; color: var(--cp-muted);
    letter-spacing: 0; margin-bottom: 4px; white-space: normal;
}
.info-box-number {
    font-size: 22px; font-weight: 800; color: var(--cp-text); line-height: 1.25;
    overflow-wrap: anywhere; word-break: break-word;
}
@media (min-width: 992px) and (max-width: 1599px) {
    .info-box-number { font-size: 19px; }
}
/* angka menyesuaikan lebar kartu supaya nominal panjang tetap satu baris */@supports (container-type: inline-size) {
    .info-box-number { font-size: clamp(14px, 12cqi, 22px); }
}

/* Small box (jika ada) */
.small-box { border-radius: var(--cp-radius); box-shadow: var(--cp-shadow); overflow: hidden; }

/* Hero sambutan di dashboard */
.cp-hero {
    position: relative; overflow: hidden;
    border-radius: 18px;
    padding: 30px 34px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, .22) 0, rgba(59, 130, 246, 0) 45%),
        radial-gradient(circle at 70% 120%, rgba(22, 163, 74, .16) 0, rgba(22, 163, 74, 0) 40%),
        linear-gradient(120deg, #eaf1ff 0%, #f5f8ff 55%, #e7f0ff 100%);
    border: 1px solid #dfe8fb;
    min-height: 168px;
}
.cp-hero .cp-hero-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--cp-primary);
    text-transform: uppercase; margin: 0 0 8px;
}
.cp-hero h2 {
    margin: 0 0 10px; font-size: 32px; font-weight: 800; color: var(--cp-navy-900); letter-spacing: -.5px;
}
.cp-hero p { font-size: 14px; color: var(--cp-text-2); margin: 0; max-width: 560px; }
.cp-hero p strong { color: var(--cp-navy-900); }
.cp-hero .cp-hero-art {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    width: 230px; height: 130px;
}
.cp-hero .cp-card-a,
.cp-hero .cp-card-b {
    position: absolute; border-radius: 14px; box-shadow: 0 14px 30px rgba(10, 31, 77, .25);
}
.cp-hero .cp-card-a {
    width: 170px; height: 104px; left: 0; top: 18px; transform: rotate(-8deg);
    background: linear-gradient(135deg, var(--cp-navy-800), var(--cp-primary));
}
.cp-hero .cp-card-a:before {
    content: ""; position: absolute; left: 16px; top: 18px; width: 28px; height: 20px; border-radius: 5px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
}
.cp-hero .cp-card-a:after {
    content: ""; position: absolute; left: 16px; right: 40px; bottom: 20px; height: 6px; border-radius: 3px;
    background: rgba(255, 255, 255, .45); box-shadow: 0 -12px 0 rgba(255, 255, 255, .25);
}
.cp-hero .cp-card-b {
    width: 120px; height: 120px; right: 0; top: 0; background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.cp-hero .cp-card-b img { width: 70px; height: 70px; }
.cp-hero .cp-check {
    position: absolute; right: -8px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--cp-green); color: #fff; font-size: 18px; line-height: 40px; text-align: center;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .4); border: 3px solid #fff;
}

/* Callout & alert */
.callout {
    border-radius: var(--cp-radius); border-left-width: 4px; box-shadow: var(--cp-shadow);
}
.callout.callout-info { background: var(--cp-primary-50) !important; border-color: var(--cp-primary); color: var(--cp-navy-900) !important; }
.callout.callout-success { background: var(--cp-green-50) !important; border-color: var(--cp-green); color: #14532d !important; }
.callout.callout-warning { background: var(--cp-orange-50) !important; border-color: var(--cp-orange); color: #7c4a03 !important; }
.callout.callout-danger { background: var(--cp-red-50) !important; border-color: var(--cp-red); color: #7f1d1d !important; }
.alert { border-radius: var(--cp-radius-sm); }

/* ---------- Tombol ---------- */
.btn {
    border-radius: var(--cp-radius-sm);
    font-weight: 600;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn.btn-flat { border-radius: var(--cp-radius-sm); }
.btn-sm,
.btn-group-sm > .btn { border-radius: 8px; }
.btn-xs,
.btn-group-xs > .btn { border-radius: 6px; }
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; }
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn:focus,
.btn:active:focus { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.btn-default { background: #fff; border-color: var(--cp-border-strong); color: var(--cp-text-2); }
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active { background: var(--cp-bg); border-color: var(--cp-border-strong); color: var(--cp-text); }
.btn-primary { background: var(--cp-primary); border-color: var(--cp-primary); color: #fff; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background: var(--cp-primary-600); border-color: var(--cp-primary-600); color: #fff;
}
.btn-info { background: var(--cp-cyan); border-color: var(--cp-cyan); }
.btn-info:hover,
.btn-info:focus,
.btn-info:active { background: #0e7490; border-color: #0e7490; }
.btn-success { background: var(--cp-green); border-color: var(--cp-green); }
.btn-success:hover,
.btn-success:focus,
.btn-success:active { background: #15803d; border-color: #15803d; }
.btn-warning { background: var(--cp-orange); border-color: var(--cp-orange); color: #fff; }
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active { background: #d97706; border-color: #d97706; color: #fff; }
.btn-danger { background: var(--cp-red); border-color: var(--cp-red); }
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active { background: #dc2626; border-color: #dc2626; }
.btn-link { color: var(--cp-primary); }

/* ---------- Form ---------- */
.form-control {
    border-radius: var(--cp-radius-sm);
    border-color: var(--cp-border-strong);
    color: var(--cp-text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { border-color: var(--cp-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control { background: #f6f8fb; }
.input-sm,
.form-group-sm .form-control { border-radius: 8px; }
.control-label,
label { color: var(--cp-text-2); font-weight: 600; }
.input-group-addon { background: #f6f8fb; border-color: var(--cp-border-strong); color: var(--cp-muted); border-radius: var(--cp-radius-sm); }
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn { border-top-left-radius: var(--cp-radius-sm); border-bottom-left-radius: var(--cp-radius-sm); }
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn { border-top-right-radius: var(--cp-radius-sm); border-bottom-right-radius: var(--cp-radius-sm); }
.has-error .form-control { border-color: var(--cp-red); }
.has-success .form-control { border-color: var(--cp-green); }

/* select2 (override radius 0 dari custom.css) */
.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: var(--cp-border-strong) !important;
    border-radius: var(--cp-radius-sm) !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--cp-primary) !important; }
.select2-dropdown { border-color: var(--cp-border-strong); border-radius: var(--cp-radius-sm); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--cp-primary); }

/* datepicker */
.datepicker.dropdown-menu { border-radius: var(--cp-radius); border-color: var(--cp-border); box-shadow: var(--cp-shadow-lg); padding: 8px; }
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.active,
.datepicker table tr td span.active {
    background: var(--cp-primary) !important; border-color: var(--cp-primary) !important; text-shadow: none;
}
.datepicker table tr td,
.datepicker table tr th { border-radius: 8px; }

/* dropdown umum */
.dropdown-menu { border-radius: var(--cp-radius-sm); border-color: var(--cp-border); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.dropdown-menu > li > a { padding: 7px 16px; }
.dropdown-menu > li > a:hover { background: var(--cp-primary-50); color: var(--cp-primary); }

/* ---------- Tabel ---------- */
.table { color: var(--cp-text-2); }
.table > thead > tr > th,
.dataTable thead th,
table.dataTable thead th,
.dataTable THEAD TH {
    background: #f6f8fc !important;
    color: var(--cp-text) !important;
    font-size: 12.5px; font-weight: 700;
    border-bottom: 1px solid var(--cp-border) !important;
    vertical-align: middle;
    padding-top: 11px; padding-bottom: 11px;
}
.table > tbody > tr > td,
.table > tfoot > tr > td,
.table > tbody > tr > th {
    border-top: 1px solid #eef2f7; vertical-align: middle; padding-top: 10px; padding-bottom: 10px;
}
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td { border-color: #e9edf4 !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfe; }
.table-hover > tbody > tr:hover { background: #f1f6ff; }
table.table tbody tr.selected { background: #dcfce7; }
.table-responsive { border-radius: var(--cp-radius-sm); border-color: var(--cp-border); }
.box-body > .table-responsive,
.box-body > .table,
.box-body > div > .table {
    border-radius: var(--cp-radius-sm);
}
.box-body > table.table,
.box-body .table-responsive > table.table { border: 1px solid var(--cp-border); border-radius: var(--cp-radius-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--cp-border-strong); border-radius: 8px; padding: 4px 10px; height: 32px;
}
.dataTables_wrapper .dataTables_info { color: var(--cp-muted); font-size: 12.5px; }

/* pagination */
.pagination > li > a,
.pagination > li > span {
    border-color: var(--cp-border); color: var(--cp-text-2); margin: 0 3px; border-radius: 8px !important;
    min-width: 34px; text-align: center;
}
.pagination > li > a:hover { background: var(--cp-primary-50); color: var(--cp-primary); border-color: var(--cp-primary-100); }
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > a:focus { background: var(--cp-primary); border-color: var(--cp-primary); color: #fff; }
.pagination > .disabled > a,
.pagination > .disabled > span { color: #b6c0cf; }

/* ---------- Label / badge (warna lembut) ---------- */
.label { border-radius: 999px; padding: .3em .75em; font-weight: 700; font-size: 11px; }
.label-default { background: #eef1f6; color: var(--cp-text-2); }
.label-primary { background: var(--cp-primary-50) !important; color: var(--cp-primary) !important; }
.label-info { background: var(--cp-cyan-50) !important; color: #0e7490 !important; }
.label-success { background: var(--cp-green-50) !important; color: #15803d !important; }
.label-warning { background: var(--cp-orange-50) !important; color: #b45309 !important; }
.label-danger { background: var(--cp-red-50) !important; color: #b91c1c !important; }
.cp-theme .main-header .navbar .nav > li > a > .label-warning { background: var(--cp-red) !important; color: #fff !important; }
.badge { border-radius: 999px; font-weight: 700; }

/* ---------- Tab ---------- */
.nav-tabs { border-bottom: 1px solid var(--cp-border); }
.nav-tabs > li > a { border: 0 !important; border-radius: 0; color: var(--cp-muted); font-weight: 600; padding: 10px 16px; margin-right: 4px; }
.nav-tabs > li > a:hover { background: transparent; color: var(--cp-primary); }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--cp-primary); background: transparent; box-shadow: inset 0 -2px 0 var(--cp-primary);
}
.nav-tabs-custom { border-radius: var(--cp-radius); box-shadow: var(--cp-shadow); border: 1px solid var(--cp-border); }
.nav-tabs-custom > .nav-tabs > li { border-top: 0; }
.nav-tabs-custom > .nav-tabs > li.active { border-top: 0; }
.nav-tabs-custom > .nav-tabs > li.active > a { box-shadow: inset 0 -2px 0 var(--cp-primary); }
.nav-pills > li > a { border-radius: var(--cp-radius-sm); }
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover { background: var(--cp-primary); border-top-color: transparent; }

/* ---------- Modal ---------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--cp-shadow-lg); overflow: hidden; }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--cp-border); background: #fff; }
.modal-header .close { margin-top: 2px; opacity: .45; font-size: 24px; }
.modal-title { font-weight: 700; color: var(--cp-text); font-size: 17px; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--cp-border); background: #fbfcfe; }
.modal-backdrop.in { opacity: .45; }
.modal-backdrop { background: var(--cp-navy-950); }

/* progress */
.progress { border-radius: 999px; background: #eef2f7; box-shadow: none; }
.progress-bar { background: var(--cp-primary); }

/* SweetAlert2 */
.swal2-modal { border-radius: 18px !important; font-family: var(--cp-font) !important; }
.swal2-modal .swal2-styled { border-radius: var(--cp-radius-sm) !important; }
.swal2-modal button.swal2-confirm { background-color: var(--cp-primary) !important; }

/* scrollbar halus */
.content-wrapper ::-webkit-scrollbar { width: 10px; height: 10px; }
.content-wrapper ::-webkit-scrollbar-thumb { background: #cfd7e4; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

/* ==========================================================================
   Halaman login / OTP
   ========================================================================== */
body.cp-auth-page {
    background: var(--cp-bg) !important;
    min-height: 100vh; margin: 0;
}
.cp-auth {
    display: flex; min-height: 100vh;
}
.cp-auth-hero {
    position: relative; overflow: hidden;
    flex: 1 1 55%;
    background:
        radial-gradient(circle at 15% 85%, rgba(22, 163, 74, .22) 0, rgba(22, 163, 74, 0) 35%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .35) 0, rgba(59, 130, 246, 0) 45%),
        linear-gradient(150deg, var(--cp-navy-800) 0%, var(--cp-navy-900) 50%, var(--cp-navy-950) 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex; flex-direction: column;
}
.cp-auth-hero:before,
.cp-auth-hero:after {
    content: ""; position: absolute; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
}
.cp-auth-hero:before { width: 520px; height: 520px; right: -160px; bottom: -200px; }
.cp-auth-hero:after { width: 760px; height: 760px; right: -280px; bottom: -320px; }
.cp-auth-brand { display: flex; align-items: center; position: relative; z-index: 1; }
.cp-auth-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.cp-auth-brand span { margin-left: 12px; font-size: 20px; font-weight: 800; letter-spacing: .2px; line-height: 1.1; }
.cp-auth-brand span small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .6); letter-spacing: .4px; }
.cp-auth-copy { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; max-width: 520px; }
.cp-auth-copy .cp-eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: #93c5fd; text-transform: uppercase; }
.cp-auth-copy h1 { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 14px; line-height: 1.1; }
.cp-auth-copy p { color: rgba(226, 232, 255, .75); font-size: 15px; line-height: 1.6; margin: 0; }
.cp-auth-art { position: relative; height: 170px; margin-top: 40px; }
.cp-auth-art .cp-c1,
.cp-auth-art .cp-c2,
.cp-auth-art .cp-c3 { position: absolute; border-radius: 16px; }
.cp-auth-art .cp-c1 {
    width: 230px; height: 140px; left: 0; top: 10px; transform: rotate(-8deg);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.cp-auth-art .cp-c1:before {
    content: ""; position: absolute; left: 22px; top: 24px; width: 36px; height: 26px; border-radius: 6px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}
.cp-auth-art .cp-c1:after {
    content: ""; position: absolute; left: 22px; right: 60px; bottom: 26px; height: 8px; border-radius: 4px;
    background: rgba(255, 255, 255, .5); box-shadow: 0 -16px 0 rgba(255, 255, 255, .3);
}
.cp-auth-art .cp-c2 {
    width: 160px; height: 120px; left: 190px; top: 40px; background: rgba(255, 255, 255, .95);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .3); padding: 18px;
}
.cp-auth-art .cp-c2 i { display: block; height: 8px; border-radius: 4px; background: #e2e8f0; margin-bottom: 10px; }
.cp-auth-art .cp-c2 i:first-child { width: 60%; background: #bfdbfe; }
.cp-auth-art .cp-c2 i:nth-child(3) { width: 75%; }
.cp-auth-art .cp-c3 {
    width: 52px; height: 52px; border-radius: 50%; left: 322px; top: 18px;
    background: var(--cp-green); color: #fff; font-size: 24px; line-height: 52px; text-align: center;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .45); border: 4px solid rgba(255, 255, 255, .9);
}
.cp-auth-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(226, 232, 255, .5); }

.cp-auth-panel {
    flex: 1 1 45%;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: var(--cp-bg);
}
.cp-auth-panel .login-box {
    width: 100%; max-width: 420px; margin: 0;
}
.cp-auth-panel .login-logo { display: none; }
.cp-auth-panel .login-box-body {
    background: #fff; border-radius: 20px; border: 1px solid var(--cp-border);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
    padding: 40px 36px 34px; color: var(--cp-text-2);
}
.cp-auth-panel .cp-form-head { margin-bottom: 26px; }
.cp-auth-panel .cp-form-head img { width: 48px; height: 48px; margin-bottom: 18px; }
.cp-auth-panel .cp-form-head h4,
.cp-auth-panel .login-box-body .cp-form-head .login-box-msg {
    text-align: left !important; font-size: 24px !important; font-weight: 800 !important; color: var(--cp-text) !important;
    margin: 0 0 6px !important; padding: 0 !important;
}
.cp-auth-panel .cp-form-head p { color: var(--cp-muted); margin: 0; font-size: 14px; }
.cp-auth-panel .form-group { margin-bottom: 16px; }
.cp-auth-panel .has-feedback .form-control,
.cp-auth-panel .form-control {
    height: 48px; border-radius: 12px; padding-left: 44px; padding-right: 14px; font-size: 14px;
    background: #f8fafd;
}
.cp-auth-panel .form-control:focus { background: #fff; }
.cp-auth-panel .form-control-feedback {
    left: 0; right: auto; width: 44px; height: 48px; line-height: 48px; color: #94a3b8;
}
.cp-auth-panel .cp-field-icon {
    position: absolute; left: 0; top: 0; width: 44px; height: 48px; line-height: 48px; text-align: center; color: #94a3b8;
    pointer-events: none; z-index: 2;
}
.cp-auth-panel .btn-primary.sign_in,
.cp-auth-panel .btn-primary {
    height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700;
    background: linear-gradient(90deg, var(--cp-primary) 0%, #3b82f6 100%); border: 0;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}
.cp-auth-panel .btn-primary:hover { background: linear-gradient(90deg, var(--cp-primary-600) 0%, var(--cp-primary) 100%); }
.cp-auth-panel .cp-secure { margin-top: 18px; text-align: center; font-size: 12px; color: var(--cp-muted); }
.cp-auth-panel .cp-secure .fa { color: var(--cp-green); margin-right: 4px; }

/* OTP */
.cp-otp-page .cp-auth-panel #frmAuth > .form-group:first-child,
.cp-otp-page .cp-auth-panel #frmAuth .form-group {
    display: flex; justify-content: space-between; gap: 8px; margin-bottom: 22px;
}
.cp-otp-page .cp-auth-panel .input {
    width: 100%; max-width: 52px; height: 56px; padding: 0;
    border: 1.5px solid var(--cp-border-strong); border-radius: 12px;
    background: #f8fafd; font-size: 22px; font-weight: 700; color: var(--cp-text);
}
.cp-otp-page .cp-auth-panel .input:focus { border-color: var(--cp-primary); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.cp-otp-page .cp-auth-panel .row a { line-height: 48px; font-weight: 600; }
@media (max-width: 991px) {
    .cp-auth { flex-direction: column; }
    .cp-auth-hero { flex: 0 0 auto; padding: 28px 24px; }
    .cp-auth-copy { margin: 26px 0 0; }
    .cp-auth-copy h1 { font-size: 30px; }
    .cp-auth-art,
    .cp-auth-foot { display: none; }
    .cp-auth-panel { padding: 24px 16px 40px; align-items: flex-start; }
    .cp-auth-panel .login-box-body { padding: 28px 22px; }
}

/* ---------- Responsif ---------- */@media (max-width: 991px) {
    .cp-hero .cp-hero-art { display: none; }
}
@media (max-width: 767px) {
    .content { padding: 16px; }
    .cp-theme .main-header .logo { padding: 0 16px; }
    .cp-theme .main-header .navbar .cp-page-title { display: none; }
    .cp-theme .main-header .navbar { display: block; }
    .cp-theme .main-header .navbar-custom-menu { float: right; }
    .cp-theme.fixed .content-wrapper,
    .cp-theme.fixed .right-side { padding-top: calc(var(--cp-header-h) * 2); }
    .cp-theme.fixed .main-sidebar { padding-top: calc(var(--cp-header-h) * 2); }
    .cp-hero { padding: 22px; }
    .cp-hero h2 { font-size: 24px; }
}

/* ==========================================================================
   Ukuran teks konten: diselaraskan dengan sidebar (lebih ringkas)
   ========================================================================== */
.cp-theme .content-wrapper { font-size: 13px; }
.cp-theme .content-wrapper .table,
.cp-theme .content-wrapper table.dataTable { font-size: 12.5px; }
.cp-theme .content-wrapper .table > thead > tr > th,
.cp-theme .content-wrapper table.dataTable thead th,
.cp-theme .content-wrapper .dataTables_scrollHead th {
    font-size: 12px !important; font-weight: 700;
    padding: 9px 10px !important; line-height: 1.3;
}
.cp-theme .content-wrapper .table > tbody > tr > td,
.cp-theme .content-wrapper .table > tfoot > tr > td,
.cp-theme .content-wrapper .table > tbody > tr > th,
.cp-theme .content-wrapper table.dataTable tbody td {
    padding: 7px 10px !important; line-height: 1.4;
}
/* ikon sort DataTables tidak menutupi judul kolom yang dipadatkan */
.cp-theme .content-wrapper table.dataTable thead .sorting,
.cp-theme .content-wrapper table.dataTable thead .sorting_asc,
.cp-theme .content-wrapper table.dataTable thead .sorting_desc { padding-right: 22px !important; }
.cp-theme .content-wrapper table.dataTable thead .sorting:after,
.cp-theme .content-wrapper table.dataTable thead .sorting_asc:after,
.cp-theme .content-wrapper table.dataTable thead .sorting_desc:after { font-size: 11px; opacity: .35; bottom: 9px; }
.cp-theme .content-wrapper table.dataTable tbody td .btn,
.cp-theme .content-wrapper .table td .btn { font-size: 11px; padding: 3px 7px; border-radius: 6px; }
.cp-theme .content-wrapper .table td .label { font-size: 10.5px; }

/* tombol, form, judul di konten */
.cp-theme .content-wrapper .btn { font-size: 13px; padding: 6px 12px; }
.cp-theme .content-wrapper .btn-sm { font-size: 12px; padding: 5px 10px; }
.cp-theme .content-wrapper .btn-xs { font-size: 11px; padding: 2px 6px; }
.cp-theme .content-wrapper .form-control { font-size: 13px; height: 34px; padding: 6px 11px; }
.cp-theme .content-wrapper textarea.form-control { height: auto; }
.cp-theme .content-wrapper .input-sm { height: 30px; font-size: 12px; padding: 5px 10px; }
.cp-theme .content-wrapper .control-label,
.cp-theme .content-wrapper label { font-size: 12.5px; }
.cp-theme .content-wrapper .box-header .box-title { font-size: 15px; }
.cp-theme .content-wrapper .dataTables_info,
.cp-theme .content-wrapper .pagination > li > a,
.cp-theme .content-wrapper .pagination > li > span { font-size: 12px; }
.cp-theme .content-wrapper .pagination > li > a,
.cp-theme .content-wrapper .pagination > li > span { min-width: 30px; padding: 5px 9px; }
.cp-theme .modal-body, .cp-theme .modal-footer .btn { font-size: 13px; }
.cp-theme .modal-body .form-control { font-size: 13px; }
.cp-theme .main-header .navbar .cp-page-title { font-size: 16px; }

/* ==========================================================================
   Dashboard (main.php)
   ========================================================================== */
.cp-hero.cp-hero-dash { padding: 28px 34px; min-height: 176px; display: flex; align-items: center; }
.cp-hero-dash .cp-hero-copy { position: relative; z-index: 1; max-width: 46%; }
.cp-hero-dash h2 { font-size: 34px; margin-bottom: 8px; }
.cp-hero-dash .cp-hero-sub { font-size: 13.5px; color: var(--cp-text-2); }
.cp-hero-dash .cp-hero-greet { margin-top: 10px; font-size: 12.5px; color: var(--cp-muted); }
.cp-hero-dash .cp-hero-art { right: auto; left: 52%; transform: translate(-10%, -50%); }
.cp-hero-quote {
    position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
    max-width: 220px; font-size: 13px; line-height: 1.55; color: var(--cp-navy-800);
    font-style: italic; padding-left: 14px; border-left: 3px solid rgba(37, 99, 235, .35);
}

.cp-panel {
    background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow); padding: 18px 20px 20px; margin-bottom: 20px;
}
.cp-panel-fill { min-height: 340px; }
.cp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-panel-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--cp-text); }
.cp-panel-meta { font-size: 12px; color: var(--cp-muted); }
.cp-panel-meta .fa { color: var(--cp-primary); margin-right: 4px; }
.cp-panel-link { font-size: 12.5px; font-weight: 700; }
.cp-panel-link .fa { font-size: 11px; margin-left: 3px; }

.cp-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cp-stat {
    display: flex; align-items: center; gap: 10px; padding: 14px 12px;
    border: 1px solid var(--cp-border); border-radius: 12px; background: #fff; min-width: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cp-stat:hover { border-color: var(--cp-primary-100); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
.cp-stat > div { min-width: 0; container-type: inline-size; flex: 1; }
.cp-stat-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
}
.cp-blue   { background: var(--cp-primary-50); color: var(--cp-primary); }
.cp-red    { background: var(--cp-red-50); color: var(--cp-red); }
.cp-orange { background: var(--cp-orange-50); color: var(--cp-orange); }
.cp-green  { background: var(--cp-green-50); color: var(--cp-green); }
.cp-solid-green { background: var(--cp-green); color: #fff; box-shadow: 0 6px 14px rgba(22, 163, 74, .3); }
.cp-stat-label { display: block; font-size: 12px; font-weight: 600; color: var(--cp-muted); margin-bottom: 2px; }
/* Angka selalu tampil utuh: ukuran mengikuti lebar kartu (angka s/d 17 karakter muat),
   lalu JS di main.php mengecilkan lagi bila masih kurang. Tidak dipotong "...". */
.cp-stat-value {
    display: block; font-size: 18px; font-weight: 800; color: var(--cp-text); line-height: 1.25;
    white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
@supports (container-type: inline-size) {
    .cp-stat-value { font-size: clamp(11px, 9.4cqi, 18px); }
}
.cp-stat-value.cp-wrap { white-space: normal; overflow-wrap: anywhere; }

/* Grafik */
.cp-chart-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cp-legend { font-size: 12px; color: var(--cp-muted); display: inline-flex; align-items: center; gap: 6px; }
.cp-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cp-dot-bar { background: #bfdbfe; }
.cp-dot-line { background: var(--cp-green); border-radius: 50%; }
.cp-chart-tools .form-control { width: auto; min-width: 140px; }
.cp-chart { position: relative; min-height: 260px; }
.cp-chart svg { display: block; width: 100%; overflow: visible; }
.cp-chart .cp-grid { stroke: #eef2f7; stroke-width: 1; }
.cp-chart .cp-axis { fill: var(--cp-muted); font-size: 11px; font-family: var(--cp-font); }
.cp-chart .cp-bar { fill: #bfdbfe; }
.cp-chart .cp-line { fill: none; stroke: var(--cp-green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cp-chart .cp-pt { fill: #fff; stroke: var(--cp-green); stroke-width: 2.5; pointer-events: none; }
.cp-chart .cp-hit { fill: transparent; cursor: pointer; }
.cp-chart .cp-hit:hover { fill: rgba(37, 99, 235, .05); }
.cp-chart-empty { height: 260px; display: flex; align-items: center; justify-content: center; color: var(--cp-muted); font-size: 13px; }
.cp-tip {
    position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--cp-border);
    border-radius: 10px; box-shadow: var(--cp-shadow-lg); padding: 8px 12px; font-size: 12px; line-height: 1.5; color: var(--cp-text-2); min-width: 150px;
}
.cp-tip b { color: var(--cp-text); }

/* Aksi cepat */
.cp-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-quick-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; text-align: center;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.cp-quick-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
.cp-quick-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }
.cp-q-blue   { background: var(--cp-primary-50); color: var(--cp-primary-600); }
.cp-q-blue .cp-quick-icon { background: var(--cp-primary); }
.cp-q-green  { background: var(--cp-green-50); color: #15803d; }
.cp-q-green .cp-quick-icon { background: var(--cp-green); }
.cp-q-purple { background: #f1ecff; color: #6d28d9; }
.cp-q-purple .cp-quick-icon { background: #7c3aed; }
.cp-q-orange { background: var(--cp-orange-50); color: #b45309; }
.cp-q-orange .cp-quick-icon { background: var(--cp-orange); }
.cp-q-blue:hover, .cp-q-blue:focus { color: var(--cp-primary-600); }
.cp-q-green:hover, .cp-q-green:focus { color: #15803d; }
.cp-q-purple:hover, .cp-q-purple:focus { color: #6d28d9; }
.cp-q-orange:hover, .cp-q-orange:focus { color: #b45309; }

@media (max-width: 1199px) {
    .cp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-hero-quote { display: none; }
    .cp-hero-dash .cp-hero-copy { max-width: 60%; }
    .cp-hero-dash .cp-hero-art { left: auto; right: 40px; transform: translateY(-50%); }
}
@media (max-width: 767px) {
    .cp-stat-grid { grid-template-columns: minmax(0, 1fr); }
    .cp-hero-dash .cp-hero-copy { max-width: 100%; }
    .cp-hero-dash h2 { font-size: 26px; }
}
/* Nama: turun baris dengan ukuran normal (tidak dikecilkan seperti angka) */
.cp-stat-value.cp-stat-name { white-space: normal; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }

/* ==========================================================================
   Sidebar modern (ikon SVG, kotak ikon, garis pandu submenu)
   ========================================================================== */
.cp-theme .main-sidebar {
    background:
        radial-gradient(circle at 0% 100%, rgba(22, 163, 74, .10) 0, rgba(22, 163, 74, 0) 38%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .16) 0, rgba(59, 130, 246, 0) 40%),
        linear-gradient(180deg, #0b2156 0%, #091a45 55%, #071433 100%);
    border-right: 1px solid rgba(255, 255, 255, .04);
}
.cp-theme .main-sidebar .sidebar { padding: 16px 0 28px; }
.cp-side-label {
    padding: 4px 26px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; color: rgba(199, 210, 254, .42);
}

.cp-theme .sidebar-menu > li { margin: 3px 12px; }
.cp-theme .sidebar-menu > li > a {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 10px; border-radius: 12px;
    font-size: 13.5px; font-weight: 600; letter-spacing: .1px;
    color: rgba(226, 232, 255, .78); background: transparent; box-shadow: none;
}
.cp-theme .sidebar-menu > li > a > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-ico {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); color: #c7d2fe;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cp-ico svg { width: 18px; height: 18px; }
.cp-ico .fa, .cp-ico-sm .fa { font-size: 14px; width: auto; }
.cp-chev { margin-left: auto; display: inline-flex; opacity: .55; transition: transform .2s ease, opacity .15s ease; float: none !important; }
.cp-chev svg { width: 16px; height: 16px; }

.cp-theme .sidebar-menu > li:hover > a,
.cp-theme .sidebar-menu > li > a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.cp-theme .sidebar-menu > li:hover > a > .cp-ico { background: rgba(255, 255, 255, .10); color: #fff; }
.cp-theme .sidebar-menu > li:hover > a > .cp-chev { opacity: .9; }

.cp-theme .sidebar-menu > li.active > a {
    background: linear-gradient(90deg, rgba(59, 130, 246, .26) 0%, rgba(59, 130, 246, .06) 100%);
    color: #fff; font-weight: 700; box-shadow: none;
}
.cp-theme .sidebar-menu > li.active > a > .cp-ico {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .45), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.cp-theme .sidebar-menu > li.active > a > .cp-chev,
.cp-theme .sidebar-menu > li.menu-open > a > .cp-chev { transform: rotate(180deg); opacity: .9; }

/* submenu dengan garis pandu */
.cp-theme .sidebar-menu > li > .treeview-menu {
    background: transparent; border-radius: 0; margin: 4px 0 8px 26px; padding: 2px 0 2px 12px;
    border-left: 1px solid rgba(199, 210, 254, .14);
}
.cp-theme .sidebar-menu .treeview-menu > li { margin: 1px 0; }
.cp-theme .sidebar-menu .treeview-menu > li > a {
    position: relative; display: flex; align-items: center; gap: 10px;
    margin: 0; padding: 7px 10px; border-radius: 9px;
    font-size: 13px; font-weight: 500; color: rgba(226, 232, 255, .62);
}
.cp-ico-sm { display: inline-flex; flex-shrink: 0; opacity: .75; transition: opacity .15s ease; }
.cp-ico-sm svg { width: 16px; height: 16px; }
.cp-theme .sidebar-menu .treeview-menu > li > a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-theme .sidebar-menu .treeview-menu > li > a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.cp-theme .sidebar-menu .treeview-menu > li > a:hover > .cp-ico-sm { opacity: 1; }
.cp-theme .sidebar-menu .treeview-menu > li.active > a {
    color: #fff; font-weight: 600; background: rgba(59, 130, 246, .20);
}
.cp-theme .sidebar-menu .treeview-menu > li.active > a > .cp-ico-sm { opacity: 1; color: #93c5fd; }
.cp-theme .sidebar-menu .treeview-menu > li.active > a:before {
    content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 18px; margin-top: -9px;
    border-radius: 3px; background: #60a5fa; box-shadow: 0 0 10px rgba(96, 165, 250, .8);
}

/* mode sidebar diciutkan (tombol ☰) */
.cp-theme.sidebar-mini.sidebar-collapse .cp-side-label { visibility: hidden; height: 8px; padding: 0; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li { margin: 3px 7px; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li > a { padding: 4px; justify-content: center; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .cp-chev { display: none; }
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right) {
    padding: 11px 16px; left: 50px; top: 0; margin-left: 0; border-radius: 0 10px 10px 0; background: #0f2a63;
}
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    margin: 0; left: 50px; top: 44px; padding: 6px; border-left: 0; border-radius: 0 0 10px 0; background: #0f2a63;
}
.cp-theme.sidebar-mini.sidebar-collapse .sidebar-menu .treeview-menu > li.active > a:before { display: none; }
/* nama submenu panjang turun baris, tidak terpotong */
.cp-theme .sidebar-menu .treeview-menu > li > a > span { white-space: normal; line-height: 1.3; }

/* Logo Toko Basmalah (lihat juga aturan "logo utuh" di bawah) */
.cp-theme .main-header .logo .cp-logo-img { background: transparent; padding: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .10); }
.cp-auth-brand img { background: transparent; padding: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.cp-auth-panel .cp-form-head img.cp-form-logo { width: auto; height: 88px; margin-bottom: 16px; }

/* Logo Toko Basmalah utuh (tidak dipotong lingkaran) */
.cp-theme .main-header .logo .cp-logo-img {
    width: auto; height: 46px; border-radius: 0; background: transparent; padding: 0; box-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}
.cp-theme .main-header .logo > .logo-mini .cp-logo-img { height: 40px; }
.cp-auth-brand img {
    width: auto; height: 60px; border-radius: 0; background: transparent; padding: 0; box-shadow: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}
