html body {
    padding:0 !important;
}
.img-logo{
    width: 200px;
}

.text-red{
    color: #ff6161;
}

fieldset {
    border: 1px solid #e1e1e1;
    padding: 1em;
    /* font: 80%/1 sans-serif; */
}

legend {
    padding: 0.2em 0.5em;
    font-size: 0.9rem;
}

.wid-170{
    width:170px;
}

.text-white{
    color: #FFF !important;
}

.form-control2 {
    width: 100%;
    height: 20px;
    padding: 2px 4px;
}

table.valign-top tr td{
    vertical-align: top;
}

/* ==========================================================================
   SPY - Login page revamp
   Scoped under .spy-login so it never affects other pages.
   ========================================================================== */
.spy-login {
    --spy-blue: #4680ff;
    --spy-blue-dark: #2f63e0;
    --spy-ink: #1b2559;
    --spy-muted: #8a94a6;
    --spy-border: #e4e8f0;
    --spy-danger: #ff5c72;
    --spy-radius: 14px;
    min-height: 100vh;
    display: flex;
    background: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--spy-ink);
    overflow: hidden;
}

/* --- Left brand panel --- */
.spy-login__brand {
    position: relative;
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #fff;
    background: linear-gradient(135deg, #5a8dff 0%, var(--spy-blue) 45%, var(--spy-blue-dark) 100%);
    background-size: 200% 200%;
    animation: spyGradient 14s ease infinite;
    overflow: hidden;
}
.spy-login__brand::before,
.spy-login__brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
    transform-origin: center;
}
.spy-login__brand::before {
    width: 620px;
    height: 620px;
    left: -230px;
    bottom: -230px;
    animation: spyPulse 7s ease-in-out infinite;
}
.spy-login__brand::after {
    width: 340px;
    height: 340px;
    left: -90px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.14);
    animation: spyPulse 7s ease-in-out infinite 1.2s;
}

