/* ============================================================
   Rapor Design Layer — dipakai semua halaman (diinjeksi otomatis)
   Palet: emerald dalam + amber; netral slate; tipografi Inter
   ============================================================ */
:root {
    --rp-deep: #063a31;
    --rp-emerald: #0b5d4e;
    --rp-emerald-2: #0f766e;
    --rp-mint: #d9f0e7;
    --rp-amber: #e9a800;
    --rp-amber-soft: #fdf3d3;
    --rp-ink: #0b1d19;
    --rp-muted: #5b6b67;
    --rp-line: #e3ebe8;
    --rp-bg: #f4f7f6;
    --rp-card: #ffffff;
    --rp-radius: 16px;
    --rp-shadow: 0 1px 2px rgba(6, 58, 49, .05), 0 12px 32px -18px rgba(6, 58, 49, .28);
    --rp-shadow-lg: 0 24px 60px -28px rgba(6, 58, 49, .45);
    --rp-sidebar-w: 17rem;
}

* { -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--rp-bg);
    color: var(--rp-ink);
    -webkit-font-smoothing: antialiased;
}
body.rp-lock { overflow: hidden; }

/* ---------- shell ---------- */
@media (min-width: 768px) {
    body:not(.rp-login) { padding-left: var(--rp-sidebar-w); }
}
@media (max-width: 767.98px) {
    body:not(.rp-login) { padding-top: 3.9rem; }
    body.rp-lock .rp-mobile-btn { display: none; }
}

.rp-mobilebar {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 44;
    height: 3.6rem; padding: 0 .9rem 0 4.1rem; align-items: center; gap: .15rem;
    background: rgba(244, 247, 246, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(227, 235, 232, .9);
}
.rp-mobilebar__name { font-size: .8rem; font-weight: 800; color: var(--rp-ink); line-height: 1.2; }
.rp-mobilebar__role { margin-left: .45rem; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--rp-muted); }
.rp-mobilebar__avatar {
    margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    font-size: .78rem; font-weight: 800; color: #063a31; background: linear-gradient(135deg, #f7d98a, #e9a800);
}
@media (max-width: 767.98px) { .rp-mobilebar { display: flex; } }

.rp-mobile-btn {
    position: fixed; top: .78rem; left: .85rem; z-index: 60;
    width: 42px; height: 42px; border-radius: 12px; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rp-deep); color: #fff; font-size: 1rem;
    box-shadow: var(--rp-shadow);
}
@media (min-width: 768px) { .rp-mobile-btn { display: none; } }

.rp-overlay {
    position: fixed; inset: 0; z-index: 45; background: rgba(3, 26, 22, .55);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
    backdrop-filter: blur(2px);
}
.rp-overlay.is-on { opacity: 1; pointer-events: auto; }

.rp-sidebar__close {
    position: absolute; top: .8rem; right: .7rem; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; background: rgba(255, 255, 255, .10);
    color: #d7eee7; font-size: .8rem; cursor: pointer;
}
@media (min-width: 768px) { .rp-sidebar__close { display: none; } }
@media (min-width: 768px) { .rp-overlay { display: none; } }

.rp-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50;
    width: var(--rp-sidebar-w); display: flex; flex-direction: column;
    color: #eaf5f1;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(20, 184, 166, .20) 0%, transparent 60%),
        linear-gradient(180deg, #073c33 0%, #052a24 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    transform: translateX(-102%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--rp-shadow-lg);
}
.rp-sidebar.is-open { transform: translateX(0); }
@media (min-width: 768px) { .rp-sidebar { transform: none; box-shadow: none; } }

