@import url('logo.css');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    display: block;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-light);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Modules Preview */
.modules-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.module-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.module-card > i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.module-card h3 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.module-features {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.module-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.module-features li i {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Referral Section */
.referral {
    padding: 5rem 0;
    background: var(--bg-white);
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.referral-benefits {
    list-style: none;
    margin-top: 2rem;
}

.referral-benefits li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.referral-benefits i {
    color: var(--secondary-color);
}

.referral-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.referral-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Registration Form */
.register-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-light);
    margin-top: 0.25rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.text-center {
    text-align: center;
}

/* Modules subscription page → styles/modules.css */

/* Dashboard Styles */
.dashboard-section {
    padding: 2rem 0;
}
.dashboard-section.has-bottom-nav {
    padding-bottom: 5.5rem;
}

/* Parent portal styles moved to parent/styles/parent.css */

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-section-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Install Aplikasi (PWA) card - fixed di bawah, 80% lebar, tidak nempel bawah, rapi seperti referensi */
.install-app-card {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 420px;
    z-index: 1000;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0;
}
body.has-install-card .dashboard-section {
    padding-bottom: 5.5rem;
}
.install-app-inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    flex-wrap: nowrap;
}
.install-app-icon {
    font-size: 1.35rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 2.25rem;
    text-align: center;
}
.install-app-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.install-app-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.install-app-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}
.install-app-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.install-app-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}
.install-app-dismiss {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.install-app-dismiss:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
@media (max-width: 360px) {
    .install-app-inner {
        flex-wrap: wrap;
    }
    .install-app-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Desktop: kartu Install tetap ada, lebar proporsional seperti referensi */
@media (min-width: 768px) {
    .install-app-card {
        width: 90%;
        max-width: 480px;
        bottom: 1.5rem;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.06);
    }
    .install-app-inner {
        padding: 1.125rem 1.5rem;
    }
    .install-app-text strong {
        font-size: 1rem;
    }
    .install-app-text span {
        font-size: 0.875rem;
    }
    .install-app-card .btn-primary {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}
@media (min-width: 1024px) {
    .install-app-card {
        max-width: 520px;
        bottom: 2rem;
    }
}


.dashboard-section-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.access-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.access-link-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    position: relative;
    display: block;
}

.access-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.access-link-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.access-link-card h3 {
    margin-bottom: 0.5rem;
}

.access-link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.access-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.access-badge.current {
    background: var(--primary-color);
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.module-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.module-item.active {
    border-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
}

.module-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.module-item h4 {
    font-size: 0.9rem;
}


.payment-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.setting-item label {
    font-weight: 600;
}

.setting-value {
    color: var(--text-dark);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

/* Alert */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert.info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

/* Referral Dashboard */
.referral-link-container {
    margin-bottom: 2rem;
}

.referral-link-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-link-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.referral-code-box label {
    font-weight: 600;
}

.referral-code-box span {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.referral-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.referral-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.commission-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commission-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.referral-table-container {
    overflow-x: auto;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
}

.referral-table th,
.referral-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.referral-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.commission-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.commission-item-info h4 {
    margin-bottom: 0.25rem;
}

.commission-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.commission-item-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Module feature cards (modules.html) → styles/modules.css */

.module-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Module Demo Page Styles */
.module-demo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.module-demo-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.module-demo-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.module-demo-nav-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.module-demo-nav-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.module-demo-nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.module-demo-nav-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.module-demo-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 500px;
}

.module-demo-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.module-demo-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-demo-header h1 i {
    color: var(--primary-color);
}

.module-demo-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.module-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.module-feature-demo-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.module-feature-demo-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-feature-demo-card h3 i {
    color: var(--primary-color);
}

.module-feature-demo-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.module-demo-preview {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.module-demo-preview h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

.demo-placeholder {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
}

.demo-placeholder i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.demo-table th,
.demo-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.demo-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.demo-table td {
    color: var(--text-light);
}

.demo-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.demo-placeholder h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .referral-content {
        grid-template-columns: 1fr;
    }

    .module-demo-nav {
        grid-template-columns: 1fr;
    }
}

/* ========== Parent Dummy Pages (menu ortu) ========== */
.dummy-page-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.dummy-page-hero i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}
.dummy-page-hero h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.dummy-page-hero p { font-size: 0.9rem; opacity: 0.9; }
.dummy-placeholder-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}
.dummy-placeholder-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.dummy-placeholder-card p { font-size: 0.875rem; color: var(--text-light); }
.dummy-coming-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}
.dummy-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.dummy-list-item i { color: var(--text-light); font-size: 1.1rem; }
.dummy-back-wrap { margin-top: 1.5rem; }
.dummy-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 0.75rem; }
.dummy-table th, .dummy-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.dummy-table th { color: var(--text-light); font-weight: 600; }
.dummy-table tr:last-child td { border-bottom: none; }
.dummy-badge-success { color: #059669; font-size: 0.8rem; }
.dummy-badge-warning { color: #D97706; font-size: 0.8rem; }
.dummy-badge-danger { color: #DC2626; font-size: 0.8rem; }
.dummy-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); }
.dummy-row:last-child { border-bottom: none; }
.dummy-row .right { color: var(--text-light); font-size: 0.9rem; }

/* Tagihan model cicilan (Total / Terbayar / Sisa) */
.tagihan-student-wrap {
    margin-bottom: 1.25rem;
}
.tagihan-student-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tagihan-student-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.tagihan-student-select:focus {
    outline: none;
    border-color: var(--primary-dark);
}
.tagihan-student-caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}
.tagihan-student-caption strong {
    color: var(--primary-color);
}
.tagihan-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}
.tagihan-card h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.tagihan-card .tagihan-id { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.tagihan-card .tagihan-badge-prioritas {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #1D4ED8;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
.tagihan-card .tagihan-akun { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.tagihan-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-weight: 600;
}
.tagihan-total-row .amount { font-size: 1.05rem; }
.tagihan-card .tagihan-jatuh-tempo { font-size: 0.85rem; color: var(--text-light); margin: 0.5rem 0; }
.tagihan-card .tagihan-status-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.tagihan-badge-belum { background: #FEF3C7; color: #B45309; padding: 0.35rem 0.75rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.tagihan-badge-lunas { background: #D1FAE5; color: #059669; padding: 0.35rem 0.75rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.tagihan-card .tagihan-saldo-info {
    font-size: 0.85rem;
    color: var(--text-light);
    background: rgba(59, 130, 246, 0.08);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin: 0.75rem 0;
}
.tagihan-card .btn-bayar { width: 100%; margin-top: 0.5rem; padding: 0.75rem; font-weight: 600; }

.tagihan-va-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(67, 56, 202, 0.04));
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.tagihan-va-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.tagihan-va-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}
.tagihan-va-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-dark);
}
.tagihan-va-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 1rem;
    line-height: 1.45;
}
.tagihan-va-bank {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.65rem;
}
.tagihan-va-bank:last-of-type {
    margin-bottom: 0;
}
.tagihan-va-bank-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}
.tagihan-va-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.tagihan-va-number {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    word-break: break-all;
}
.tagihan-va-copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.tagihan-va-copy:hover {
    background: rgba(79, 70, 229, 0.18);
}
.tagihan-va-tips {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    line-height: 1.5;
}
.tagihan-va-tips i {
    color: var(--primary-color);
    margin-right: 0.35rem;
}
.tagihan-va-tips ul {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}
.tagihan-va-tips li {
    margin-bottom: 0.25rem;
}
.tagihan-va-tips li:last-child {
    margin-bottom: 0;
}


/* ============================================================
   Employee / Teacher (Guru) Dashboard — New Mobile-App Style
   ============================================================ */

body.employee-dashboard-new {
    background: #F4F7FB;
}
body.employee-dashboard-new .navbar { display: none; }
body.employee-dashboard-new .dashboard-section {
    padding: 0 0 5.5rem;
    min-height: 100vh;
}
body.employee-dashboard-new .container {
    padding: 0 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Install card sits above bottom-nav on employee dashboard */
body.employee-dashboard-new.has-install-card .dashboard-section { padding-bottom: 10.5rem; }
body.employee-dashboard-new .install-app-card { bottom: 5.5rem; }

/* Top bar (hamburger + Home + bell) */
.ed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0 0.85rem;
}
.ed-topbar-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    padding-left: 0.25rem;
}
.ed-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #FFFFFF;
    border: none;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-size: 1rem;
    position: relative;
}
.ed-icon-btn-ghost {
    background: transparent;
    box-shadow: none;
    color: var(--text-dark);
}
.ed-notif-dot {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 9px;
    height: 9px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid #F4F7FB;
    display: none;
}
.ed-notif-dot.has-new { display: block; }

/* Profile gradient card */
.ed-profile-card {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #4338CA 100%);
    border-radius: 20px;
    padding: 1rem 1.15rem 1.15rem;
    color: #fff;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
    position: relative;
    overflow: hidden;
}
.ed-profile-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.ed-profile-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.ed-profile-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}
.ed-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 700;
}
.ed-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ed-profile-info {
    flex: 1;
    min-width: 0;
}
.ed-profile-info h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    line-height: 1.2;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ed-profile-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.ed-profile-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ed-profile-action:hover { background: rgba(255, 255, 255, 0.28); }
.ed-profile-stats {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}
.ed-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ed-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 500;
}
.ed-stat-row strong {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.ed-stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}
.ed-stat-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #FDE68A, #FBBF24);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Section titles */
.ed-section-title {
    margin: 1.4rem 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #6B7DB3;
    letter-spacing: 0.01em;
}