/* Floating orbs */
.spy-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
    z-index: 1;
}
.spy-orb--1 {
    width: 130px; height: 130px;
    top: 12%; right: 14%;
    animation: spyFloat 9s ease-in-out infinite;
}
.spy-orb--2 {
    width: 70px; height: 70px;
    top: 26%; left: 16%;
    background: rgba(255, 255, 255, 0.13);
    animation: spyFloat 7s ease-in-out infinite 0.8s;
}
.spy-orb--3 {
    width: 48px; height: 48px;
    bottom: 22%; right: 24%;
    background: rgba(255, 255, 255, 0.16);
    animation: spyFloat 6s ease-in-out infinite 1.6s;
}
.spy-login__brand-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: spyFade 0.7s ease both;
}
.spy-login__logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.spy-login__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    animation: spyRing 3.2s ease-out infinite;
    pointer-events: none;
}
.spy-login__ring--2 { animation-delay: 1.6s; }
.spy-login__logo {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 70%;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.12));
    animation: spyFloat 6s ease-in-out infinite;
}
.spy-login__tagline {
    margin-top: 18px;
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.95;
}
.spy-login__copy {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* --- Right form panel --- */
.spy-login__panel {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
}
.spy-login__card {
    width: 100%;
    max-width: 380px;
    animation: spyFade 0.6s ease both;
}
.spy-login__mobile-logo {
    display: none;
    margin: 0 auto 24px;
    width: 150px;
}
.spy-login__title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.spy-login__subtitle {
    color: var(--spy-muted);
    font-size: 0.92rem;
    margin: 0 0 28px;
}

/* --- Fields --- */
.spy-field {
    margin-bottom: 18px;
}
.spy-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--spy-ink);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}
.spy-input {
    position: relative;
    display: flex;
    align-items: center;
}
.spy-input svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--spy-muted);
    pointer-events: none;
}
.spy-input input {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    border: 1.5px solid var(--spy-border);
    border-radius: var(--spy-radius);
    background: #fbfcfe;
    font-size: 0.95rem;
    color: var(--spy-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
}
.spy-input input::placeholder { color: #b6bdca; }
.spy-input input:focus {
    border-color: var(--spy-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(70, 128, 255, 0.14);
}
.spy-input input:focus + svg,
.spy-input:focus-within svg { color: var(--spy-blue); }
.spy-input .spy-toggle {
    position: absolute;
    right: 8px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--spy-muted);
    cursor: pointer;
    border-radius: 8px;
    pointer-events: auto;
    transition: color 0.15s ease, background 0.15s ease;
}
.spy-input .spy-toggle:hover { color: var(--spy-ink); background: #f0f3f9; }
.spy-input .spy-toggle svg { position: static; }

/* --- Turnstile --- */
.spy-login .cf-turnstile { margin: 4px 0 16px; }

/* --- Alert --- */
.spy-login #error:empty { display: none; }
.spy-login .alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    margin-bottom: 16px;
    border: none;
}
.spy-login .alert-danger {
    background: #ffeef0;
    color: #d33a4f;
}

/* --- Button --- */
.spy-login .btn-spy {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--spy-radius);
    background: linear-gradient(135deg, var(--spy-blue) 0%, var(--spy-blue-dark) 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 20px rgba(70, 128, 255, 0.32);
    transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.spy-login .btn-spy:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(70, 128, 255, 0.42); }
.spy-login .btn-spy:active { transform: translateY(0); }
.spy-login .btn-spy:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.spy-login .btn-spy .spy-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spySpin 0.7s linear infinite;
}
.spy-login__footnote {
    text-align: center;
    margin-top: 22px;
    font-size: 0.78rem;
    color: var(--spy-muted);
}

@keyframes spySpin { to { transform: rotate(360deg); } }
@keyframes spyFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spyGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes spyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}
@keyframes spyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@keyframes spyRing {
    0%   { transform: scale(0.7); opacity: 0.55; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .spy-login__brand,
    .spy-login__brand::before,
    .spy-login__brand::after,
    .spy-orb,
    .spy-login__logo,
    .spy-login__ring { animation: none !important; }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .spy-login { flex-direction: column; }
    .spy-login__brand { display: none; }
    .spy-login__panel { flex: 1; min-height: 100vh; }
    .spy-login__mobile-logo { display: block; }
}

/* ==========================================================================
   SPY - Dashboard revamp (scoped under .spy-dash)
   ========================================================================== */
.spy-dash {
    --d-ink: #1b2559;
    --d-muted: #8a94a6;
    --d-border: #eceff5;
    --d-radius: 16px;
    --d-shadow: 0 6px 22px rgba(27, 37, 89, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--d-ink);
    /* Naikkan konten agar hero menempati pita biru header (hilangkan gap kosong).
       Nilai -140px menyamai trik .page-header bawaan template. */
    margin-top: -140px;
    padding-top: 24px;
}

/* --- Hero --- */
.spy-dash__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 28px;
    border-radius: var(--d-radius);
    background: #fff;
    border: 1px solid var(--d-border);
    color: var(--d-ink);
    box-shadow: var(--d-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
/* aksen lingkaran biru tipis di pojok */
.spy-dash__hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at center, rgba(70,128,255,0.10), rgba(70,128,255,0));
    border-radius: 50%;
    pointer-events: none;
}
.spy-dash__hero-text { position: relative; z-index: 2; }
.spy-dash__hero-eyebrow { font-size: 0.9rem; color: var(--d-muted); }
.spy-dash__hero-name { margin: 2px 0 6px; font-size: 1.6rem; font-weight: 700; color: var(--d-ink); }
.spy-dash__hero-sub { margin: 0; font-size: 0.95rem; color: var(--d-muted); }
.spy-dash__hero-sub strong { font-weight: 600; color: var(--d-ink); }