.rp-sidebar__brand {
    display: flex; gap: .7rem; align-items: center;
    padding: 1.15rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.rp-brandmark {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    display: grid; place-items: center; overflow: hidden;
}
.rp-brandmark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.rp-brandmark__fallback { width: 100%; height: 100%; place-items: center; color: #f5d27a; font-size: 1.05rem; }
.rp-sidebar__tenant {
    font-weight: 800; font-size: .86rem; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff;
}
.rp-sidebar__sub {
    font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
    color: #8fc8b8; font-weight: 700; margin-top: .15rem;
}

.rp-sidebar__nav { flex: 1; overflow-y: auto; padding: .9rem .65rem 1rem; }
.rp-sidebar__nav::-webkit-scrollbar { width: 6px; }
.rp-sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 99px; }

.rp-navgroup {
    font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    color: #7db5a5; font-weight: 800; padding: .85rem .7rem .4rem;
}
.rp-navlink {
    position: relative; display: flex; align-items: center; gap: .7rem;
    padding: .58rem .7rem; margin-bottom: .15rem; border-radius: 11px;
    font-size: .82rem; font-weight: 600; color: #cfe8e0;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rp-navlink i { width: 1.1rem; text-align: center; font-size: .88rem; color: #8fc8b8; transition: color .15s; }
.rp-navlink:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rp-navlink:hover i { color: #fff; }
.rp-navlink.is-active {
    background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
    color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.rp-navlink.is-active i { color: #f5d27a; }
.rp-navlink__dot {
    margin-left: auto; width: 6px; height: 6px; border-radius: 99px;
    background: var(--rp-amber); box-shadow: 0 0 0 4px rgba(233, 168, 0, .18);
}

.rp-sidebar__foot { padding: .8rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.rp-usercard {
    display: flex; align-items: center; gap: .6rem; padding: .55rem;
    border-radius: 12px; background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .07); transition: background .15s;
}
.rp-usercard:hover { background: rgba(255, 255, 255, .1); }
.rp-avatar {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
    display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #063a31;
    background: linear-gradient(135deg, #f7d98a, #e9a800);
}
.rp-usercard__name {
    display: block; font-size: .78rem; font-weight: 700; color: #fff;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.rp-badge {
    display: inline-block; margin-top: .18rem; padding: .08rem .4rem;
    font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 800;
    border-radius: 6px; background: rgba(255, 255, 255, .12); color: #d7eee7;
}
.rp-badge--amber { background: rgba(233, 168, 0, .22); color: #ffdf96; }
.rp-badge--blue { background: rgba(96, 165, 250, .22); color: #bfdbfe; }
.rp-badge--violet { background: rgba(167, 139, 250, .24); color: #ddd6fe; }
.rp-badge--teal { background: rgba(45, 212, 191, .22); color: #99f6e4; }
.rp-badge--green { background: rgba(134, 239, 172, .18); color: #bbf7d0; }

.rp-tenantpick {
    width: 100%; margin-bottom: .5rem; padding: .45rem .55rem; border-radius: 9px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .10);
    color: #d7eee7; font-family: inherit; font-size: .72rem; font-weight: 700;
}
.rp-sidebar__actions { margin-top: .5rem; }
.rp-btn-ghost {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .45rem .6rem; border-radius: 10px; font-size: .72rem; font-weight: 700;
    color: #cfe8e0; background: transparent; border: 1px solid rgba(255, 255, 255, .08);
    transition: background .15s, color .15s;
}
.rp-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- login ---------- */
body.rp-login { min-height: 100vh; background: #eef4f1; }
.rp-login__grid { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rp-login__grid { grid-template-columns: 1.05fr .95fr; } }

.rp-login__brand {
    position: relative; overflow: hidden; display: none;
    background:
        radial-gradient(70% 55% at 15% 10%, rgba(20, 184, 166, .28), transparent 60%),
        radial-gradient(60% 50% at 85% 90%, rgba(233, 168, 0, .18), transparent 55%),
        linear-gradient(150deg, #07443a 0%, #042a24 70%);
    color: #eaf5f1;
}
@media (min-width: 1024px) { .rp-login__brand { display: block; } }
.rp-login__brand::after {
    content: ""; position: absolute; inset: 0; opacity: .30; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(60% 50% at 50% 40%, #000 20%, transparent 80%);
}
.rp-login__brand-inner {
    position: relative; z-index: 1; max-width: 30rem;
    padding: 4.5rem 4rem; display: flex; flex-direction: column; min-height: 100%; justify-content: center;
}
.rp-login__logo {
    width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1.4rem;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15);
    display: grid; place-items: center; overflow: hidden;
}
.rp-login__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rp-login__logo-fallback { width: 100%; height: 100%; place-items: center; font-size: 1.5rem; color: #f5d27a; }
.rp-eyebrow {
    font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
    font-weight: 800; color: #8fc8b8; margin-bottom: .5rem;
}
.rp-eyebrow--dark { color: var(--rp-emerald-2); }
.rp-login__title { font-size: 2.1rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rp-login__lede { margin-top: .9rem; font-size: .92rem; line-height: 1.65; color: #b9d8cf; max-width: 26rem; }
.rp-roles { margin-top: 2rem; display: grid; gap: .55rem; }
.rp-roles li {
    display: flex; align-items: flex-start; gap: .7rem; padding: .65rem .8rem;
    background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px; font-size: .78rem; color: #cfe8e0; line-height: 1.45;
}
.rp-roles i { color: #f5d27a; margin-top: .15rem; width: 1rem; text-align: center; }
.rp-roles b { color: #fff; font-weight: 700; }
.rp-login__foot { margin-top: 2.2rem; font-size: .7rem; color: #7db5a5; display: flex; align-items: center; gap: .5rem; }

.rp-login__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.15rem; gap: 1.25rem; }
.rp-login__mobilebrand { display: flex; align-items: center; gap: .7rem; width: 100%; max-width: 26rem; }
.rp-login__mobilemark {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--rp-emerald), var(--rp-deep)); color: #f5d27a; font-size: 1rem;
}
.rp-login__mobilebrand .rp-eyebrow { color: var(--rp-emerald-2); }
.rp-login__mobilename { font-size: .9rem; font-weight: 800; color: var(--rp-ink); line-height: 1.25; margin-top: .15rem; }
@media (min-width: 1024px) { .rp-login__mobilebrand { display: none; } }
.rp-login__card {
    width: 100%; max-width: 26rem; background: #fff; border-radius: 22px;
    padding: 2.1rem 1.9rem; box-shadow: var(--rp-shadow-lg); border: 1px solid var(--rp-line);
}
.rp-login__cardtitle { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--rp-ink); }
.rp-login__cardsub { font-size: .8rem; color: var(--rp-muted); margin-top: .3rem; margin-bottom: 1.4rem; }

.rp-form { display: grid; gap: .95rem; }
.rp-field { display: grid; gap: .38rem; grid-template-columns: minmax(0, 1fr); }
.rp-field__label { font-size: .72rem; font-weight: 800; color: #37514b; letter-spacing: .02em; }
.rp-field__control {
    display: flex; align-items: center; gap: .6rem; padding: 0 .85rem;
    border: 1.5px solid var(--rp-line); border-radius: 12px; background: #fbfdfc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.rp-field__control:focus-within {
    border-color: var(--rp-emerald-2); background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}
.rp-field__control > i { color: #8aa39c; font-size: .82rem; }
.rp-input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    padding: .78rem 0; font-size: .88rem; font-family: inherit; color: var(--rp-ink);
}
.rp-input::placeholder { color: #a9b8b4; }
.rp-field__eye { border: 0; background: none; color: #8aa39c; cursor: pointer; padding: .3rem; }
.rp-field__eye:hover { color: var(--rp-emerald); }

.rp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 0; cursor: pointer; border-radius: 12px; font-family: inherit;
    font-size: .85rem; font-weight: 800; padding: .72rem 1.1rem;
    color: inherit; text-decoration: none; /* view tanpa Tailwind preflight tetap konsisten */
    transition: transform .12s, box-shadow .12s, background .12s;
}
.rp-btn:active { transform: translateY(1px); }
.rp-btn--primary {
    background: linear-gradient(135deg, var(--rp-emerald) 0%, var(--rp-deep) 100%);
    color: #fff; box-shadow: 0 10px 24px -12px rgba(6, 58, 49, .7);
}
.rp-btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(6, 58, 49, .8); }
.rp-btn--block { width: 100%; margin-top: .35rem; padding: .85rem 1.1rem; }

.rp-alert {
    display: flex; align-items: flex-start; gap: .55rem; padding: .7rem .85rem;
    border-radius: 10px; font-size: .78rem; font-weight: 600; margin-bottom: 1rem;
    border: 1px solid transparent; line-height: 1.45;
}
.rp-alert--error { background: #fef2f2; color: #b42318; border-color: #fee4e2; }
.rp-alert--ok { background: #ecfdf5; color: #067647; border-color: #d1fadf; }
.rp-login__help { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rp-line); font-size: .7rem; color: #8aa39c; text-align: center; line-height: 1.7; }

/* ---------- generic page pieces (dipakai dashboard baru) ---------- */
.rp-page { max-width: 1380px; margin: 0 auto; padding: 1.35rem 1.15rem 3rem; }
@media (min-width: 768px) { .rp-page { padding: 2rem 2rem 3.5rem; } }

.rp-hero {
    position: relative; overflow: hidden; border-radius: 20px; color: #eaf5f1;
    padding: 1.6rem 1.5rem; margin-bottom: 1.35rem;
    background:
        radial-gradient(90% 120% at 88% 8%, rgba(233, 168, 0, .22), transparent 55%),
        radial-gradient(70% 100% at 5% 100%, rgba(20, 184, 166, .22), transparent 60%),
        linear-gradient(135deg, #07443a 0%, #042b25 100%);
    box-shadow: var(--rp-shadow);
}
.rp-hero__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rp-hero__eyebrow { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #8fc8b8; }
.rp-hero__title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-top: .25rem; line-height: 1.2; }
.rp-hero__sub { font-size: .8rem; color: #b9d8cf; margin-top: .45rem; max-width: 46rem; line-height: 1.6; }
.rp-hero__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.rp-hero .rp-btn--soft {
    background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
}
.rp-hero .rp-btn--soft:hover { background: rgba(255, 255, 255, .16); }

.rp-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .6rem;
    border-radius: 999px; font-size: .66rem; font-weight: 800;
    background: rgba(255, 255, 255, .10); color: #d7eee7; border: 1px solid rgba(255, 255, 255, .14);
}
.rp-chip--amber { background: rgba(233, 168, 0, .16); color: #ffdf96; border-color: rgba(233, 168, 0, .28); }

.rp-grid { display: grid; gap: 1rem; }
.rp-grid > *, .rp-stack > * { min-width: 0; }
.rp-card { min-width: 0; }
.rp-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .rp-grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rp-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rp-grid--2 { grid-template-columns: 1.55fr 1fr; } }
.rp-stack { display: grid; gap: 1rem; }

.rp-card {
    background: var(--rp-card); border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius); box-shadow: var(--rp-shadow);
}
.rp-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .95rem 1.15rem; border-bottom: 1px solid var(--rp-line); flex-wrap: wrap;
}
.rp-card__title { font-size: .86rem; font-weight: 800; color: var(--rp-ink); }
.rp-card__sub { font-size: .7rem; color: var(--rp-muted); margin-top: .15rem; }
.rp-card__body { padding: 1.15rem; }
.rp-card__link { font-size: .7rem; font-weight: 800; color: var(--rp-emerald-2); display: inline-flex; align-items: center; gap: .35rem; }
.rp-card__link:hover { color: var(--rp-deep); }

.rp-stat { padding: 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.rp-stat__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rp-stat__icon {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--rp-mint); color: var(--rp-emerald); font-size: .82rem;
}
.rp-stat__icon--amber { background: var(--rp-amber-soft); color: #b47c00; }
.rp-stat__icon--violet { background: #ede9fe; color: #6d28d9; }
.rp-stat__icon--blue { background: #e0f2fe; color: #0369a1; }
.rp-stat__label { font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #81948f; }
.rp-stat__value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--rp-ink); line-height: 1.1; }
.rp-stat__hint { font-size: .68rem; color: var(--rp-muted); }

.rp-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.rp-table th {
    text-align: left; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
    color: #81948f; font-weight: 800; padding: .6rem .9rem; background: #f8fbfa;
    border-bottom: 1px solid var(--rp-line); white-space: nowrap;
}
.rp-table td { padding: .68rem .9rem; border-bottom: 1px solid #f0f5f3; vertical-align: middle; }
.rp-table tbody tr:hover { background: #f9fcfb; }
.rp-table tbody tr:last-child td { border-bottom: 0; }
.rp-table .rp-strong { font-weight: 700; color: var(--rp-ink); }
.rp-table .rp-muted { color: var(--rp-muted); font-size: .72rem; }

.rp-progress { height: 6px; border-radius: 99px; background: #eaf1ee; overflow: hidden; min-width: 70px; }
.rp-progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #0b5d4e); }
.rp-progress--amber > span { background: linear-gradient(90deg, #fbbf24, #e9a800); }

.rp-pill {
    display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem;
    border-radius: 99px; font-size: .64rem; font-weight: 800; white-space: nowrap;
}
.rp-pill--ok { background: #ecfdf5; color: #067647; }
.rp-pill--wait { background: #fffaeb; color: #b54708; }
.rp-pill--info { background: #eff8ff; color: #175cd3; }
.rp-pill--muted { background: #f2f4f7; color: #475467; }
.rp-pill--error { background: #fef3f2; color: #b42318; }

.rp-empty { text-align: center; padding: 2.2rem 1rem; color: var(--rp-muted); font-size: .8rem; }
.rp-empty i { display: block; font-size: 1.4rem; color: #c4d3ce; margin-bottom: .55rem; }

.rp-quick { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-quick a {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem;
    border: 1px solid var(--rp-line); border-radius: 11px; background: #fbfdfc;
    font-size: .76rem; font-weight: 700; color: #33524b; transition: border-color .15s, background .15s, transform .15s;
}
.rp-quick a:hover { border-color: #b9d8cf; background: #f3faf7; transform: translateY(-1px); }
.rp-quick i { color: var(--rp-emerald-2); width: 1rem; text-align: center; }

.rp-list { display: grid; }
.rp-list__row {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .95rem;
    border-bottom: 1px solid #f0f5f3;
}
.rp-list__row:last-child { border-bottom: 0; }
.rp-list__main { flex: 1; min-width: 0; }
.rp-list__title { font-size: .8rem; font-weight: 700; color: var(--rp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-list__sub { font-size: .68rem; color: var(--rp-muted); margin-top: .1rem; }

.rp-toolbar { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.rp-btn--sm { padding: .42rem .65rem; font-size: .7rem; border-radius: 9px; }
.rp-btn--outline { background: #fff; border: 1px solid var(--rp-line); color: #33524b; }
.rp-btn--outline:hover { background: #f7fbf9; border-color: #b9d8cf; }
.rp-btn--amber { background: linear-gradient(135deg, #f5c542, #e9a800); color: #3b2c00; }
.rp-btn--danger { background: #fff1f0; color: #b42318; border: 1px solid #fee4e2; }
.rp-btn--danger:hover { background: #ffe4e0; }

/* ---------- legacy pages: sentuhan halus (Tailwind tetap bekerja) ---------- */
body:not(.rp-login) main,
body:not(.rp-login) .container { }
body:not(.rp-login) table { border-collapse: separate; border-spacing: 0; }
body:not(.rp-login) table thead th { letter-spacing: .02em; }
body:not(.rp-login) input[type="text"],
body:not(.rp-login) input[type="number"],
body:not(.rp-login) input[type="date"],
body:not(.rp-login) input[type="password"],
body:not(.rp-login) select,
body:not(.rp-login) textarea {
    border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
body:not(.rp-login) input:focus,
body:not(.rp-login) select:focus,
body:not(.rp-login) textarea:focus {
    outline: none; border-color: #0f766e !important;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}
body:not(.rp-login) .shadow-md,
body:not(.rp-login) .shadow-sm,
body:not(.rp-login) .shadow-lg { box-shadow: var(--rp-shadow) !important; }
body:not(.rp-login) .rounded-xl { border-radius: 14px; }
body:not(.rp-login) .rounded-2xl { border-radius: 18px; }
body:not(.rp-login) .bg-green-700 { background-color: var(--rp-emerald) !important; }
body:not(.rp-login) .bg-green-800 { background-color: var(--rp-deep) !important; }
body:not(.rp-login) .text-green-800 { color: var(--rp-emerald) !important; }
body:not(.rp-login) .text-green-700 { color: var(--rp-emerald-2) !important; }
body:not(.rp-login) .bg-gray-100 { background-color: var(--rp-bg) !important; }


/* legacy: samakan aksi utama dengan palet baru */
body:not(.rp-login) .bg-blue-600,
body:not(.rp-login) .bg-indigo-600 { background-color: var(--rp-emerald) !important; color: #fff !important; }
body:not(.rp-login) .bg-blue-600:hover,
body:not(.rp-login) .bg-indigo-600:hover { background-color: var(--rp-deep) !important; }
body:not(.rp-login) .bg-blue-700 { background-color: var(--rp-deep) !important; }
body:not(.rp-login) .bg-gray-600 { background-color: #eef3f1 !important; color: #33524b !important; border: 1px solid var(--rp-line); }
body:not(.rp-login) .bg-gray-600:hover { background-color: #e4ece9 !important; color: var(--rp-deep) !important; }
body:not(.rp-login) .bg-blue-100 { background-color: var(--rp-mint) !important; }
body:not(.rp-login) .text-blue-800,
body:not(.rp-login) .text-blue-700 { color: var(--rp-emerald) !important; }
body:not(.rp-login) .border-blue-500 { border-color: var(--rp-emerald-2) !important; }
body:not(.rp-login) button[onclick*="'pdf'"] { background-color: var(--rp-emerald) !important; color: #fff !important; }
body:not(.rp-login) button[onclick*="'print'"] { background-color: #fff !important; color: var(--rp-emerald) !important; box-shadow: inset 0 0 0 1px var(--rp-line); }
body:not(.rp-login) button[onclick*="'print'"]:hover { background-color: #f3faf7 !important; }
body:not(.rp-login) .bg-blue-50 { background-color: #f0f9f5 !important; }

/* print: sidebar hilang */
@media print {
    body { padding-left: 0 !important; background: #fff !important; }
    .rp-sidebar, .rp-mobile-btn, .rp-overlay { display: none !important; }
}