/* Menu grid (icons) */
.ed-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.ed-menu-item {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 1rem 0.5rem 0.85rem;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid #EEF1F6;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    min-height: 96px;
}
.ed-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #DDE3EE;
}
.ed-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.ed-menu-icon.teal   { background: linear-gradient(135deg, #5EEAD4, #14B8A6); }
.ed-menu-icon.amber  { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.ed-menu-icon.blue   { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.ed-menu-icon.purple { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.ed-menu-icon.pink   { background: linear-gradient(135deg, #F472B6, #EC4899); }
.ed-menu-icon.indigo { background: linear-gradient(135deg, #818CF8, #6366F1); }
.ed-menu-icon.green  { background: linear-gradient(135deg, #34D399, #10B981); }
.ed-menu-icon.red    { background: linear-gradient(135deg, #F87171, #EF4444); }
.ed-menu-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.15;
}

/* Side drawer */
.ed-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ed-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.ed-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #FFFFFF;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.18);
    z-index: 1101;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.ed-drawer.open { transform: translateX(0); }
.ed-drawer-header {
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ed-drawer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 700;
}
.ed-drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ed-drawer-info { min-width: 0; }
.ed-drawer-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ed-drawer-info small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}
.ed-drawer-nav {
    flex: 1;
    padding: 0.5rem 0.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ed-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.ed-drawer-item i {
    width: 22px;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
}
.ed-drawer-item:hover {
    background: #F4F7FB;
}
.ed-drawer-item.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}
.ed-drawer-item.active i {
    color: var(--primary-color);
}

/* Toast */
.ed-toast {
    position: fixed;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 1200;
    max-width: 90vw;
    text-align: center;
}
.ed-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Bottom nav active color for employee dashboard */
body.employee-dashboard-new .bottom-nav-item.active {
    color: var(--primary-color);
}

@media (min-width: 520px) {
    body.employee-dashboard-new .container { padding: 0 1.25rem; }
}

/* ---- Employee Feature Pages (reuse .pf-* styles with thin body wrapper) ---- */
body.employee-feature-new {
    background: #F4F7FB;
}
body.employee-feature-new .navbar { display: none; }
body.employee-feature-new .dashboard-section { padding: 0 0 5.5rem; }
body.employee-feature-new .container { padding: 0; max-width: 480px; }
body.employee-feature-new.has-actionbar .dashboard-section { padding-bottom: 9.5rem; }

/* Active color for employee feature bottom nav */
body.employee-feature-new .bottom-nav-item.active { color: var(--primary-color); }
body.employee-feature-new .bottom-nav-item.active i { color: var(--primary-color); }

/* =====================================================================
   PIMPINAN (Leader) Dashboard — Mobile App Style
   3 Model: #1 Ringkasan, #2 Statistik, #3 Indikator & Tim
   ===================================================================== */
body.pimpinan-dashboard {
    background: #F4F7FB;
}
body.pimpinan-dashboard .navbar { display: none; }
body.pimpinan-dashboard .dashboard-section { padding: 0 0 5.5rem; }
body.pimpinan-dashboard .dashboard-section.has-bottom-nav { padding-bottom: 5.5rem; }
body.pimpinan-dashboard.has-install-card .dashboard-section.has-bottom-nav { padding-bottom: 11rem; }
body.pimpinan-dashboard .container { padding: 0 1rem; max-width: 480px; }

/* Top bar */
.pm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 0 0.5rem;
}
.pm-topbar-greet { display: flex; align-items: center; gap: 0.7rem; }
.pm-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #FDE68A, #F59E0B);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; box-shadow: 0 4px 10px rgba(245,158,11,0.25);
    overflow: hidden;
}
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-greet-text { display: flex; flex-direction: column; line-height: 1.1; }
.pm-greet-text small { color: var(--text-light); font-size: 0.78rem; }
.pm-greet-text strong { font-size: 1rem; color: var(--text-dark); }
.pm-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid #E5E7EB;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-dark); cursor: pointer; position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.pm-icon-btn:hover { background: #F3F4F6; }
.pm-icon-btn .pm-dot {
    position: absolute; top: 9px; right: 11px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #EF4444; box-shadow: 0 0 0 2px #fff;
}
.pm-topbar-actions { display: flex; gap: 0.4rem; }
.pm-back-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid #E5E7EB; color: var(--text-dark);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.pm-topbar-title { font-size: 1.6rem; font-weight: 700; margin: 0.5rem 0 0.75rem; }
.pm-section-title { font-size: 0.95rem; font-weight: 700; margin: 1.25rem 0 0.6rem; color: var(--text-dark); }
.pm-section-title-row { display: flex; justify-content: space-between; align-items: center; margin: 1.25rem 0 0.6rem; }
.pm-section-title-row h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.pm-section-title-row a { color: var(--primary-color); font-size: 0.78rem; text-decoration: none; font-weight: 600; }

/* Model switcher */
.pm-model-switch {
    display: flex; gap: 0.4rem; background: #fff;
    padding: 0.3rem; border-radius: 999px;
    border: 1px solid #E5E7EB;
    margin: 0.25rem 0 1rem; overflow-x: auto;
}
.pm-model-switch::-webkit-scrollbar { display: none; }
.pm-model-switch a {
    flex: 1; min-width: 95px;
    text-align: center; padding: 0.55rem 0.85rem;
    border-radius: 999px; text-decoration: none;
    color: var(--text-light); font-size: 0.78rem; font-weight: 600;
    white-space: nowrap;
}
.pm-model-switch a.active {
    background: var(--text-dark); color: #fff;
}

/* ----- Big Progress / Hero Card (Model 1) ----- */
.pm-hero-card {
    background: #BFE3F2;
    border-radius: 24px;
    padding: 1.25rem;
    color: #0F172A;
    box-shadow: 0 10px 24px rgba(59,130,246,0.18);
    position: relative;
    overflow: hidden;
}
.pm-hero-card .pm-hero-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.4rem;
}
.pm-hero-card .pm-hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.55); padding: 0.35rem 0.7rem;
    border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #1E3A8A;
}
.pm-hero-card .pm-hero-badge i { color: #1E3A8A; }
.pm-hero-card .pm-hero-mute {
    width: 32px; height: 32px; border-radius: 50%;
    background: #FDE68A; display: flex; align-items: center; justify-content: center;
    color: #92400E; font-size: 0.85rem;
}
.pm-hero-grid {
    display: grid; grid-template-columns: 1fr auto; gap: 0.5rem;
    align-items: center;
}
.pm-hero-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.pm-hero-meta .pm-hero-value {
    font-size: 3rem; font-weight: 800; line-height: 1; color: #0F172A;
}
.pm-hero-meta .pm-hero-date {
    font-size: 0.82rem; color: #1E3A8A; display: inline-flex; align-items: center; gap: 0.3rem;
    margin-top: 0.4rem; cursor: pointer;
}
.pm-ring {
    --ring-pct: 75;
    width: 110px; height: 110px; border-radius: 50%;
    background: conic-gradient(#1E3A8A calc(var(--ring-pct) * 1%), rgba(255,255,255,0.7) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.pm-ring::before {
    content: ""; position: absolute; inset: 8px;
    border-radius: 50%; background: #fff;
}
.pm-ring-inner { position: relative; z-index: 1; text-align: center; line-height: 1.05; }
.pm-ring-inner strong { display: block; font-size: 1.3rem; font-weight: 800; color: #0F172A; }
.pm-ring-inner span { font-size: 0.7rem; color: var(--text-light); }

/* Color variants */
.pm-hero-card.purple { background: #DDD6FE; box-shadow: 0 10px 24px rgba(139,92,246,0.18); }
.pm-hero-card.purple .pm-hero-badge { background: rgba(255,255,255,0.55); color: #5B21B6; }
.pm-hero-card.purple .pm-hero-meta .pm-hero-date { color: #5B21B6; }
.pm-hero-card.purple .pm-ring { background: conic-gradient(#5B21B6 calc(var(--ring-pct) * 1%), rgba(255,255,255,0.7) 0); }
.pm-hero-card.green { background: #BBF7D0; box-shadow: 0 10px 24px rgba(16,185,129,0.18); }
.pm-hero-card.green .pm-hero-badge { background: rgba(255,255,255,0.55); color: #065F46; }
.pm-hero-card.green .pm-hero-meta .pm-hero-date { color: #065F46; }
.pm-hero-card.green .pm-ring { background: conic-gradient(#065F46 calc(var(--ring-pct) * 1%), rgba(255,255,255,0.7) 0); }

/* ----- Two mini cards row (Model 1) ----- */
.pm-mini-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.9rem;
}
.pm-mini-card {
    background: #fff; border-radius: 20px; padding: 0.95rem;
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
    border: 1px solid #F1F5F9;
    position: relative; overflow: hidden;
}
.pm-mini-card .pm-mini-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.4rem; margin-bottom: 0.4rem;
}
.pm-mini-card .pm-mini-label { font-size: 0.78rem; color: var(--text-light); font-weight: 600; line-height: 1.2; }
.pm-mini-card .pm-mini-ico {
    width: 26px; height: 26px; border-radius: 50%;
    background: #FEF3C7; color: #D97706;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
}
.pm-mini-card .pm-mini-value {
    font-size: 1.5rem; font-weight: 800; color: var(--text-dark);
    display: flex; align-items: baseline; gap: 0.25rem;
}
.pm-mini-card .pm-mini-value small { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.pm-mini-card .pm-mini-delta {
    margin-top: 0.4rem; font-size: 0.72rem; color: #10B981;
    display: inline-flex; align-items: center; gap: 0.25rem;
}
.pm-mini-card .pm-mini-delta.down { color: #EF4444; }
.pm-mini-card .pm-mini-spark {
    position: absolute; right: 8px; bottom: 8px; width: 70px; height: 28px;
    opacity: 0.7;
}

/* ----- Breakfast-style stat card (Model 1) ----- */
.pm-stat-card {
    margin-top: 0.9rem;
    background: #DCFCE7;
    border-radius: 22px;
    padding: 1rem 1rem 0.6rem;
    color: #064E3B;
    position: relative;
}
.pm-stat-card.amber { background: #FEF3C7; color: #78350F; }
.pm-stat-card.blue { background: #DBEAFE; color: #1E3A8A; }
.pm-stat-card .pm-stat-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.5rem;
}
.pm-stat-card .pm-stat-title {
    display: flex; align-items: center; gap: 0.55rem;
}
.pm-stat-card .pm-stat-ico {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.7); color: currentColor;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.pm-stat-card .pm-stat-title strong { font-size: 1rem; font-weight: 800; line-height: 1; }
.pm-stat-card .pm-stat-title small { font-size: 0.74rem; opacity: 0.85; display: block; margin-top: 0.2rem; }
.pm-stat-card .pm-stat-add {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.75); border: none; cursor: pointer; color: inherit;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.pm-stat-mini-grid {
    margin-top: 0.6rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem;
}
.pm-stat-mini { text-align: left; }
.pm-stat-mini small { font-size: 0.66rem; opacity: 0.75; display: block; }
.pm-stat-mini strong { font-size: 0.95rem; font-weight: 800; }
.pm-stat-pill-row {
    margin-top: 0.7rem;
    display: flex; justify-content: space-between; align-items: center;
}
.pm-stat-pill {
    background: rgba(255,255,255,0.75);
    border: none; padding: 0.35rem 0.75rem; border-radius: 999px;
    font-size: 0.75rem; color: inherit; display: inline-flex; align-items: center; gap: 0.35rem;
    cursor: pointer;
}
.pm-stat-edit {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.75); border: none; cursor: pointer; color: inherit;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ----- Model 2: Weekday calendar pills ----- */
.pm-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem;
    margin-top: 0.5rem;
}
.pm-weekday {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 999px;
    padding: 0.55rem 0.2rem; text-align: center;
    color: var(--text-dark); cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
}
.pm-weekday small { font-size: 0.7rem; color: var(--text-light); }
.pm-weekday strong { font-size: 0.9rem; font-weight: 700; }
.pm-weekday.has-dot { position: relative; }
.pm-weekday.has-dot::after {
    content: ""; position: absolute; top: 6px; right: 50%; transform: translateX(50%);
    width: 5px; height: 5px; border-radius: 50%; background: #1F2937;
}
.pm-weekday.active {
    background: #BFE3F2; border-color: #BFE3F2;
}
.pm-weekday.active small { color: #1E3A8A; }
.pm-weekday.active strong { color: #1E3A8A; }

.pm-big-metric { margin-top: 1.25rem; }
.pm-big-metric small { font-size: 0.85rem; color: var(--text-light); }
.pm-big-metric .pm-big-row {
    display: flex; align-items: baseline; gap: 0.5rem;
    margin-top: 0.25rem;
}
.pm-big-metric .pm-big-row strong { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--text-dark); }
.pm-big-metric .pm-big-row span { font-size: 1rem; color: var(--text-light); font-weight: 600; }

.pm-multibar {
    display: flex; height: 10px; border-radius: 999px; overflow: hidden;
    margin-top: 1rem;
}
.pm-multibar > span {
    height: 100%; display: block;
}
.pm-multibar > span.blue   { background: #93C5FD; }
.pm-multibar > span.green  { background: #BBF7D0; }
.pm-multibar > span.yellow { background: #FDE68A; }
.pm-multibar > span.red    { background: #FCA5A5; }

.pm-multibar-legend {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem;
}
.pm-multibar-legend span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; color: var(--text-light);
}
.pm-multibar-legend i {
    width: 9px; height: 9px; border-radius: 50%; background: #93C5FD;
    display: inline-block;
}
.pm-multibar-legend i.green  { background: #BBF7D0; }
.pm-multibar-legend i.yellow { background: #FDE68A; }
.pm-multibar-legend i.red    { background: #FCA5A5; }

.pm-mini-card.cyan { background: #BFE3F2; border: none; }
.pm-mini-card.lemon { background: #FEF9C3; border: none; }
.pm-mini-card.menu .pm-menu-dots { background: transparent; border: none; cursor: pointer; color: var(--text-light); }

.pm-cta {
    display: flex; align-items: center; justify-content: space-between;
    background: #FEF08A; border-radius: 999px;
    padding: 0.7rem 1.1rem; margin-top: 1.5rem;
    text-decoration: none; color: #78350F; font-weight: 700;
    box-shadow: 0 6px 14px rgba(234,179,8,0.18);
}
.pm-cta .pm-cta-emoji {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.55); display: inline-flex; align-items: center; justify-content: center;
    color: #78350F;
}

/* ----- Model 3: Indikator vertical pills ----- */
.pm-greeting-card {
    background: #fff; border-radius: 20px; padding: 1rem;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
    margin-bottom: 0.9rem;
}
.pm-greeting-card h2 {
    font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 0;
}
.pm-greeting-card h2 small { display: block; font-size: 0.8rem; color: var(--text-light); font-weight: 600; margin-bottom: 0.25rem; }

.pm-twin-card-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
}
.pm-twin-card {
    background: #fff; border-radius: 20px; padding: 1rem;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
    display: flex; flex-direction: column; gap: 0.5rem; min-height: 150px;
}
.pm-twin-card.peach { background: #FCE7E0; border: none; }
.pm-twin-card.cyan  { background: #BFE3F2; border: none; }
.pm-twin-card h4 { font-size: 0.85rem; color: var(--text-dark); margin: 0; font-weight: 700; }
.pm-twin-card .pm-twin-ring {
    --ring-pct: 75;
    width: 84px; height: 84px; border-radius: 50%;
    background: conic-gradient(#F97316 calc(var(--ring-pct) * 1%), rgba(255,255,255,0.7) 0);
    margin: 0.25rem auto 0; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.pm-twin-card .pm-twin-ring::before {
    content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%;
}
.pm-twin-card .pm-twin-ring strong, .pm-twin-card .pm-twin-ring span {
    position: relative; z-index: 1; text-align: center;
}
.pm-twin-card .pm-twin-ring strong { font-size: 1.1rem; font-weight: 800; display: block; line-height: 1; }
.pm-twin-card .pm-twin-ring span { font-size: 0.7rem; color: var(--text-light); }

.pm-bar-mini-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem;
    align-items: end; padding: 0.4rem 0 0;
    height: 84px;
}
.pm-bar-mini-grid .pm-bar-col {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem; height: 100%;
    justify-content: flex-end;
}
.pm-bar-mini-grid .pm-bar {
    width: 5px; border-radius: 4px; background: #1E3A8A; min-height: 6px;
}
.pm-bar-mini-grid .pm-bar.alt { background: #fff; }
.pm-bar-mini-grid .pm-bar-lbl { font-size: 0.6rem; color: var(--text-light); }
.pm-twin-card.cyan .pm-bar { background: #fff; }
.pm-twin-card.cyan .pm-bar-lbl { color: rgba(15,23,42,0.6); }

/* Indikator vertical pill row */
.pm-pills-row {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.55rem;
    margin-top: 0.9rem;
}
.pm-vpill {
    background: #DCFCE7; border-radius: 999px;
    padding: 0.7rem 0.3rem; text-align: center;
    color: #064E3B; display: flex; flex-direction: column; align-items: center;
    gap: 0.15rem; min-height: 76px; justify-content: center;
    box-shadow: 0 4px 10px rgba(16,185,129,0.12);
}
.pm-vpill strong { font-size: 0.92rem; font-weight: 800; line-height: 1; }
.pm-vpill small { font-size: 0.62rem; color: rgba(6,78,59,0.7); line-height: 1; }
.pm-vpill.blue { background: #DBEAFE; color: #1E3A8A; }
.pm-vpill.blue small { color: rgba(30,58,138,0.7); }
.pm-vpill.amber { background: #FEF3C7; color: #78350F; }
.pm-vpill.amber small { color: rgba(120,53,15,0.7); }
.pm-vpill.peach { background: #FCE7E0; color: #9A3412; }
.pm-vpill.peach small { color: rgba(154,52,18,0.7); }
.pm-vpill.purple { background: #DDD6FE; color: #5B21B6; }
.pm-vpill.purple small { color: rgba(91,33,182,0.7); }

/* Share team card */
.pm-share-card {
    margin-top: 1rem; background: #fff; border: 1px solid #F1F5F9;
    border-radius: 20px; padding: 0.85rem 1rem;
    display: flex; align-items: center; gap: 0.7rem;
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}
.pm-share-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; flex: 1; line-height: 1.3; }
.pm-share-card .pm-share-plus {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-color); color: #fff;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.pm-share-avatars { display: flex; align-items: center; }
.pm-share-avatars .pm-share-ava {
    width: 36px; height: 36px; border-radius: 50%;
    background: #FDE68A; color: #92400E;
    border: 2px solid #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    margin-left: -10px;
}
.pm-share-avatars .pm-share-ava:first-child { margin-left: 0; }
.pm-share-avatars .pm-share-ava.b { background: #C7D2FE; color: #4338CA; }
.pm-share-avatars .pm-share-ava.c { background: #BBF7D0; color: #065F46; }

.pm-share-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.pm-share-text strong { font-size: 0.85rem; color: var(--text-dark); }
.pm-share-text span { font-size: 0.72rem; color: var(--text-light); }

/* Reports list (subpages) */
.pm-report-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.pm-report-item {
    background: #fff; border: 1px solid #F1F5F9; border-radius: 16px;
    padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}
.pm-report-item:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,23,42,0.08); }
.pm-report-item .pm-report-ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; flex-shrink: 0;
}
.pm-report-item .pm-report-ico.blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.pm-report-item .pm-report-ico.green  { background: linear-gradient(135deg, #34D399, #059669); }
.pm-report-item .pm-report-ico.amber  { background: linear-gradient(135deg, #FBBF24, #D97706); }
.pm-report-item .pm-report-ico.purple { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.pm-report-item .pm-report-ico.pink   { background: linear-gradient(135deg, #F472B6, #DB2777); }
.pm-report-item .pm-report-ico.red    { background: linear-gradient(135deg, #FB7185, #E11D48); }
.pm-report-item .pm-report-body { flex: 1; line-height: 1.25; }
.pm-report-item .pm-report-body strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.pm-report-item .pm-report-body span { font-size: 0.76rem; color: var(--text-light); }
.pm-report-item .pm-report-chev { color: var(--text-light); }

/* Module Grid (Modul Aktif) */
.pm-module-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
    margin-top: 0.5rem;
}
.pm-module-item {
    background: #fff; border: 1px solid #F1F5F9; border-radius: 16px;
    padding: 0.85rem 0.5rem; text-align: center;
    box-shadow: 0 2px 6px rgba(15,23,42,0.04);
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    text-decoration: none; color: inherit;
}
.pm-module-item .pm-module-ico {
    width: 40px; height: 40px; border-radius: 12px;
    background: #EEF2FF; color: var(--primary-color);
    display: inline-flex; align-items: center; justify-content: center;
}
.pm-module-item small { font-size: 0.72rem; color: var(--text-dark); font-weight: 600; line-height: 1.15; }
.pm-module-item .pm-module-badge {
    font-size: 0.62rem; color: #065F46; background: #D1FAE5;
    padding: 0.1rem 0.45rem; border-radius: 999px;
}

/* Detail page chart */
.pm-chart-card {
    background: #fff; border: 1px solid #F1F5F9; border-radius: 18px;
    padding: 1rem; box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    margin-top: 0.5rem;
}
.pm-chart-card h4 {
    font-size: 0.9rem; font-weight: 700; margin: 0 0 0.7rem;
}
.pm-bar-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; align-items: end; height: 130px; }
.pm-bar-chart .pm-bc-col {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem; height: 100%; justify-content: flex-end;
}
.pm-bar-chart .pm-bc-bar { width: 100%; max-width: 26px; border-radius: 6px 6px 0 0; background: var(--primary-color); min-height: 8px; }
.pm-bar-chart .pm-bc-bar.amber { background: #F59E0B; }
.pm-bar-chart .pm-bc-bar.green { background: #10B981; }
.pm-bar-chart .pm-bc-bar.red { background: #EF4444; }
.pm-bar-chart .pm-bc-lbl { font-size: 0.68rem; color: var(--text-light); }

/* Bottom nav active color override for pimpinan */
body.pimpinan-dashboard .bottom-nav-item.active { color: var(--primary-color); }
body.pimpinan-dashboard .bottom-nav-item.active i { color: var(--primary-color); }

/* Side drawer reuse from employee (.ed-drawer*) — already global */
body.pimpinan-dashboard .ed-drawer-item.active { color: var(--primary-color); background: #EEF2FF; }

/* Toast (reuse .ed-toast) */
body.pimpinan-dashboard .ed-toast { /* uses global styles */ }

/* Install card override for pimpinan body padding */
body.pimpinan-dashboard .install-app-card { z-index: 90; }

/* =====================================================================
   META MODERN THEME — Demo Dashboard Admin (module/<unit>/<module>/...)
   Tema gabungan dari 3 referensi:
     #1 PinHome  -> sidebar teal + grafik bar chart
     #2 EDSmart  -> kalender presensi + report card
     #3 Toggle Headers -> summary card minimal, tabel bersih, form
   Selector menggunakan ".module-dashboard-container ..." agar specificity
   lebih tinggi dari inline <style> di tiap module/<*>/index.html.
   ===================================================================== */

:root {
    --meta-teal: #3FB6AC;
    --meta-teal-dark: #2E9D93;
    --meta-teal-darker: #1F7A73;
    --meta-teal-soft: #DFF4F1;
    --meta-yellow: #F9C74F;
    --meta-yellow-dark: #D97706;
    --meta-purple: #7C3AED;
    --meta-purple-soft: #EDE9FE;
    --meta-green: #10B981;
    --meta-red: #EF4444;
    --meta-ink: #1F2937;
    --meta-mute: #6B7280;
    --meta-line: #EEF1F6;
    --meta-bg: #F4F7FB;
}

/* ---------------------------------------------------------------------
   #1 — Sidebar Teal (PinHome) untuk semua modul demo
   --------------------------------------------------------------------- */
body:has(.module-dashboard-container) {
    background: var(--meta-bg);
}
body:has(.module-dashboard-container) .navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--meta-line);
    box-shadow: none;
}

.module-dashboard-container {
    background: var(--meta-bg);
}

.module-dashboard-container .module-sidebar {
    background: linear-gradient(180deg, var(--meta-teal) 0%, var(--meta-teal-dark) 100%);
    border-right: none;
    color: #FFFFFF;
    padding: 1.5rem 1rem;
    box-shadow: 4px 0 18px rgba(63, 182, 172, 0.18);
    width: 260px;
}
.module-dashboard-container .module-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}
.module-dashboard-container .module-sidebar-header h2 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.module-dashboard-container .module-sidebar-header h2 i {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.22);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.module-dashboard-container .module-sidebar-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.825rem;
    margin: 0.25rem 0 0;
}
.module-dashboard-container .module-menu-item { margin-bottom: 0.3rem; }
.module-dashboard-container .module-menu-item a {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.module-dashboard-container .module-menu-item a i {
    color: rgba(255, 255, 255, 0.85);
    width: 22px;
}
.module-dashboard-container .module-menu-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: translateX(2px);
}
.module-dashboard-container .module-menu-item a:hover i {
    color: #FFFFFF;
}
.module-dashboard-container .module-menu-item a.active {
    background: #FFFFFF;
    color: var(--meta-teal-darker);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.module-dashboard-container .module-menu-item a.active i {
    color: var(--meta-teal-darker);
}

/* Decorative footer card di sidebar (mirip "Upgrade now" di PinHome) */
.meta-sidebar-promo {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem;
    color: #FFFFFF;
    text-align: center;
    backdrop-filter: blur(4px);
}
.meta-sidebar-promo i {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}
.meta-sidebar-promo strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}
.meta-sidebar-promo span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}
.meta-sidebar-promo button {
    border: none;
    background: var(--meta-yellow);
    color: var(--meta-ink);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(249, 199, 79, 0.35);
}

/* Main content header & body, lebih flat */
.module-dashboard-container .module-content {
    background: var(--meta-bg);
    padding: 1.75rem 1.75rem 2rem;
}
.module-dashboard-container .module-content-header {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid var(--meta-line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.module-dashboard-container .module-content-header h1 {
    color: var(--meta-ink);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
}
.module-dashboard-container .module-content-header h1 i {
    color: var(--meta-teal);
    background: rgba(63, 182, 172, 0.12);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.module-dashboard-container .module-content-header p {
    color: var(--meta-mute);
    font-size: 0.9rem;
}
.module-dashboard-container .module-content-body {
    background: transparent;
    box-shadow: none;
    padding: 1.5rem 0 0;
    min-height: auto;
}

/* ---------------------------------------------------------------------
   #1 — Bar Chart "My Bookings" style untuk dashboard modul
   --------------------------------------------------------------------- */
.meta-chart-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid var(--meta-line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}
.meta-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.meta-chart-head h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--meta-ink);
}
.meta-chart-period {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background: var(--meta-bg);
    border-radius: 12px;
    color: var(--meta-mute);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--meta-line);
}
.meta-chart-period i { color: var(--meta-teal); }
.meta-chart-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--meta-mute);
}
.meta-chart-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-chart-legend i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--meta-yellow);
    display: inline-block;
}
.meta-chart-legend i.muted { background: #BFE0F5; }

.meta-chart-body {
    position: relative;
    margin-top: 0.85rem;
}
.meta-chart-tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    text-align: center;
    z-index: 2;
}
.meta-chart-tooltip strong {
    display: block;
    color: var(--meta-teal-dark);
    font-size: 1.05rem;
    font-weight: 800;
}
.meta-chart-tooltip span {
    display: block;
    font-size: 0.7rem;
    color: var(--meta-mute);
}
.meta-chart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: #FFFFFF;
    box-shadow: 3px 3px 6px rgba(15, 23, 42, 0.05);
}
.meta-chart-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: end;
    height: 200px;
    padding-top: 60px;
}
.meta-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    height: 100%;
    justify-content: flex-end;
}
.meta-chart-bar {
    width: 100%;
    max-width: 28px;
    background: #DBEEFC;
    border-radius: 8px 8px 0 0;
    transition: filter 0.2s;
}
.meta-chart-bar.is-active {
    background: var(--meta-yellow);
    box-shadow: 0 6px 12px rgba(249, 199, 79, 0.35);
}
.meta-chart-col:hover .meta-chart-bar { filter: brightness(0.96); }
.meta-chart-lbl {
    font-size: 0.72rem;
    color: var(--meta-mute);
    font-weight: 600;
}
.meta-chart-col.is-active .meta-chart-lbl {
    color: var(--meta-ink);
    font-weight: 800;
}

/* ---------------------------------------------------------------------
   #2 — Calendar Presensi (EDSmart) + Report Card
   --------------------------------------------------------------------- */
.meta-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 980px) {
    .meta-grid-2 { grid-template-columns: 1fr; }
}

.meta-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid var(--meta-line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.meta-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.meta-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--meta-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.meta-card-head h3 i { color: var(--meta-teal); }
.meta-card-head small { color: var(--meta-mute); font-size: 0.78rem; }

/* Calendar */
.meta-cal-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.meta-cal-nav-btn {
    width: 34px; height: 34px;
    border: none;
    background: var(--meta-purple);
    color: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
    transition: filter 0.2s;
}
.meta-cal-nav-btn:hover { filter: brightness(1.05); }
.meta-cal-nav-btn.prev {
    background: #FCA5A5;
    box-shadow: 0 4px 10px rgba(252, 165, 165, 0.4);
}
.meta-cal-current {
    font-weight: 700;
    color: var(--meta-ink);
    font-size: 1rem;
    min-width: 9rem;
    text-align: center;
}

.meta-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    text-align: center;
}
.meta-cal-weekday {
    background: var(--meta-bg);
    border-radius: 999px;
    padding: 0.55rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--meta-mute);
}
.meta-cal-day {
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.meta-cal-day.dim { color: #D1D5DB; }
.meta-cal-day:hover:not(.dim):not(.present):not(.partial):not(.absent) {
    background: var(--meta-bg);
}
.meta-cal-day.present {
    background: var(--meta-green);
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.28);
}
.meta-cal-day.partial {
    background: var(--meta-yellow);
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(249, 199, 79, 0.32);
}
.meta-cal-day.absent {
    background: var(--meta-red);
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.28);
}
.meta-cal-day.today {
    outline: 2px solid var(--meta-purple);
    outline-offset: 2px;
}
.meta-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    font-size: 0.8rem;
    color: var(--meta-mute);
}
.meta-cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-cal-legend i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--meta-green);
    display: inline-block;
}
.meta-cal-legend i.partial { background: var(--meta-yellow); }
.meta-cal-legend i.absent  { background: var(--meta-red); }

/* Report card with 3D-ish bars (School Performance) */
.meta-report-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.6rem;
    height: 160px;
    padding-top: 0.5rem;
}
.meta-bar3d {
    width: 36px;
    border-radius: 6px 6px 0 0;
    position: relative;
    background: linear-gradient(180deg, var(--meta-purple) 0%, #5B21B6 100%);
    box-shadow: 6px 0 0 -2px rgba(0, 0, 0, 0.06);
    min-height: 12px;
}
.meta-bar3d::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #A78BFA;
    border-radius: 4px 6px 0 0;
    transform: skewX(45deg);
    transform-origin: bottom left;
}
.meta-bar3d.yellow { background: linear-gradient(180deg, var(--meta-yellow) 0%, #B45309 100%); }
.meta-bar3d.yellow::before { background: #FCD34D; }
.meta-bar3d.green  { background: linear-gradient(180deg, var(--meta-green) 0%, #047857 100%); }
.meta-bar3d.green::before { background: #6EE7B7; }
.meta-report-legend {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--meta-mute);
}
.meta-report-legend > div {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.meta-report-legend > div::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--meta-purple);
    flex-shrink: 0;
}
.meta-report-legend > div.green::before  { background: var(--meta-green); }
.meta-report-legend > div.yellow::before { background: var(--meta-yellow); }

/* Top scorer card (image 2 right-bottom) */
.meta-scorer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.meta-scorer-card {
    border-radius: 18px;
    padding: 1.1rem 0.85rem 1rem;
    color: #FFFFFF;
    text-align: center;
    background: linear-gradient(180deg, var(--meta-green) 0%, #047857 100%);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.22);
    position: relative;
    overflow: hidden;
}
.meta-scorer-card.purple {
    background: linear-gradient(180deg, var(--meta-purple) 0%, #5B21B6 100%);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}
.meta-scorer-card.yellow {
    background: linear-gradient(180deg, var(--meta-yellow) 0%, var(--meta-yellow-dark) 100%);
    box-shadow: 0 8px 18px rgba(249, 199, 79, 0.32);
}
.meta-scorer-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid #FFFFFF;
    margin: 0 auto 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    overflow: hidden;
}
.meta-scorer-name {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.meta-scorer-school {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.55rem;
}
.meta-scorer-percent {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    line-height: 1;
}
.meta-scorer-rank {
    background: rgba(255, 255, 255, 0.24);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
}

/* Notification list (Activities Notification - image 2 bottom-left) */
.meta-notif-card { padding: 1.5rem; }
.meta-notif-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #F1F5F9;
}
.meta-notif-item:last-child { border-bottom: none; }
.meta-notif-avatar {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--meta-teal-soft);
    color: var(--meta-teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}
.meta-notif-body { flex: 1; min-width: 0; }
.meta-notif-body strong {
    display: block;
    font-size: 0.92rem;
    color: var(--meta-ink);
    margin-bottom: 0.15rem;
}
.meta-notif-body small {
    color: var(--meta-mute);
    font-size: 0.74rem;
    display: block;
    margin-bottom: 0.3rem;
}
.meta-notif-body p {
    margin: 0;
    color: #4B5563;
    font-size: 0.85rem;
    line-height: 1.45;
}
.meta-view-all {
    border: 1px solid var(--meta-teal);
    background: transparent;
    color: var(--meta-teal-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.meta-view-all:hover {
    background: var(--meta-teal);
    color: #FFFFFF;
}

/* ---------------------------------------------------------------------
   #3 — Modern Summary Card / Tabel / Form (Toggle Headers)
   Override summary-card, data-table, filter-section, .form-group dst.
   --------------------------------------------------------------------- */

/* Summary cards — compact, layout horizontal (ikon kiri | value+label kanan)
   Kontras tinggi: kartu putih, value var(--meta-ink), label var(--meta-mute),
   accent strip kiri untuk identitas warna. */
.module-dashboard-container .summary-cards,
.module-content-body .summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.module-dashboard-container .summary-card,
.module-content-body .summary-card {
    background: #FFFFFF;
    color: var(--meta-ink);
    border: 1px solid var(--meta-line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    text-align: left;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.7rem;
    row-gap: 0.1rem;
    align-items: center;
    min-height: 60px;
}
.module-dashboard-container .summary-card::before,
.module-content-body .summary-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--meta-teal);
}
.module-dashboard-container .summary-card.secondary::before,
.module-content-body .summary-card.secondary::before { background: var(--meta-green); }
.module-dashboard-container .summary-card.warning::before,
.module-content-body .summary-card.warning::before   { background: var(--meta-yellow); }
.module-dashboard-container .summary-card.purple::before,
.module-content-body .summary-card.purple::before    { background: var(--meta-purple); }

.module-dashboard-container .summary-card-icon,
.module-content-body .summary-card-icon {
    color: var(--meta-teal-dark);
    opacity: 1;
    font-size: 0.95rem;
    margin: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(63, 182, 172, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
}
.module-dashboard-container .summary-card.secondary .summary-card-icon,
.module-content-body .summary-card.secondary .summary-card-icon {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}
.module-dashboard-container .summary-card.warning .summary-card-icon,
.module-content-body .summary-card.warning .summary-card-icon {
    color: #92400E;
    background: rgba(249, 199, 79, 0.22);
}
.module-dashboard-container .summary-card.purple .summary-card-icon,
.module-content-body .summary-card.purple .summary-card-icon {
    color: #5B21B6;
    background: rgba(124, 58, 237, 0.12);
}

/* Wrapper otomatis di dalam .summary-card untuk value+label.
   Karena markup eksisting tidak punya wrapper, kita pakai display flex
   pada .summary-card dan flex-direction-column pada anak-anak teks
   menggunakan trik: value & label jadi block dalam flex-column melalui sibling. */
.module-dashboard-container .summary-card-value,
.module-content-body .summary-card-value {
    color: var(--meta-ink);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.05;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    word-break: break-word;
}
.module-dashboard-container .summary-card-label,
.module-content-body .summary-card-label {
    color: var(--meta-mute);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 1;
    line-height: 1.2;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

/* ---------------------------------------------------------------------
   White-background summary-card variants + colorful fonts.
   Higher specificity (.module-content-body .summary-card.X) wins over the
   per-page inline gradient backgrounds so semua kartu konsisten putih.
   --------------------------------------------------------------------- */
.module-dashboard-container .summary-card.secondary,
.module-content-body .summary-card.secondary,
.module-dashboard-container .summary-card.warning,
.module-content-body .summary-card.warning,
.module-dashboard-container .summary-card.danger,
.module-content-body .summary-card.danger,
.module-dashboard-container .summary-card.info,
.module-content-body .summary-card.info,
.module-dashboard-container .summary-card.purple,
.module-content-body .summary-card.purple {
    background: #FFFFFF;
    color: var(--meta-ink);
}

/* Accent strip kiri untuk varian .danger & .info (belum didefinisikan di atas) */
.module-dashboard-container .summary-card.danger::before,
.module-content-body .summary-card.danger::before { background: var(--meta-red); }
.module-dashboard-container .summary-card.info::before,
.module-content-body .summary-card.info::before    { background: #0EA5E9; }

/* Ikon berwarna lembut untuk varian .danger & .info */
.module-dashboard-container .summary-card.danger .summary-card-icon,
.module-content-body .summary-card.danger .summary-card-icon {
    color: #B91C1C;
    background: rgba(239, 68, 68, 0.12);
}
.module-dashboard-container .summary-card.info .summary-card-icon,
.module-content-body .summary-card.info .summary-card-icon {
    color: #0369A1;
    background: rgba(14, 165, 233, 0.12);
}

/* Variasi font value (angka) — tiap varian punya warna sendiri */
.module-dashboard-container .summary-card .summary-card-value,
.module-content-body .summary-card .summary-card-value { color: var(--meta-teal-darker); }
.module-dashboard-container .summary-card.secondary .summary-card-value,
.module-content-body .summary-card.secondary .summary-card-value { color: #047857; }
.module-dashboard-container .summary-card.warning .summary-card-value,
.module-content-body .summary-card.warning .summary-card-value   { color: #B45309; }
.module-dashboard-container .summary-card.danger .summary-card-value,
.module-content-body .summary-card.danger .summary-card-value    { color: #B91C1C; }
.module-dashboard-container .summary-card.info .summary-card-value,
.module-content-body .summary-card.info .summary-card-value      { color: #0369A1; }
.module-dashboard-container .summary-card.purple .summary-card-value,
.module-content-body .summary-card.purple .summary-card-value    { color: #5B21B6; }

/* Label tetap muted tapi mewarisi tone variannya sedikit (font-weight bold) */
.module-dashboard-container .summary-card .summary-card-label,
.module-content-body .summary-card .summary-card-label { color: var(--meta-mute); }

/* Section card pembungkus group summary (e.g. di student-management dashboard) */
.module-content-body .dashboard-section-card {
    background: #FFFFFF;
    border: 1px solid var(--meta-line);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
}
.module-content-body .dashboard-section-card h3 {
    color: var(--meta-ink);
    font-weight: 800;
}

/* Action section header (e.g. data-siswa) */
.module-dashboard-container .action-section,
.module-content-body .action-section {
    background: #FFFFFF;
    border: 1px solid var(--meta-line);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

/* Filter section putih bersih */
.module-dashboard-container .filter-section,
.module-content-body .filter-section {
    background: #FFFFFF;
    border: 1px solid var(--meta-line);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

/* Form & filter inputs — modern */
.module-dashboard-container .filter-group input,
.module-dashboard-container .filter-group select,
.module-content-body .filter-group input,
.module-content-body .filter-group select,
.module-content-body .form-group input[type="text"],
.module-content-body .form-group input[type="email"],
.module-content-body .form-group input[type="number"],
.module-content-body .form-group input[type="date"],
.module-content-body .form-group input[type="time"],
.module-content-body .form-group input[type="tel"],
.module-content-body .form-group select,
.module-content-body .form-group textarea {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    font-size: 0.9rem;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.module-dashboard-container .filter-group select,
.module-content-body .filter-group select,
.module-content-body .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
}
.module-dashboard-container .filter-group input:focus,
.module-dashboard-container .filter-group select:focus,
.module-content-body .filter-group input:focus,
.module-content-body .filter-group select:focus,
.module-content-body .form-group input:focus,
.module-content-body .form-group select:focus,
.module-content-body .form-group textarea:focus {
    border-color: var(--meta-teal);
    box-shadow: 0 0 0 3px rgba(63, 182, 172, 0.15);
    outline: none;
}
.module-dashboard-container .filter-group label,
.module-content-body .filter-group label,
.module-content-body .form-group label {
    color: var(--meta-ink);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Buttons di area modul → teal */
.module-dashboard-container .btn-primary,
.module-content-body .btn-primary {
    background: var(--meta-teal);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(63, 182, 172, 0.25);
}
.module-dashboard-container .btn-primary:hover,
.module-content-body .btn-primary:hover {
    background: var(--meta-teal-dark);
    box-shadow: 0 6px 16px rgba(63, 182, 172, 0.32);
}
.module-dashboard-container .btn-secondary,
.module-content-body .btn-secondary {
    background: #FFFFFF;
    color: var(--meta-teal-dark);
    border: 1px solid var(--meta-teal);
    border-radius: 10px;
}
.module-dashboard-container .btn-secondary:hover,
.module-content-body .btn-secondary:hover {
    background: var(--meta-teal-soft);
    color: var(--meta-teal-darker);
}

/* Tabel data — clean white seperti gambar 3 */
.module-dashboard-container .data-table-container,
.module-content-body .data-table-container {
    background: #FFFFFF;
    border: 1px solid var(--meta-line);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.module-dashboard-container .data-table,
.module-content-body .data-table {
    background: #FFFFFF;
}
.module-dashboard-container .data-table thead th,
.module-content-body .data-table thead th {
    background: #FFFFFF;
    border-bottom: 1px solid var(--meta-line);
    color: var(--meta-mute);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: capitalize;
    padding: 1rem 1.25rem;
    letter-spacing: 0.01em;
}
.module-dashboard-container .data-table thead th:hover,
.module-content-body .data-table thead th:hover {
    background: var(--meta-bg);
    color: var(--meta-ink);
}
.module-dashboard-container .data-table thead th.sort-asc::after,
.module-dashboard-container .data-table thead th.sort-desc::after,
.module-content-body .data-table thead th.sort-asc::after,
.module-content-body .data-table thead th.sort-desc::after {
    color: var(--meta-teal);
}
.module-dashboard-container .data-table tbody td,
.module-content-body .data-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    color: var(--meta-ink);
    font-size: 0.9rem;
    vertical-align: middle;
}
.module-dashboard-container .data-table tbody tr:last-child td,
.module-content-body .data-table tbody tr:last-child td {
    border-bottom: none;
}
.module-dashboard-container .data-table tbody tr:hover,
.module-content-body .data-table tbody tr:hover {
    background: #F8FBFC;
}

/* Toggle switch (image 3, kolom paling kanan tabel) */
.meta-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}
.meta-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.meta-toggle .meta-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #E5E7EB;
    border-radius: 999px;
    transition: background 0.25s;
}
.meta-toggle .meta-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.meta-toggle input:checked + .meta-slider { background: var(--meta-teal); }
.meta-toggle input:checked + .meta-slider::before { transform: translateX(20px); }

/* Pagination — putih dengan tombol teal */
.module-dashboard-container .pagination,
.module-content-body .pagination {
    background: #FFFFFF;
    border: 1px solid var(--meta-line);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}
.module-dashboard-container .pagination-btn.active,
.module-content-body .pagination-btn.active,
.module-dashboard-container .pagination-btn:hover:not(:disabled),
.module-content-body .pagination-btn:hover:not(:disabled) {
    background: var(--meta-teal);
    color: #FFFFFF;
    border-color: var(--meta-teal);
}

/* Badge tabel (status Aktif/Pending/dst) di area modul */
.module-content-body .badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
.module-content-body .badge-warning {
    background: rgba(249, 199, 79, 0.18);
    color: #92400E;
}
.module-content-body .badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

/* Action buttons di tabel */
.module-content-body .action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.module-content-body .action-btn.view {
    background: rgba(63, 182, 172, 0.12);
    color: var(--meta-teal-dark);
}

/* Responsive: sidebar runtuh ke top di mobile */
@media (max-width: 768px) {
    .module-dashboard-container .module-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        box-shadow: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }
    .module-dashboard-container .module-content { padding: 1rem; }
    .meta-scorer-grid { grid-template-columns: 1fr; }
    .meta-chart-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        height: 160px;
    }
    .meta-chart-col:nth-child(n+8) { display: none; }
}


/* =====================================================================
   FINANSIAL Dashboard (BPRS / BMT / BTM / Koperasi)
   Reuses pimpinan-dashboard layout. Body class .finansial-dashboard
   ===================================================================== */
body.finansial-dashboard { background: #F4F7FB; }
body.finansial-dashboard .navbar { display: none; }
body.finansial-dashboard .dashboard-section { padding: 0 0 5.5rem; }
body.finansial-dashboard .dashboard-section.has-bottom-nav { padding-bottom: 5.5rem; }
body.finansial-dashboard.has-install-card .dashboard-section.has-bottom-nav { padding-bottom: 11rem; }
body.finansial-dashboard .container { padding: 0 1rem; max-width: 480px; }

.fin-form-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    margin-top: 0.75rem;
}
.fin-form-card .form-group { margin-bottom: 0.85rem; }
.fin-form-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.35rem;
}
.fin-form-card input[type="text"],
.fin-form-card input[type="number"],
.fin-form-card input[type="search"],
.fin-form-card select,
.fin-form-card textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #F9FAFB;
    color: #111827;
}
.fin-form-card textarea { min-height: 70px; resize: vertical; }
.fin-form-card input:focus,
.fin-form-card select:focus,
.fin-form-card textarea:focus {
    outline: none;
    border-color: var(--primary-color, #4F46E5);
    background: #FFFFFF;
}

.fin-channel-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.fin-channel-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.4rem;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: #374151;
    transition: all 0.2s ease;
}
.fin-channel-pill input { display: none; }
.fin-channel-pill i { color: #6B7280; }
.fin-channel-pill.active {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary-color, #4F46E5);
    color: var(--primary-color, #4F46E5);
}
.fin-channel-pill.active i { color: var(--primary-color, #4F46E5); }

.fin-filter-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}
.fin-filter-row select,
.fin-filter-row input { flex: 1; min-width: 0; }

.fin-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin: 0.65rem 0 0.4rem;
}
.fin-summary-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.fin-summary-card small { display: block; color: #6B7280; font-size: 0.74rem; }
.fin-summary-card strong { display: block; font-size: 1.05rem; margin-top: 0.2rem; color: #111827; }
.fin-summary-card.va { border-left: 4px solid #3B82F6; }
.fin-summary-card.cash { border-left: 4px solid #10B981; }
.fin-summary-card.qris { border-left: 4px solid #8B5CF6; }
.fin-summary-card.today { border-left: 4px solid #F59E0B; }

/* =====================================================================
   FINANSIAL APP — Mobile App Style (BPRS / Koperasi-BMT-BTM)
   Inspirasi: mobile banking dashboard (hero gradient + quick actions
   + sheet putih dengan list transaksi modern; rekening unit = card swiper)
   ===================================================================== */
body.finansial-app {
    background: #F5F7FB;
    margin: 0;
    min-height: 100vh;
}
body.finansial-app .navbar { display: none; }
body.finansial-app .dashboard-section { padding: 0; }
body.finansial-app .container { padding: 0; max-width: 480px; margin: 0 auto; background: #F5F7FB; min-height: 100vh; position: relative; }
body.finansial-app.has-install-card .container { padding-bottom: 11rem; }
body.finansial-app .install-app-card { bottom: 5.5rem; z-index: 90; }

/* Theme variables (per body[data-theme]) */
body.finansial-app[data-theme="blue"] {
    --fa-theme: #1E40AF;
    --fa-theme-dark: #1E3A8A;
    --fa-grad-start: #3B82F6;
    --fa-grad-end: #1E3A8A;
    --fa-card-grad-start: #1E40AF;
    --fa-card-grad-end: #1E3A8A;
}
body.finansial-app[data-theme="green"] {
    --fa-theme: #047857;
    --fa-theme-dark: #065F46;
    --fa-grad-start: #10B981;
    --fa-grad-end: #047857;
    --fa-card-grad-start: #047857;
    --fa-card-grad-end: #065F46;
}

/* ---------- Hero (Blue / Green gradient) ---------- */
.fa-hero {
    background: linear-gradient(155deg, var(--fa-grad-start), var(--fa-grad-end));
    color: #FFFFFF;
    padding: 1.4rem 1.1rem 1.6rem;
    border-radius: 0 0 28px 28px;
    position: relative;
}
.fa-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.fa-hero-balance { display: flex; flex-direction: column; gap: 0.2rem; }
.fa-hero-balance .fa-balance {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.fa-hero-balance .fa-balance small { font-size: 1rem; font-weight: 700; opacity: 0.9; margin-left: 0.15rem; }
.fa-hero-balance .fa-balance-label {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 500;
}
.fa-hero-actions { display: flex; align-items: center; gap: 0.55rem; }
.fa-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(6px);
}
.fa-icon-btn:hover { background: rgba(255,255,255,0.28); }
.fa-icon-btn .fa-dot {
    position: absolute; top: 6px; right: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #F87171; border: 2px solid var(--fa-grad-end);
}
.fa-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--fa-theme-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Quick actions grid */
.fa-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1.3rem;
}
.fa-quick-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 600;
    transition: transform 0.15s ease;
}
.fa-quick-btn:active { transform: scale(0.95); }
.fa-quick-btn .fa-quick-ico {
    width: 50px; height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.fa-quick-btn small { color: #fff; opacity: 0.95; }

/* ---------- White sheet content ---------- */
.fa-sheet {
    background: #FFFFFF;
    padding: 1.1rem 1.1rem 6.5rem;
    margin-top: -0.5rem;
    border-radius: 24px 24px 0 0;
    position: relative;
    box-shadow: 0 -10px 24px rgba(15,23,42,0.05);
    min-height: 40vh;
}
.fa-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.85rem;
}
.fa-section-head strong { font-size: 1rem; font-weight: 800; color: #0F172A; }
.fa-section-head a {
    color: var(--fa-theme); font-size: 0.82rem;
    font-weight: 600; text-decoration: none;
}

/* Filter pills */
.fa-filter-pills {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}
.fa-filter-pills::-webkit-scrollbar { display: none; }
.fa-pill {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #F1F5F9;
    border: 1px solid transparent;
    font-size: 0.78rem; font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.fa-pill i {
    font-size: 0.5rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}
.fa-pill.active {
    background: #FFFFFF; color: #0F172A;
    border-color: #E2E8F0;
    box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}
.fa-pill.va.active i { color: #2563EB; }
.fa-pill.cash.active i { color: #16A34A; }
.fa-pill.qris.active i { color: #8B5CF6; }

/* Date group label */
.fa-trx-group {
    color: #94A3B8;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1rem 0 0.4rem;
}

/* Transaction list item */
.fa-trx-item {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.7rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #F1F5F9;
}
.fa-trx-item:last-child { border-bottom: none; }
.fa-trx-ico {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #EEF2FF; color: #4F46E5;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex: 0 0 auto;
}
.fa-trx-ico.green { background: #D1FAE5; color: #047857; }
.fa-trx-ico.blue { background: #DBEAFE; color: #1D4ED8; }
.fa-trx-ico.purple { background: #EDE9FE; color: #6D28D9; }
.fa-trx-ico.amber { background: #FEF3C7; color: #B45309; }
.fa-trx-ico.red { background: #FEE2E2; color: #B91C1C; }
.fa-trx-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fa-trx-info strong {
    font-size: 0.92rem; font-weight: 700;
    color: #0F172A;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fa-trx-info small {
    font-size: 0.74rem; color: #94A3B8;
    margin-top: 0.15rem;
}
.fa-trx-amount {
    display: flex; flex-direction: column; align-items: flex-end;
    flex: 0 0 auto;
}
.fa-trx-amount strong {
    font-size: 0.92rem; font-weight: 700;
    color: #16A34A;
    white-space: nowrap;
}
.fa-trx-amount strong.minus { color: #DC2626; }
.fa-trx-amount small { font-size: 0.72rem; color: #94A3B8; margin-top: 0.15rem; }

.fa-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94A3B8;
    font-size: 0.9rem;
}

/* ---------- Sub page header ---------- */
.fa-sub-header {
    padding: 1.1rem 1.1rem 0.5rem;
    background: transparent;
    display: flex; align-items: center; gap: 0.6rem;
}
.fa-sub-header .fa-back {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none; background: #FFFFFF;
    color: #0F172A;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    cursor: pointer;
}
.fa-sub-header h2 {
    font-size: 1.3rem; font-weight: 800; margin: 0;
    color: #0F172A;
}
.fa-sub-header small { font-size: 0.78rem; color: #64748B; }
.fa-sub-header-actions { margin-left: auto; display: flex; gap: 0.4rem; }
.fa-sub-header-actions .fa-icon-btn {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.fa-sub-header-actions .fa-icon-btn .fa-dot { border-color: #FFFFFF; }

/* Tabs (Physical / Virtual style) */
.fa-acc-tabs {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 999px;
    padding: 0.25rem;
    margin: 0 1.1rem 0.6rem;
    gap: 0.15rem;
}
.fa-acc-tabs button {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
}
.fa-acc-tabs button.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}

/* Account card swiper (credit-card style) */
.fa-acc-cards {
    display: flex; gap: 0.85rem;
    padding: 0.6rem 1.1rem 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fa-acc-cards::-webkit-scrollbar { display: none; }
.fa-acc-card {
    flex: 0 0 86%;
    max-width: 320px;
    min-height: 175px;
    border-radius: 18px;
    padding: 1.05rem 1.2rem 1.1rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--fa-card-grad-start), var(--fa-card-grad-end));
    box-shadow: 0 10px 24px rgba(15,23,42,0.18);
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}
.fa-acc-card:active { transform: scale(0.99); }
.fa-acc-card.is-selected {
    outline: 2px solid #FFFFFF;
    outline-offset: -6px;
}
.fa-acc-card-top { display: flex; align-items: center; justify-content: space-between; }
.fa-acc-card-check {
    width: 26px; height: 26px; border-radius: 50%;
    background: #10B981; color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}
.fa-acc-card-top .fa-acc-card-brand {
    font-weight: 800; letter-spacing: 0.12em; font-size: 0.95rem;
    opacity: 0.95;
}
.fa-acc-card-num {
    font-size: 1.05rem; font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0.85rem 0 0.6rem;
}
.fa-acc-card-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 0.6rem;
}
.fa-acc-card-row > div { display: flex; flex-direction: column; }
.fa-acc-card-row small {
    font-size: 0.58rem; opacity: 0.85;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.fa-acc-card-row strong {
    font-size: 0.85rem; font-weight: 700;
    margin-top: 0.2rem;
}
.fa-acc-dots {
    display: flex; justify-content: center; gap: 0.4rem;
    margin: 0 0 0.9rem;
}
.fa-acc-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #CBD5E1;
    transition: all 0.2s ease;
}
.fa-acc-dots span.active {
    background: var(--fa-theme); width: 18px;
    border-radius: 6px;
}

/* Account detail summary card */
.fa-detail-card {
    margin: 0 1.1rem 1rem;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.05);
    border: 1px solid #F1F5F9;
}
.fa-detail-card .fa-detail-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.65rem;
}
.fa-detail-card .fa-detail-head strong {
    font-size: 0.95rem; font-weight: 800; color: #0F172A;
}
.fa-detail-card .fa-detail-head small { font-size: 0.75rem; color: #94A3B8; }
.fa-detail-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.fa-detail-grid > div {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    text-align: center;
}
.fa-detail-grid small { font-size: 0.65rem; color: #94A3B8; display: block; }
.fa-detail-grid strong { font-size: 0.85rem; color: #0F172A; display: block; margin-top: 0.2rem; }

/* Bottom nav with center FAB */
.fa-bottom-nav {
    position: fixed; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    align-items: center;
    padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
    background: #FFFFFF;
    box-shadow: 0 -6px 18px rgba(15,23,42,0.06);
    z-index: 50;
}
.fa-bn-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
    text-decoration: none;
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0;
}
.fa-bn-item i { font-size: 1.05rem; }
.fa-bn-item.active { color: var(--fa-theme); font-weight: 700; }
.fa-bn-fab {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--fa-theme);
    color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30,58,138,0.30);
    margin-top: -22px;
    justify-self: center;
}
body.finansial-app[data-theme="green"] .fa-bn-fab {
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.30);
}

/* Modern form (teller) — mobile style */
.fa-form-card {
    margin: 0 1.1rem 1rem;
    padding: 1.05rem 1.05rem 1.2rem;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.05);
    border: 1px solid #F1F5F9;
}
.fa-form-card .fa-fg { margin-bottom: 0.85rem; }
.fa-form-card label {
    display: block;
    font-size: 0.78rem; font-weight: 600;
    color: #334155;
    margin-bottom: 0.32rem;
}
.fa-form-card input[type="text"],
.fa-form-card input[type="number"],
.fa-form-card input[type="search"],
.fa-form-card select,
.fa-form-card textarea {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #F8FAFC;
    color: #0F172A;
}
.fa-form-card textarea { min-height: 76px; resize: vertical; }
.fa-form-card input:focus, .fa-form-card select:focus, .fa-form-card textarea:focus {
    outline: none;
    border-color: var(--fa-theme);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(30,58,138,0.06);
}
.fa-channel-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.fa-channel-pill {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.68rem 0.4rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    cursor: pointer;
    font-weight: 600; font-size: 0.86rem;
    color: #475569;
    transition: all 0.18s ease;
}
.fa-channel-pill input { display: none; }
.fa-channel-pill.active {
    background: var(--fa-theme);
    color: #FFFFFF;
    border-color: var(--fa-theme);
}
.fa-btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: var(--fa-theme);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30,58,138,0.20);
}
body.finansial-app[data-theme="green"] .fa-btn-primary {
    box-shadow: 0 8px 18px rgba(4,120,87,0.20);
}
.fa-btn-primary:active { transform: scale(0.99); }

/* Empty padding so content doesn't get hidden behind bottom nav */
body.finansial-app .container > section:last-of-type { padding-bottom: 6rem; }

/* =====================================================================
   FINANSIAL APP — Form Pembayaran (OaLan-style)
   Pencarian NIS/VA → student card → bill list → channel → submit/QRIS modal
   ===================================================================== */
.fa-form-intro {
    text-align: center;
    padding: 0.6rem 1.5rem 0.9rem;
}
.fa-form-intro h3 {
    font-size: 1.18rem; font-weight: 800; margin: 0 0 0.35rem;
    color: #0F172A;
}
.fa-form-intro p {
    color: #94A3B8; font-size: 0.85rem;
    margin: 0; line-height: 1.45;
}

.fa-form-card .fa-fg.has-helper small.fa-helper {
    display: block; font-size: 0.72rem; color: #94A3B8; margin-top: 0.3rem;
}

/* Search input */
.fa-search-wrap { position: relative; }
.fa-search-wrap .fa-search-icon {
    position: absolute; left: 0.9rem; top: 50%;
    transform: translateY(-50%);
    color: #94A3B8; font-size: 0.85rem;
    pointer-events: none;
}
.fa-search-wrap input { padding-left: 2.4rem !important; }
.fa-search-results {
    margin-top: 0.45rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15,23,42,0.08);
    max-height: 240px;
    overflow-y: auto;
}
.fa-search-results[hidden] { display: none !important; }
.fa-search-result {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
}
.fa-search-result:last-child { border-bottom: none; }
.fa-search-result:hover, .fa-search-result.is-focus { background: #F8FAFC; }
.fa-search-result .fa-sr-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--fa-theme); color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    flex: 0 0 auto;
}
.fa-search-result .fa-sr-info { flex: 1; min-width: 0; }
.fa-search-result strong {
    font-size: 0.88rem; color: #0F172A;
    display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fa-search-result small {
    font-size: 0.72rem; color: #94A3B8;
    display: block; margin-top: 0.1rem;
}

/* Student card */
.fa-student-card {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    margin-bottom: 0.85rem;
}
.fa-student-card[hidden] { display: none !important; }
.fa-student-avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--fa-theme); color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    flex: 0 0 auto;
}
.fa-student-info { flex: 1; min-width: 0; }
.fa-student-info strong {
    font-size: 0.95rem; color: #0F172A;
    display: block; line-height: 1.2;
}
.fa-student-info small {
    font-size: 0.74rem; color: #64748B;
    display: block; margin-top: 0.18rem;
}
.fa-student-clear {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #64748B;
    cursor: pointer;
    flex: 0 0 auto;
}

/* Bill list */
.fa-bill-list[hidden] { display: none !important; }
.fa-bill-list {
    display: flex; flex-direction: column; gap: 0.45rem;
    margin-bottom: 0.2rem;
}
.fa-bill-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fa-bill-item input { display: none; }
.fa-bill-item.is-selected {
    border-color: var(--fa-theme);
    background: rgba(30, 64, 175, 0.05);
}
body.finansial-app[data-theme="green"] .fa-bill-item.is-selected {
    background: rgba(4, 120, 87, 0.06);
}
.fa-bill-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    background: #FFFFFF;
    color: #FFFFFF; font-size: 0.65rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    transition: all 0.15s ease;
}
.fa-bill-item.is-selected .fa-bill-check {
    background: var(--fa-theme);
    border-color: var(--fa-theme);
}
.fa-bill-info { flex: 1; min-width: 0; }
.fa-bill-info strong {
    font-size: 0.9rem; color: #0F172A;
    display: block; line-height: 1.25;
}
.fa-bill-info small {
    font-size: 0.72rem; color: #94A3B8;
    display: block; margin-top: 0.1rem;
}
.fa-bill-amount { font-weight: 700; color: #0F172A; font-size: 0.92rem; }

/* Modal */
.fa-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 1000;
    padding: 0;
    animation: fa-fade-in 0.18s ease;
}
.fa-modal-overlay[hidden] { display: none !important; }
@keyframes fa-fade-in { from { opacity: 0; } to { opacity: 1; } }
.fa-modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px rgba(15,23,42,0.22);
    animation: fa-slide-up 0.24s ease;
}
@keyframes fa-slide-up {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
}
.fa-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.85rem;
}
.fa-modal-header strong { font-size: 1.02rem; color: #0F172A; }
.fa-modal-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none; color: #0F172A;
    cursor: pointer; font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
}

/* QRIS card */
.fa-qris-card {
    background: #FFFFFF;
    border: 2px solid #ED1C24; /* QRIS official red */
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
}
.fa-qris-brand {
    background: #ED1C24;
    color: #FFFFFF;
    padding: 0.55rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 800; letter-spacing: 0.04em;
    font-size: 0.95rem;
}
.fa-qris-brand .fa-qris-brand-name { font-size: 1.05rem; }
.fa-qris-brand .fa-qris-brand-gpn { font-size: 0.72rem; opacity: 0.95; }
.fa-qris-merchant {
    padding: 0.6rem 1rem 0.1rem;
    text-align: center;
}
.fa-qris-merchant strong {
    display: block;
    font-size: 0.95rem; font-weight: 800; color: #0F172A;
}
.fa-qris-merchant small {
    display: block;
    font-size: 0.72rem; color: #64748B;
    margin-top: 0.15rem;
}
.fa-qris-code-wrap {
    width: 240px; height: 240px;
    margin: 0.6rem auto 0.6rem;
    padding: 0.6rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    position: relative;
}
.fa-qris-code-wrap svg { width: 100%; height: 100%; display: block; }
.fa-qris-code-wrap .fa-qris-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 2px solid #ED1C24;
    color: #ED1C24;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
}
.fa-qris-info { padding: 0.2rem 1rem 0.9rem; }
.fa-qris-amount { font-size: 1.45rem; font-weight: 800; color: #0F172A; }
.fa-qris-purpose { font-size: 0.86rem; color: #475569; margin-top: 0.25rem; }
.fa-qris-meta { font-size: 0.72rem; color: #94A3B8; margin-top: 0.3rem; }
.fa-qris-footer {
    display: flex; gap: 0.5rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid #F1F5F9;
}
.fa-qris-footer .fa-btn-primary,
.fa-qris-footer .fa-btn-secondary {
    flex: 1; width: 100%;
}
.fa-btn-secondary {
    padding: 0.85rem;
    background: #F1F5F9;
    color: #0F172A;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer;
}
.fa-btn-secondary:active { transform: scale(0.99); }

/* Submit button QRIS variant (orange-ish QRIS brand red) */
.fa-btn-primary.is-qris {
    background: #ED1C24;
    box-shadow: 0 8px 18px rgba(237,28,36,0.25);
}

/* =====================================================================
   FINANSIAL APP — Theme ORANGE (Kantin)
   ===================================================================== */
body.finansial-app[data-theme="orange"] {
    --fa-theme: #D97706;
    --fa-theme-dark: #B45309;
    --fa-grad-start: #FBBF24;
    --fa-grad-end: #D97706;
    --fa-card-grad-start: #F59E0B;
    --fa-card-grad-end: #B45309;
}
body.finansial-app[data-theme="orange"] .fa-bn-fab {
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.30);
}
body.finansial-app[data-theme="orange"] .fa-btn-primary {
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.22);
}
body.finansial-app[data-theme="orange"] .fa-bill-item.is-selected {
    background: rgba(217, 119, 6, 0.07);
}

/* POS scan buttons (Kasir Kantin) */
.fa-scan-row {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.2rem;
}
.fa-scan-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.6rem;
    border-radius: 14px;
    border: 1.5px dashed #FBBF24;
    background: rgba(251, 191, 36, 0.07);
    color: #B45309;
    font-weight: 700; font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fa-scan-btn:active { transform: scale(0.98); }
.fa-scan-btn.alt {
    border-color: #0EA5E9;
    background: rgba(14, 165, 233, 0.07);
    color: #0369A1;
}
.fa-scan-btn .fa-pulse {
    display: inline-flex; width: 20px; height: 20px;
    border-radius: 50%; background: currentColor; opacity: 0.16;
    animation: fa-pulse 1.4s ease-in-out infinite;
    align-items: center; justify-content: center;
}
@keyframes fa-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.16; }
    50% { transform: scale(1.05); opacity: 0.32; }
}

/* Saldo badge in student card (when balance shown big) */
.fa-balance-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem;
    margin: 0.6rem 0 0.4rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(251, 191, 36, 0.06));
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 14px;
}
.fa-balance-row .fa-bal-label { font-size: 0.8rem; color: #92400E; font-weight: 600; }
.fa-balance-row .fa-bal-value { font-size: 1.25rem; color: #92400E; font-weight: 800; }
.fa-balance-row[hidden] { display: none !important; }