/* Metric ring (tingkat pembayaran) */
.spy-dash__hero-metric {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}
.spy-dash__ring {
    --pct: 0;
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background:
        conic-gradient(#4680ff calc(var(--pct) * 1%), #e8eefc 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.spy-dash__ring-hole {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #eef2fb;
}
.spy-dash__ring-hole span { font-size: 1.15rem; font-weight: 700; color: #2f63e0; }
.spy-dash__hero-metric-lbl { font-size: 0.9rem; font-weight: 600; color: var(--d-ink); line-height: 1.25; }

/* --- Stat cards --- */
.spy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.spy-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.spy-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 37, 89, 0.10); }
.spy-stat__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.spy-stat__icon svg { width: 26px; height: 26px; }
.spy-stat__icon--amber { background: linear-gradient(135deg, #ffb547, #ff8c1a); box-shadow: 0 6px 14px rgba(255, 140, 26, 0.32); }
.spy-stat__icon--green { background: linear-gradient(135deg, #34d97d, #12b76a); box-shadow: 0 6px 14px rgba(18, 183, 106, 0.32); }
.spy-stat__icon--blue  { background: linear-gradient(135deg, #5a8dff, #2f63e0); box-shadow: 0 6px 14px rgba(70, 128, 255, 0.32); }
.spy-stat__icon--rose  { background: linear-gradient(135deg, #ff7a93, #f43f5e); box-shadow: 0 6px 14px rgba(244, 63, 94, 0.32); }
.spy-stat__body { display: flex; flex-direction: column; min-width: 0; }
.spy-stat__label { font-size: 0.82rem; color: var(--d-muted); font-weight: 500; }
.spy-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--d-ink);
    line-height: 1.2;
    margin: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spy-stat__caption { font-size: 0.74rem; color: var(--d-muted); }

/* --- Scoreboard strip --- */
.spy-score {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
.spy-score__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-right: 1px solid var(--d-border);
}
.spy-score__item:last-child { border-right: none; }
.spy-score__ico {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.spy-score__ico--blue   { background: rgba(70,128,255,0.12);  color: #2f63e0; }
.spy-score__ico--green  { background: rgba(18,183,106,0.12);  color: #12b76a; }
.spy-score__ico--amber  { background: rgba(255,159,67,0.14);  color: #f08c1a; }
.spy-score__ico--purple { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
.spy-score__meta { display: flex; flex-direction: column; }
.spy-score__val { font-size: 1.4rem; font-weight: 700; color: var(--d-ink); line-height: 1.1; }
.spy-score__lbl { font-size: 0.76rem; color: var(--d-muted); }

/* --- Chart cards --- */
.spy-dash__charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.spy-card--full { margin-bottom: 24px; }
.spy-card {
    background: #fff;
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow);
    overflow: hidden;
}
.spy-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--d-border);
}
.spy-card__title { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--d-ink); }
.spy-card__sub { font-size: 0.78rem; color: var(--d-muted); }
.spy-card__body { padding: 22px; }

.spy-chart-scroll { overflow-x: auto; }
.spy-chart-scroll > div { position: relative; }

/* Legend for donut */
.spy-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--d-ink);
}
.spy-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.spy-dot--green { background: #12b76a; }
.spy-dot--amber { background: #ff9f43; }

/* Empty state */
.spy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 320px;
    color: var(--d-muted);
    text-align: center;
}
.spy-empty svg { width: 46px; height: 46px; opacity: 0.5; margin-bottom: 12px; }
.spy-empty p { margin: 0; font-size: 0.92rem; }

@media (max-width: 575px) {
    .spy-dash__hero { padding: 22px; }
    .spy-dash__hero-metric { width: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   SPY - Header revamp (shared di semua halaman)
   Header template tingginya 50px & tiap <li> diberi line-height:50px.
   Semua elemen custom di-reset line-height + di-center agar tidak melar.
   ========================================================================== */
.pcoded-header.spy-header,
.pcoded-header.spy-header.header-blue {
    background: linear-gradient(90deg, #4680ff 0%, #3a6fee 55%, #2f63e0 100%) !important;
    box-shadow: 0 2px 12px rgba(47, 99, 224, 0.22);
    color: #fff;
    align-items: center;
}
.spy-header .navbar-collapse { align-items: center; height: 50px; }
/* kunci tinggi baris agar header tetap 50px */
.spy-header .navbar-nav > li {
    line-height: normal !important;
    display: flex !important;
    align-items: center;
    height: 50px;
}
.spy-header .navbar-nav.ml-auto { align-items: center; }
.spy-header .navbar-nav.ml-auto > li:last-child { padding-right: 20px; }

/* Brand */
.spy-header .m-header { justify-content: flex-start; }
.spy-header__brand {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    line-height: 1.12;
}
.spy-header__brand-name { font-size: 0.98rem; font-weight: 700; color: #fff; }
.spy-header__brand-sub { font-size: 0.64rem; font-weight: 400; color: rgba(255,255,255,0.72); letter-spacing: 0.2px; }

/* Search icon color */
.spy-header .pop-search i { color: #fff; }

/* Live clock (compact pill) */
.spy-header__clock {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    margin-left: 4px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 9px;
    color: #fff;
    white-space: nowrap;
}
.spy-header__clock i { font-size: 1rem; opacity: 0.9; }
.spy-header__clock span { display: flex; flex-direction: column; line-height: 1.15; }
.spy-header__clock b { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.4px; }
.spy-header__clock small { font-size: 0.6rem; opacity: 0.82; }

/* Notification bell */
.spy-header__bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 4px;
    border-radius: 10px;
    color: #fff !important;
    transition: background 0.15s ease;
}
.spy-header__bell:hover { background: rgba(255,255,255,0.16); }
.spy-header__bell i { font-size: 1.12rem; }
.spy-header__bell-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #ff5c72;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 0 0 2px #3a6fee;
}

/* User chip */
.spy-header__user {
    display: flex !important;
    align-items: center;
    gap: 9px;
    height: 40px;
    max-width: 190px;
    padding: 0 12px 0 4px !important;
    border-radius: 40px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.15s ease;
}
.spy-header__user:hover { background: rgba(255,255,255,0.22); }
.spy-header__avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    background: #fff;
}
.spy-header__user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.12;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}
.spy-header__user-meta b {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spy-header__user-meta small {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spy-header__caret { flex: 0 0 auto; color: rgba(255,255,255,0.85); font-size: 0.85rem; }

/* Sembunyikan elemen non-esensial di layar sempit agar tidak overflow */
@media (max-width: 1199px) {
    .spy-header__clock-wrap { display: none !important; }
}
@media (max-width: 767px) {
    .spy-header__user-meta { display: none; }
    .spy-header__user { max-width: none; padding: 0 6px !important; }
    .spy-header__brand-sub { display: none; }
}

/* ==========================================================================
   SPY - List / table page revamp (scoped .spy-page)
   ========================================================================== */
.spy-page {
    --p-ink: #1b2559;
    --p-muted: #8a94a6;
    --p-border: #eceff5;
    --p-blue: #4680ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--p-ink);
}
/* beri jarak dari header fixed (template menaruh page-header dgn margin-top negatif) */
.spy-page .page-header { padding-top: 22px; margin-bottom: 22px; }

/* Score cards */
.spy-page__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.spy-pstat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--p-border);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(27, 37, 89, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.spy-pstat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(27, 37, 89, 0.09); }
.spy-pstat--click { cursor: pointer; }
.spy-pstat--click.is-active {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 2px rgba(70,128,255,0.35), 0 10px 24px rgba(70,128,255,0.14);
}
.spy-pstat__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spy-pstat__icon svg { width: 24px; height: 24px; }
.spy-pstat__icon--blue  { background: rgba(70,128,255,0.12);  color: #2f63e0; }
.spy-pstat__icon--green { background: rgba(18,183,106,0.12);  color: #12b76a; }
.spy-pstat__icon--teal  { background: rgba(20,184,166,0.12);  color: #0d9488; }
.spy-pstat__icon--amber { background: rgba(255,159,67,0.14);  color: #f08c1a; }
.spy-pstat__body { display: flex; flex-direction: column; min-width: 0; }
.spy-pstat__val { font-size: 1.5rem; font-weight: 700; color: var(--p-ink); line-height: 1.1; }
.spy-pstat__lbl { font-size: 0.78rem; color: var(--p-muted); }

/* Filter bar */
.spy-filterbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--p-border);
}
.spy-filterbar__title { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--p-ink); }
.spy-filterbar__title i { color: var(--p-blue); }
.spy-filterbar__group { display: inline-flex; align-items: center; gap: 8px; }
.spy-filterbar__sep { color: var(--p-muted); font-size: 0.82rem; }
.spy-date {
    height: 38px;
    border: 1.5px solid var(--p-border);
    border-radius: 9px;
    padding: 0 12px;
    background: #fbfcfe;
    color: var(--p-ink);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spy-date:focus { border-color: var(--p-blue); box-shadow: 0 0 0 3px rgba(70,128,255,0.12); }
.spy-select {
    height: 38px;
    min-width: 180px;
    border: 1.5px solid var(--p-border);
    border-radius: 9px;
    padding: 0 34px 0 12px;
    background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--p-ink);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spy-select:focus { border-color: var(--p-blue); box-shadow: 0 0 0 3px rgba(70,128,255,0.12); }
.spy-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 15px;
    border: 1.5px solid var(--p-border);
    border-radius: 9px;
    background: #fff;
    color: var(--p-ink);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease;
}
.spy-btn-sm:hover { background: #f2f6ff; border-color: #cdd9f5; color: var(--p-blue); }
.spy-btn-sm--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #4680ff 0%, #2f63e0 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(70,128,255,0.30);
}
.spy-btn-sm--primary:hover { background: linear-gradient(135deg, #3f77f5 0%, #285ad4 100%); color: #fff; border-color: transparent; }

/* ==========================================================================
   SPY - Form (tambah/edit) revamp (scoped .spy-form)
   Hanya styling; struktur & class fungsional (select2, wizard, mask) tetap.
   ========================================================================== */
.spy-form {
    --p-ink: #1b2559;
    --p-muted: #8a94a6;
    --p-border: #eceff5;
    --p-blue: #4680ff;
}
button.spy-btn-primary { border: none; cursor: pointer; font-family: inherit; }
.spy-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--p-ink);
    margin-bottom: 7px;
}
.spy-form label small { font-weight: 400; color: var(--p-muted); }
.spy-form .form-group { margin-bottom: 18px; }
.spy-form .form-control {
    height: 44px;
    border: 1.5px solid #e4e9f2;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    font-size: 0.9rem;
    color: var(--p-ink);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.spy-form select.form-control { padding-right: 30px; }
.spy-form textarea.form-control { height: auto; min-height: 92px; padding: 12px 14px; }
.spy-form input[type="file"].form-control { height: auto; padding: 9px 12px; line-height: 1.4; }
.spy-form .form-control:focus {
    border-color: var(--p-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(70,128,255,0.14);
}

/* Fieldset alamat */
.spy-form fieldset {
    border: 1px solid var(--p-border);
    border-radius: 12px;
    padding: 20px 20px 4px;
    margin: 4px 0 8px;
    background: #fbfcff;
}
.spy-form legend {
    width: auto;
    padding: 5px 14px;
    margin-bottom: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--p-blue);
    background: #eaf1ff;
    border: 1px solid #dbe6ff;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.spy-form legend::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--p-blue);
    flex: 0 0 auto;
}

/* Input group (prefix Rp) */
.spy-form .input-group-text {
    height: 44px;
    border: 1.5px solid var(--p-border);
    border-radius: 10px;
    background: #f2f5fb;
    color: var(--p-ink);
    font-weight: 600;
}

/* Tabs (nav-pills) */
.spy-form .nav-pills {
    background: #f2f5fb;
    border-radius: 12px;
    padding: 5px;
    gap: 4px;
}
.spy-form .nav-pills .nav-link {
    border-radius: 9px;
    color: var(--p-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 12px;
    transition: color 0.15s ease, background 0.15s ease;
}
.spy-form .nav-pills .nav-link:hover { color: var(--p-blue); }
.spy-form .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #4680ff, #2f63e0);
    color: #fff;
    box-shadow: 0 6px 14px rgba(70,128,255,0.30);
}
/* Stepper bernomor pada wizard */
.spy-form .nav-pills { counter-reset: wz; }
.spy-form .nav-pills .nav-link { counter-increment: wz; display: flex; align-items: center; justify-content: center; gap: 9px; }
.spy-form .nav-pills .nav-link::before {
    content: counter(wz);
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: #e2e9f6; color: #6b7488;
    font-size: 0.78rem; font-weight: 700; flex: 0 0 auto;
    transition: background 0.15s ease, color 0.15s ease;
}
.spy-form .nav-pills .nav-link.active::before { background: rgba(255,255,255,0.28); color: #fff; }

/* Progress bar wizard */
.spy-form .progress { background: #eceff5; border-radius: 20px; }
.spy-form .progress-bar { background: linear-gradient(90deg, #4680ff, #2f63e0) !important; }

/* Prev / Next wizard */
.spy-form .btn-page { border-top: 1px solid var(--p-border); padding-top: 18px; margin-top: 6px; }
.spy-form .button-previous,
.spy-form .button-next {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 20px;
    border: none !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
}
.spy-form .button-next {
    background: linear-gradient(135deg, #4680ff, #2f63e0) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(70,128,255,0.30);
}
.spy-form .button-next:hover { color: #fff !important; }
.spy-form .button-previous { background: #eef1f7 !important; color: #43506b !important; box-shadow: none; }
.spy-form .button-previous:hover { background: #e4e8f1 !important; }

/* Select2 agar setinggi input */
.spy-form .select2-container--default .select2-selection--single {
    height: 44px;
    border: 1.5px solid #e4e9f2;
    border-radius: 10px;
    background: #fff;
}
.spy-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 12px;
    color: var(--p-ink);
}
.spy-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.spy-form .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(70,128,255,0.14);
}

/* Tombol aksi bawah */
.spy-form__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.spy-form__actions .spy-btn-primary { border: none; cursor: pointer; font-family: inherit; }
.spy-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 11px;
    background: #fff;
    border: 1.5px solid var(--p-border);
    color: var(--p-ink) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.spy-btn-ghost:hover { background: #f6f8fc; border-color: #cdd9f5; color: var(--p-ink); }

/* Info note */
.spy-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #eef5ff;
    border: 1px solid #d6e4ff;
    border-left: 3px solid var(--p-blue);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #43506b;
}
.spy-note b { color: var(--p-ink); }
.spy-note ul { margin: 6px 0 0; padding-left: 18px; }
.spy-note li { margin-bottom: 2px; }

/* ==========================================================================
   SPY - Detail page (scoped .spy-detail)
   ========================================================================== */
.spy-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--p-blue);
    background: #eaf1ff;
    padding: 4px 10px;
    border-radius: 20px;
}
/* Sub-heading dalam kartu detail */
.spy-subhead {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--p-blue);
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--p-border);
}

/* Info table */
.spy-info { width: 100%; border-collapse: collapse; }
.spy-info td { padding: 7px 0; font-size: 0.88rem; vertical-align: top; color: #3a4256; line-height: 1.5; }
.spy-info td:first-child { width: 120px; color: var(--p-muted); font-weight: 500; }
.spy-info td:nth-child(2) { width: 14px; color: var(--p-muted); }

/* Dokumen */
.spy-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--p-border);
    border-radius: 11px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.spy-doc:last-child { margin-bottom: 0; }
.spy-doc.is-ok:hover { background: #f6f9ff; border-color: #cdd9f5; }
.spy-doc__ico {
    width: 38px; height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.spy-doc__name { flex: 1; font-weight: 600; color: var(--p-ink); font-size: 0.9rem; }
.spy-doc__status { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.spy-doc.is-ok .spy-doc__ico,
.spy-doc.is-ok .spy-doc__status { background: rgba(18,183,106,0.12); color: #12b76a; }
.spy-doc.is-empty { cursor: default; }
.spy-doc.is-empty .spy-doc__ico,
.spy-doc.is-empty .spy-doc__status { background: #f1f3f7; color: #9aa3b5; }

/* Metric cards */
.spy-metric {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px 22px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 22px rgba(27,37,89,0.10);
}
.spy-metric:last-child { margin-bottom: 0; }
.spy-metric__label { font-size: 0.85rem; font-weight: 500; opacity: 0.95; margin-bottom: 6px; }
.spy-metric__val { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.spy-metric__ico { position: absolute; right: -6px; bottom: -16px; font-size: 4.6rem; opacity: 0.16; }
.spy-metric--amber { background: linear-gradient(135deg, #ffb547, #ff8c1a); }
.spy-metric--green { background: linear-gradient(135deg, #34d97d, #12b76a); }
.spy-metric--red   { background: linear-gradient(135deg, #ff7a93, #f43f5e); }

/* Profile header */
.spy-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--p-border);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(27, 37, 89, 0.06);
    margin-bottom: 20px;
}
.spy-profile__avatar {
    flex: 0 0 auto;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a8dff, #2f63e0);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px;
    box-shadow: 0 8px 18px rgba(70, 128, 255, 0.32);
}
.spy-profile__main { min-width: 0; }
.spy-profile__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spy-profile__name { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--p-ink); }
.spy-profile__id { color: var(--p-muted); font-size: 0.85rem; font-weight: 600; margin: 3px 0 12px; }
.spy-profile__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spy-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f2f5fb;
    border: 1px solid var(--p-border);
    color: #43506b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.spy-chip i { color: var(--p-blue); font-size: 0.9rem; }

/* KPI grid */
.spy-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.spy-kpis .spy-metric { margin-bottom: 0; }

/* Kolom kiri detail: kartu bertumpuk */
.spy-detail .col-lg-4 > .spy-card { margin-bottom: 20px; }
.spy-detail .col-lg-4 > .spy-card:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
    .spy-kpis { grid-template-columns: 1fr; }
    .spy-profile { flex-direction: column; text-align: center; }
    .spy-profile__top { justify-content: center; }
    .spy-profile__chips { justify-content: center; }
}

/* Tabs (nav-tabs) */
.spy-detail .nav-tabs { border-bottom: 1px solid var(--p-border); gap: 2px; }
.spy-detail .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--p-muted);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
}
.spy-detail .nav-tabs .nav-link:hover { color: var(--p-blue); }
.spy-detail .nav-tabs .nav-link.active { color: var(--p-blue); background: transparent; border-bottom-color: var(--p-blue); }

/* Header halaman */
.spy-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
/* Judul & breadcrumb tampil DI ATAS pita biru header -> teks putih */
.spy-page__title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.spy-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.spy-breadcrumb li { display: flex; align-items: center; }
.spy-breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: rgba(255, 255, 255, 0.6); }
.spy-breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.15s ease; }
.spy-breadcrumb a:hover { color: #fff; }
.spy-breadcrumb li.active { color: #fff; font-weight: 600; }

/* Tombol utama = pill putih agar menonjol di atas pita biru */
.spy-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4680ff 0%, #2f63e0 100%);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(70, 128, 255, 0.32);
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.spy-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(70, 128, 255, 0.42); color: #fff; }
.spy-btn-primary i { font-size: 1rem; }

/* Tombol "Tambah" di page-header duduk di atas pita biru -> pill putih */
.spy-page__head .spy-btn-primary {
    background: #fff;
    color: #2f63e0 !important;
    box-shadow: 0 6px 18px rgba(16, 27, 51, 0.18);
}
.spy-page__head .spy-btn-primary:hover { background: #f4f7ff; color: #2f63e0 !important; box-shadow: 0 10px 24px rgba(16, 27, 51, 0.24); }

/* --- DataTables toolbar --- */
.spy-page .dataTables_wrapper { padding: 4px 2px; }
.spy-page .dataTables_length,
.spy-page .dataTables_filter { color: var(--p-muted); font-size: 0.85rem; }
.spy-page .dataTables_length select,
.spy-page .dataTables_filter input {
    height: 38px;
    border: 1.5px solid var(--p-border);
    border-radius: 9px;
    padding: 0 12px;
    background: #fbfcfe;
    color: var(--p-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spy-page .dataTables_length select { padding-right: 26px; }
.spy-page .dataTables_filter input { min-width: 210px; margin-left: 8px; }
.spy-page .dataTables_length select:focus,
.spy-page .dataTables_filter input:focus {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(70, 128, 255, 0.14);
}
.spy-page .dt-buttons { display: inline-flex; gap: 8px; }
.spy-page .dt-buttons .btn,
.spy-page .dt-buttons .dt-button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1.5px solid var(--p-border);
    border-radius: 9px;
    background: #fff;
    color: var(--p-ink) !important;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.spy-page .dt-buttons .btn:hover,
.spy-page .dt-buttons .dt-button:hover {
    background: #f2f6ff;
    border-color: #cdd9f5;
    color: var(--p-blue) !important;
}

/* --- Table --- */
.spy-page table.dataTable,
.spy-page .spy-table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    border: none;
}
.spy-page .spy-table thead th {
    background: #f7f9fc;
    color: var(--p-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
    border-bottom: 1px solid var(--p-border);
    padding: 12px 14px;
    vertical-align: middle;
}
/* baris kedua = filter inputs */
.spy-page .spy-table thead tr:nth-child(2) th { background: #fff; padding: 8px 10px; }
.spy-page .spy-table tbody td {
    border: none;
    border-bottom: 1px solid var(--p-border);
    padding: 12px 14px;
    font-size: 0.86rem;
    color: #3a4256;
    vertical-align: middle;
}
.spy-page .spy-table tbody tr { background: #fff; transition: background 0.12s ease; }
.spy-page .spy-table tbody tr:hover { background: #f6f9ff; }
.spy-page .spy-table tbody tr:last-child td { border-bottom: none; }
.spy-page .spy-table a { color: var(--p-blue); font-weight: 600; text-decoration: none; }
.spy-page .spy-table a:hover { text-decoration: underline; }

/* input filter di header */
.spy-page .form-control2 {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1.5px solid var(--p-border);
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--p-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spy-page .form-control2:focus { border-color: var(--p-blue); box-shadow: 0 0 0 3px rgba(70, 128, 255, 0.12); }
.spy-page .form-control2:disabled { background: #f1f3f7; }

/* --- Info & pagination --- */
.spy-page .dataTables_info { color: var(--p-muted); font-size: 0.82rem; padding-top: 14px; }
.spy-page .dataTables_paginate { padding-top: 10px; }
.spy-page .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin-left: 4px;
    border-radius: 8px !important;
    border: 1px solid var(--p-border) !important;
    background: #fff !important;
    color: var(--p-ink) !important;
    font-size: 0.82rem;
}
.spy-page .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #4680ff, #2f63e0) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.spy-page .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: #f2f6ff !important;
    border-color: #cdd9f5 !important;
    color: var(--p-blue) !important;
}
.spy-page .dataTables_paginate .paginate_button.disabled { opacity: 0.45; }

@media (max-width: 575px) {
    .spy-page .dataTables_filter input { min-width: 140px; }
}

/* ==========================================================================
   Isi tinggi viewport penuh — cegah background biru body (#4680ff) tampak
   di bawah konten/sidebar saat halaman pendek. (template default 84vh)
   ========================================================================== */
.pcoded-main-container { min-height: 100vh; }
.pcoded-navbar { min-height: calc(100vh - 50px); }

/* ==========================================================================
   Badge & tombol aksi di dalam tabel (.spy-page) — tampilan modern lembut.
   Berlaku otomatis untuk semua halaman list.
   ========================================================================== */

/* --- Badge: pill lembut --- */
.spy-page .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em;
    border: 1px solid transparent; vertical-align: middle;
}
.spy-page .badge-success  { background: #e6f7ef; color: #0f9d63; border-color: #c8efdb; }
.spy-page .badge-info     { background: #e8f1ff; color: #2f63e0; border-color: #d3e2ff; }
.spy-page .badge-primary  { background: #e8f1ff; color: #2f63e0; border-color: #d3e2ff; }
.spy-page .badge-danger   { background: #fdecea; color: #e5342a; border-color: #f7d4d0; }
.spy-page .badge-warning  { background: #fff4e5; color: #c77700; border-color: #ffe2b8; }
.spy-page .badge-secondary{ background: #eef1f6; color: #5b6478; border-color: #e2e7f0; }
.spy-page .badge-light    { background: #f4f7fb; color: #5b6478; border-color: #e9edf5; }
.spy-page .badge-dark     { background: #2b3244; color: #fff; }

/* --- Tombol aksi di sel tabel --- */
.spy-page td .btn.btn-sm {
    border-radius: 9px; padding: 6px 12px;
    font-size: 0.78rem; font-weight: 600; line-height: 1.1;
    border: 1px solid transparent; box-shadow: none;
    transition: all .15s ease;
}
.spy-page td .btn.btn-sm i { font-size: 14px; line-height: 1; }
.spy-page td .btn.btn-sm + .btn.btn-sm { margin-left: 6px; }

/* Tombol ikon-only (edit/hapus/rusak) -> kotak rapi */
.spy-page td .btnEdit,
.spy-page td .btnHapus,
.spy-page td .btnRusak,
.spy-page td .btnUpload,
.spy-page td .btnAktivasi {
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Varian warna lembut + hover solid */
.spy-page td .btn-warning { background: #fff4e5; color: #e08600; }
.spy-page td .btn-warning:hover { background: #f79009; color: #fff; box-shadow: 0 5px 13px rgba(247,144,9,.34); }
.spy-page td .btn-danger  { background: #fdecea; color: #e5342a; }
.spy-page td .btn-danger:hover  { background: #f04438; color: #fff; box-shadow: 0 5px 13px rgba(240,68,56,.34); }
.spy-page td .btn-info    { background: #e8f1ff; color: #2f63e0; }
.spy-page td .btn-info:hover    { background: #4680ff; color: #fff; box-shadow: 0 5px 13px rgba(70,128,255,.34); }
.spy-page td .btn-success { background: #e6f7ef; color: #0f9d63; }
.spy-page td .btn-success:hover { background: #12b76a; color: #fff; box-shadow: 0 5px 13px rgba(18,183,106,.34); }
.spy-page td .btn-primary { background: #e8f1ff; color: #2f63e0; }
.spy-page td .btn-primary:hover { background: #4680ff; color: #fff; box-shadow: 0 5px 13px rgba(70,128,255,.34); }
.spy-page td .btn-dark    { background: #eceff4; color: #2b3244; }
.spy-page td .btn-dark:hover    { background: #2b3244; color: #fff; }
.spy-page td .btn.btn-sm:disabled,
.spy-page td .btn.btn-sm.disabled { opacity: .4; box-shadow: none; cursor: not-allowed; }
.spy-page td .btn.btn-sm:disabled:hover,
.spy-page td .btn.btn-sm.disabled:hover { box-shadow: none; }