/**
 * Material Design 3 — Mobile Action Buttons
 * CRUD + file management · premium fintech aesthetic
 */

:root {
    --m3-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --m3-ease: cubic-bezier(0.2, 0, 0, 1);
    --m3-ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
    --m3-touch-min: 48px;
    --m3-radius-lg: 20px;
    --m3-radius-md: 16px;
    --m3-radius-sm: 14px;
    --m3-ripple-duration: 520ms;

    --m3-create: #059669;
    --m3-create-glow: rgba(5, 150, 105, 0.42);
    --m3-edit: #d97706;
    --m3-edit-glow: rgba(217, 119, 6, 0.4);
    --m3-delete: #f87171;
    --m3-delete-glow: rgba(248, 113, 113, 0.38);
    --m3-view: #0066D6;
    --m3-view-glow: rgba(0, 102, 214, 0.35);
    --m3-upload-excel: #2563eb;
    --m3-upload-excel-glow: rgba(37, 99, 235, 0.4);
    --m3-download-excel: #059669;
    --m3-download-excel-glow: rgba(16, 185, 129, 0.4);
    --m3-download-pdf: #991b1b;
    --m3-download-pdf-glow: rgba(153, 27, 27, 0.42);
    --m3-primary: #0066D6;
    --m3-primary-glow: rgba(0, 102, 214, 0.38);
    --m3-import: #0066D6;
    --m3-import-glow: rgba(0, 102, 214, 0.35);
    --m3-cancel: #f1f5f9;
    --m3-cancel-glow: rgba(15, 23, 42, 0.08);
    --m3-cancel-fg: #334155;

    --m3-fg-on-dark: #ffffff;
    --m3-fg-on-light: #0F172A;
}

/* ── Toolbar layouts ── */
.m3-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    font-family: var(--m3-font);
}

.m3-action-toolbar--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m3-action-toolbar--grid > .m3-action-btn--block {
    width: 100%;
}

.m3-action-toolbar--stack {
    flex-direction: column;
}

.m3-action-toolbar--inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.m3-action-toolbar--inline::-webkit-scrollbar {
    display: none;
}

.m3-action-toolbar--sticky-bottom {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.92) 28%, #f8fafc 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}

.m3-action-toolbar--card-row {
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.m3-action-toolbar--equal > .m3-action-btn {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Base button ── */
.m3-action-btn {
    --m3-accent: var(--m3-view);
    --m3-glow: var(--m3-view-glow);
    --m3-accent-deep: color-mix(in srgb, var(--m3-accent) 82%, #000);
    --m3-fg: var(--m3-fg-on-dark);

    position: relative;
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    min-height: var(--m3-touch-min);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--m3-radius-md);
    background: transparent;
    color: var(--m3-fg);
    font-family: var(--m3-font);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition:
        transform 0.22s var(--m3-ease-spring),
        box-shadow 0.28s var(--m3-ease),
        filter 0.22s var(--m3-ease);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 4px 14px var(--m3-glow),
        0 10px 28px -6px var(--m3-glow);
}

.m3-action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 62%);
    transition: opacity 0.28s var(--m3-ease);
    z-index: 2;
}

.m3-action-btn:hover::after {
    opacity: 1;
}

.m3-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 8px 22px var(--m3-glow),
        0 16px 36px -8px var(--m3-glow);
}

.m3-action-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

.m3-action-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--m3-accent) 55%, #fff);
    outline-offset: 3px;
}

.m3-action-btn:disabled,
.m3-action-btn.m3-action-btn--disabled {
    opacity: 0.42;
    pointer-events: none;
    transform: none;
    filter: grayscale(0.15);
}

.m3-action-btn__surface {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: inherit;
    padding: 12px 18px;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--m3-accent) 92%, #fff) 0%,
        var(--m3-accent) 48%,
        var(--m3-accent-deep) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.m3-action-btn__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.28s var(--m3-ease-spring), background 0.22s var(--m3-ease);
}

.m3-action-btn:hover .m3-action-btn__icon-wrap {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.28);
}

.m3-action-btn__icon {
    font-size: 1.125rem;
    line-height: 1;
    color: var(--m3-fg);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.m3-action-btn__icon-wrap > i,
.m3-action-btn__icon-wrap > svg {
    color: inherit;
    fill: currentColor;
}

.m3-action-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.m3-action-toolbar--inline .m3-action-btn__text,
.m3-action-btn--icon-only .m3-action-btn__text {
    display: none;
}

.m3-action-btn__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--m3-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.m3-action-btn--cancel .m3-action-btn__label,
.m3-action-btn--cancel .m3-action-btn__icon,
.m3-action-btn--on-light .m3-action-btn__label,
.m3-action-btn--on-light .m3-action-btn__icon {
    text-shadow: none;
    filter: none;
}

.m3-action-btn__subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--m3-fg) 88%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Ripple */
.m3-action-btn .m3-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: m3-ripple var(--m3-ripple-duration) var(--m3-ease) forwards;
    background: rgba(255, 255, 255, 0.42);
    pointer-events: none;
    z-index: 3;
}

