/* ==========================================================================
   Portal Resmi Pengurus RW & Sistem Informasi RW (SIRW) v1.0.0
   Tema: Emerald RW (#047857) • Navy Slate (#0F172A) • Gold (#D97706)
   ========================================================================== */

:root {
    --rw-emerald: #047857;
    --rw-emerald-dark: #065f46;
    --rw-navy: #0f172a;
    --rw-gold: #d97706;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Running Text / News Ticker */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-move {
    display: inline-block;
    padding-left: 100%;
    animation: rwTicker 36s linear infinite;
}

.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

@keyframes rwTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Hero Slider Fade */
.hero-slide {
    display: none;
    animation: fadeInHero 0.45s ease-in-out;
}
.hero-slide.active {
    display: block;
}
@keyframes fadeInHero {
    from { opacity: 0.45; transform: scale(1.01); }
    to   { opacity: 1; transform: scale(1); }
}

/* Styling Biodata Surat Resmi */
.surat-paper {
    background: #ffffff;
    color: #0f172a;
    font-family: 'Times New Roman', Georgia, serif;
    line-height: 1.65;
    font-size: 14.5px;
}

.surat-kop {
    border-bottom: 3px double #0f172a;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.surat-biodata {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px 0;
}

.surat-biodata td {
    padding: 4px 6px;
    vertical-align: top;
}

/* Scrollbar halus untuk tabel responsif */
.table-scroll::-webkit-scrollbar {
    height: 6px;
}
.table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Mode Cetak (Print-Friendly) untuk Laporan Kas & Template Surat */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .no-print,
    header,
    nav,
    footer,
    aside,
    .floating-wa {
        display: none !important;
    }
    .print-area {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    .print-only {
        display: block !important;
    }
    .surat-paper {
        padding: 12mm !important;
        border: none !important;
        box-shadow: none !important;
    }
}