@keyframes m3-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Variants ── */
.m3-action-btn--create {
    --m3-accent: var(--m3-create);
    --m3-glow: var(--m3-create-glow);
}

.m3-action-btn--edit {
    --m3-accent: var(--m3-edit);
    --m3-glow: var(--m3-edit-glow);
}

.m3-action-btn--delete {
    --m3-accent: var(--m3-delete);
    --m3-glow: var(--m3-delete-glow);
}

.m3-action-btn--view {
    --m3-accent: var(--m3-view);
    --m3-accent-deep: #020617;
    --m3-glow: var(--m3-view-glow);
}

.m3-action-btn--view:not(.m3-action-btn--tonal) .m3-action-btn__surface {
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
}

.m3-action-btn--upload-excel {
    --m3-accent: var(--m3-upload-excel);
    --m3-glow: var(--m3-upload-excel-glow);
}

.m3-action-btn--download-excel {
    --m3-accent: var(--m3-download-excel);
    --m3-glow: var(--m3-download-excel-glow);
}

.m3-action-btn--download-pdf {
    --m3-accent: var(--m3-download-pdf);
    --m3-glow: var(--m3-download-pdf-glow);
}

.m3-action-btn--primary,
.m3-action-btn--success {
    --m3-accent: var(--m3-primary);
    --m3-accent-deep: #003F9E;
    --m3-glow: var(--m3-primary-glow);
    --m3-fg: var(--m3-fg-on-dark);
}

/* Modern Blue gradient */
.m3-action-btn--primary .m3-action-btn__surface,
.m3-action-btn--success .m3-action-btn__surface {
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
}

.m3-action-btn--import {
    --m3-accent: var(--m3-import);
    --m3-accent-deep: #003F9E;
    --m3-glow: var(--m3-import-glow);
}

.m3-action-btn--import:not(.m3-action-btn--tonal) .m3-action-btn__surface {
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
}

.m3-action-btn--upload {
    --m3-accent: var(--m3-import);
    --m3-glow: var(--m3-import-glow);
}

.m3-action-btn--cancel {
    --m3-accent: var(--m3-cancel);
    --m3-glow: var(--m3-cancel-glow);
    --m3-fg: var(--m3-cancel-fg);
    --m3-accent-deep: color-mix(in srgb, var(--m3-cancel) 70%, #cbd5e1);
}

.m3-action-btn--cancel .m3-action-btn__surface {
    background: linear-gradient(145deg, #ffffff 0%, var(--m3-cancel) 100%);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.m3-action-btn--cancel .m3-action-btn__icon-wrap {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.m3-action-btn--cancel:hover {
    filter: none;
}

.m3-action-btn--cancel:hover .m3-action-btn__surface {
    background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
}

/* Outlined / tonal (row actions on light cards) */
.m3-action-btn--tonal {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --m3-fg: var(--m3-accent-deep);
}

.m3-action-btn--tonal .m3-action-btn__surface {
    background: color-mix(in srgb, var(--m3-accent) 12%, #fff);
    color: var(--m3-accent-deep);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m3-accent) 22%, transparent);
}

.m3-action-btn--tonal .m3-action-btn__icon-wrap {
    background: color-mix(in srgb, var(--m3-accent) 18%, #fff);
    border-color: color-mix(in srgb, var(--m3-accent) 24%, transparent);
}

.m3-action-btn--tonal .m3-action-btn__icon,
.m3-action-btn--tonal .m3-action-btn__label {
    color: var(--m3-accent-deep);
    text-shadow: none;
}

.m3-action-btn--tonal .m3-action-btn__subtitle {
    color: color-mix(in srgb, var(--m3-accent-deep) 75%, #64748b);
}

.m3-action-btn--tonal .m3-ripple {
    background: color-mix(in srgb, var(--m3-accent) 28%, transparent);
}

/* ── Sizes ── */
.m3-action-btn--sm {
    min-height: 44px;
    border-radius: var(--m3-radius-sm);
}

.m3-action-btn--sm .m3-action-btn__surface {
    padding: 8px 12px;
    gap: 8px;
}

.m3-action-btn--sm .m3-action-btn__icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.m3-action-btn--sm .m3-action-btn__icon {
    font-size: 0.95rem;
}

.m3-action-btn--sm .m3-action-btn__label {
    font-size: 0.8125rem;
}

.m3-action-btn--lg {
    min-height: 52px;
    border-radius: var(--m3-radius-lg);
}

.m3-action-btn--lg .m3-action-btn__surface {
    padding: 14px 20px;
}

.m3-action-btn--lg .m3-action-btn__icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.m3-action-btn--block {
    width: 100%;
}

.m3-action-btn--icon-only {
    min-width: var(--m3-touch-min);
    aspect-ratio: 1;
}

.m3-action-btn--icon-only .m3-action-btn__surface {
    padding: 10px;
    justify-content: center;
}

/* FAB */
.m3-action-fab {
    --m3-accent: var(--m3-create);
    --m3-accent-deep: #047857;
    --m3-glow: var(--m3-create-glow);

    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(145deg, #34d399 0%, #059669 52%, #047857 100%);
    box-shadow:
        0 4px 12px var(--m3-glow),
        0 12px 32px -4px var(--m3-glow);
    transition: transform 0.25s var(--m3-ease-spring), box-shadow 0.25s var(--m3-ease);
    -webkit-tap-highlight-color: transparent;
}

.m3-action-fab:hover {
    transform: translateY(-3px) scale(1.04);
}

.m3-action-fab:active {
    transform: scale(0.94);
}

.m3-action-fab i {
    font-size: 1.35rem;
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff;
}

.m3-action-fab--create {
    --m3-accent: #059669;
    --m3-accent-deep: #047857;
    --m3-glow: rgba(5, 150, 105, 0.42);
    background: linear-gradient(145deg, #34d399 0%, #059669 52%, #047857 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35), 0 12px 32px -4px rgba(5, 150, 105, 0.35);
}
.m3-action-fab--primary {
    --m3-accent: #0066D6;
    --m3-accent-deep: #003F9E;
    --m3-glow: rgba(0, 102, 214, 0.38);
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
    box-shadow: 0 4px 14px rgba(0, 102, 214, 0.35), 0 12px 32px -4px rgba(0, 102, 214, 0.35);
}
.m3-action-fab--edit {
    --m3-accent: #d97706;
    --m3-accent-deep: #b45309;
    --m3-glow: rgba(217, 119, 6, 0.42);
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 52%, #b45309 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35), 0 12px 32px -4px rgba(217, 119, 6, 0.35);
}
.m3-action-fab--view {
    --m3-accent: #0066D6;
    --m3-accent-deep: #003F9E;
    --m3-glow: rgba(0, 102, 214, 0.38);
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
    box-shadow: 0 4px 14px rgba(0, 102, 214, 0.3), 0 12px 32px -4px rgba(0, 102, 214, 0.3);
}
.m3-action-fab--upload-excel {
    --m3-accent: #2563eb;
    --m3-accent-deep: #1d4ed8;
    --m3-glow: rgba(37, 99, 235, 0.42);
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.35),
        0 12px 32px -4px rgba(37, 99, 235, 0.35);
}
.m3-action-fab--upload-excel i {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff;
}
.m3-action-fab--download-excel {
    --m3-accent: #059669;
    --m3-accent-deep: #047857;
    --m3-glow: rgba(5, 150, 105, 0.42);
    background: linear-gradient(145deg, #34d399 0%, #059669 52%, #047857 100%);
    color: #ffffff;
    box-shadow:
        0 4px 12px rgba(5, 150, 105, 0.35),
        0 12px 32px -4px rgba(5, 150, 105, 0.35);
}
.m3-action-fab--download-excel i {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff;
}

body.has-mobile-bottom-nav .m3-action-fab,
body.has-mobile-bottom-nav .app-fab {
    bottom: calc(var(--app-bottom-nav-bar-height, 84px) + 16px + env(safe-area-inset-bottom, 0px));
}

body:not(.has-mobile-bottom-nav) .app-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Hero / dark surfaces (report index) */
.m3-action-toolbar--on-dark .m3-action-btn--download-excel.m3-action-btn--tonal,
.m3-action-toolbar--on-dark .m3-action-btn--create.m3-action-btn--tonal {
    box-shadow: none;
}

.m3-action-toolbar--on-dark .m3-action-btn--download-excel.m3-action-btn--tonal .m3-action-btn__surface {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32);
}

.m3-action-toolbar--on-dark .m3-action-btn--download-excel.m3-action-btn--tonal .m3-action-btn__icon,
.m3-action-toolbar--on-dark .m3-action-btn--download-excel.m3-action-btn--tonal .m3-action-btn__label {
    color: #fff;
}

.m3-action-toolbar--on-dark .m3-action-btn--download-excel.m3-action-btn--tonal .m3-action-btn__icon-wrap {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.m3-action-toolbar--on-dark .m3-action-btn--create .m3-action-btn__surface {
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.m3-action-toolbar--on-dark .m3-action-btn--create .m3-action-btn__icon-wrap {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.2);
}

.m3-action-toolbar--on-dark .m3-action-btn--create .m3-action-btn__icon {
    color: var(--m3-create);
}

.m3-action-toolbar--on-dark .m3-action-btn--create .m3-action-btn__label {
    color: #0f172a;
    text-shadow: none;
}

/* Legacy class bridges (UI-only, no logic change) */
.mobile-action-btn.m3-action-btn,
a.mobile-action-btn.m3-action-btn,
button.mobile-action-btn.m3-action-btn {
    width: 100%;
}

.warga-action-btn.m3-action-btn--sm,
.dokumen-action-btn.m3-action-btn--sm {
    width: auto;
    min-width: auto;
}

.btn-add-primary.m3-action-btn--create,
.btn-add-primary.m3-action-btn {
    display: inline-flex !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: var(--m3-touch-min);
    border-radius: var(--m3-radius-md) !important;
}

.btn-add-primary.m3-action-btn--create .m3-action-btn__surface,
.btn-add-primary.m3-action-btn .m3-action-btn__surface {
    padding: 10px 18px;
}

.btn-add-primary.m3-action-btn--create::before,
.btn-add-primary.m3-action-btn::before {
    display: none !important;
}

/* Card list row: dokumen footer */
.dokumen-card-footer .m3-action-toolbar--card-row {
    flex-wrap: wrap;
}

/* Report detail mobile row actions */
.iw-m-actions.m3-action-toolbar--card-row {
    padding: 10px 12px 12px 14px;
    border-top: 1px solid #f1f5f9;
}

.iw-m-actions.m3-action-toolbar--card-row .m3-action-btn {
    flex: 1;
}

@media (max-width: 767.98px) {
    .m3-action-toolbar--grid {
        gap: 10px;
    }

    .m3-action-btn__surface {
        padding: 11px 14px;
    }

    .m3-action-toolbar--sticky-bottom {
        bottom: calc(var(--mobile-bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .m3-action-toolbar--sticky-bottom {
        position: static;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .m3-action-btn,
    .m3-action-fab,
    .m3-action-btn__icon-wrap {
        transition: none;
    }

    .m3-action-btn .m3-ripple {
        animation: none;
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL "TAMBAH" BUTTON — extracted from master-iuran
   Use .btn-tambah on dark headers  (white on dark)
   Use .btn-tambah.btn-tambah--dark on light backgrounds
   ═══════════════════════════════════════════════════════ */

.btn-tambah {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #ffffff;
    color: #0066D6;
    border: none;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    font-family: var(--m3-font, 'Outfit', system-ui, sans-serif);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn-tambah:hover {
    background: #f0f7ff;
    color: #003F9E;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-tambah:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}
.btn-tambah:focus-visible {
    outline: 2px solid rgba(0, 102, 214, 0.6);
    outline-offset: 3px;
}
.btn-tambah i,
.btn-tambah .ti {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Variant — dark/primary button for light-background pages */
.btn-tambah.btn-tambah--dark {
    background: #0066D6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 214, 0.28),
                0 1px 2px rgba(0, 102, 214, 0.14);
}
.btn-tambah.btn-tambah--dark:hover {
    background: #003F9E;
    color: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 63, 158, 0.35),
                0 2px 4px rgba(0, 63, 158, 0.18);
}
.btn-tambah.btn-tambah--dark:active {
    background: #003F9E;
    box-shadow: 0 1px 4px rgba(0, 63, 158, 0.25);
}
.btn-tambah.btn-tambah--dark:focus-visible {
    outline-color: rgba(0, 102, 214, 0.5);
}

/* ── Standardised mobile FAB ── */
.app-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--app-bottom-nav-bar-height, 84px) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0066D6 0%, #008CFF 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow:
        0 8px 24px rgba(0, 102, 214, 0.35),
        0 2px 6px rgba(0, 102, 214, 0.2);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.app-fab:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 102, 214, 0.45),
        0 4px 8px rgba(0, 102, 214, 0.25);
}
.app-fab:active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
}
.app-fab:focus-visible {
    outline: 2px solid rgba(0, 102, 214, 0.5);
    outline-offset: 3px;
}
