html, body {
    min-height: 100%;
    margin: 0;
    overscroll-behavior-y: auto; /* biarkan pull-to-refresh & gesture back browser tetap aktif */
}

body {
    background-color: #f1f5f9;
    overflow-x: hidden; /* jaga layout tetap rapi tanpa mematikan scroll vertikal browser */
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

/* shell aplikasi tetap full-height agar terasa native tanpa memblok fitur browser bawaan */
#app,
main {
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

header {
    padding-top: max(0.5rem, env(safe-area-inset-top));
}

.app-topbar {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.88)),
        radial-gradient(circle at 12% 0, rgba(16, 185, 129, 0.14), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.12), transparent 32%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(18px);
}

.app-topbar-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    padding: 0.55rem 0.75rem;
}

.topbar-menu-btn {
    position: relative;
    width: 48px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.88)),
        linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(14, 165, 233, 0.1));
    color: #065f46;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.topbar-menu-btn::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.topbar-menu-btn:hover {
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13), 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.topbar-menu-btn:active {
    transform: translateY(1px);
}

.topbar-menu-lines {
    width: 15px;
    height: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.topbar-menu-lines::before,
.topbar-menu-lines::after {
    content: "";
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.topbar-menu-lines::after {
    width: 10px;
    align-self: flex-end;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.topbar-brand-mark {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.topbar-brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.topbar-brand h2 {
    color: #0f172a;
    font-size: clamp(0.95rem, 2vw, 1.22rem);
    line-height: 1.05;
    font-weight: 900;
}

.topbar-brand p {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    min-width: 0;
}

.topbar-status-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #ffffff;
    min-height: 46px;
    padding: 0.48rem 0.72rem;
    line-height: 1.05;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.topbar-role {
    display: flex;
    min-width: 112px;
    max-width: 170px;
    flex-direction: column;
    justify-content: center;
}

.topbar-role span,
.topbar-clock p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-role span i {
    color: #059669;
    font-size: 0.82rem;
}

.topbar-role b {
    display: block;
    margin-top: 0.22rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-clock {
    min-width: 150px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topbar-clock p {
    justify-content: flex-end;
}

.topbar-clock strong {
    display: block;
    margin-top: 0.18rem;
    color: #047857;
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.home-command {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 23, 42, 0.98) 58%, rgba(29, 78, 216, 0.9)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 14px);
    color: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -18% -42% auto;
    width: 360px;
    height: 360px;
    background: conic-gradient(from 110deg, rgba(16, 185, 129, 0.36), rgba(14, 165, 233, 0.28), rgba(248, 250, 252, 0.05), rgba(16, 185, 129, 0.36));
    opacity: 0.68;
    transform: rotate(-12deg);
    pointer-events: none;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    color: #bbf7d0;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 680px;
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 4vw, 2.8rem);
    line-height: 1.02;
    font-weight: 900;
}

.home-hero p {
    max-width: 560px;
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 600;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.home-primary-action,
.home-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 900;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.home-primary-action {
    background: #ffffff;
    color: #064e3b;
}

.home-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.home-primary-action:active,
.home-secondary-action:active,
.home-action-card:active {
    transform: translateY(1px);
}

.home-hero-panel {
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.home-hero-panel span,
.home-hero-strip small {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-hero-panel strong {
    display: block;
    margin-top: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    line-height: 1.1;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.home-hero-strip {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 0.85rem;
}

.home-hero-strip b {
    display: block;
    margin-top: 0.2rem;
    color: #86efac;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.home-action-grid,
.home-metric-grid,
.home-brief-grid {
    display: grid;
    gap: 0.8rem;
}

.home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-action-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.85rem;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-action-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.home-action-card svg,
.home-metric-card svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.home-action-card span {
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
}

.accent-emerald svg { color: #059669; }
.accent-blue svg { color: #2563eb; }
.accent-teal svg { color: #0f766e; }
.accent-rose svg { color: #e11d48; }
.accent-amber svg { color: #d97706; }
.accent-indigo svg { color: #4f46e5; }

.home-metric-grid {
    grid-template-columns: 1fr;
}

.home-metric-card,
.home-brief-grid article {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 136px;
}

.home-metric-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.08;
}

.home-metric-card span,
.home-brief-grid span {
    display: block;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.14;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.metric-green { color: #059669; }
.metric-blue { color: #2563eb; }
.metric-violet { color: #7c3aed; }
.metric-slate { color: #334155; }

.home-brief-grid {
    grid-template-columns: 1fr;
}

.home-brief-grid article {
    min-height: 102px;
}

.home-brief-grid span {
    margin-top: 0;
}

.home-brief-grid strong {
    display: block;
    margin-top: 0.45rem;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.home-brief-grid small {
    display: block;
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
}

.report-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, #0f172a 0%, #164e63 54%, #047857 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 12px);
    color: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.report-eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    color: #a7f3d0;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-hero h1 {
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    line-height: 1.02;
    font-weight: 900;
}

.report-hero p {
    max-width: 620px;
    margin-top: 0.7rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 600;
}

.report-download-btn,
.report-table-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.625rem;
    font-weight: 900;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.report-download-btn {
    align-self: flex-end;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
    color: #064e3b;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.report-download-btn:active,
.report-table-download:active {
    transform: translateY(1px);
}

.report-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.report-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.report-summary-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -54px;
    width: 145px;
    height: 145px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.09;
}

.report-summary-card i {
    font-size: 2.1rem;
}

.report-summary-card span {
    display: block;
    margin-top: 0.65rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.12;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.report-summary-card small {
    display: block;
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
}

.summary-income { color: #059669; }
.summary-expense { color: #e11d48; }
.summary-balance { color: #2563eb; }

.report-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.report-filter-panel,
.report-table-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.report-filter-panel {
    padding: 1rem;
}

.report-filter-heading,
.report-table-title,
.report-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.report-filter-heading {
    margin-bottom: 1rem;
}

.report-filter-heading span,
.report-table-title span {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-filter-heading strong,
.report-table-title strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
}

.report-filter-heading > i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.15rem;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.report-field span,
.report-search span {
    display: block;
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-field select,
.report-field input,
.report-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #0f172a;
    padding: 0.62rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 700;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.report-field select:focus,
.report-field input:focus,
.report-search input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.report-search {
    display: block;
    margin-top: 0.85rem;
}

.report-search div {
    position: relative;
}

.report-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.report-search input {
    padding-left: 2.35rem;
}

.report-table-title {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 1rem;
}

.report-table-download {
    min-height: 38px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
    padding: 0.55rem 0.8rem;
    font-size: 0.76rem;
}

.report-table-scroll {
    max-height: 650px;
    overflow: auto;
}

.report-table {
    min-width: 920px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.report-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0f172a;
}

.report-table th {
    padding: 0.85rem 1rem;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.report-table th:hover {
    background: #1e293b;
}

.report-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    color: #334155;
    vertical-align: top;
}

.report-table tbody tr:hover {
    background: #f8fafc;
}

.report-table-footer {
    min-height: 58px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.85rem 1rem;
}

.kas-action-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.kas-action-btn {
    min-width: 72px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    padding: 0.48rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.kas-action-btn i {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
}

.kas-action-btn:active {
    transform: translateY(1px);
}

.kas-action-edit {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.kas-action-edit:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.kas-action-delete {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.kas-action-delete:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.event-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #052e16, #0f172a 56%, #1d4ed8);
    color: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.event-eyebrow {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    color: #bbf7d0;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-hero h1 {
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    line-height: 1.02;
    font-weight: 900;
}

.event-hero p {
    max-width: 660px;
    margin-top: 0.7rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 600;
}

.event-primary-btn,
.event-secondary-btn,
.event-save-btn,
.event-certificate-btn,
.event-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.625rem;
    font-weight: 900;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.event-primary-btn {
    align-self: flex-end;
    min-height: 44px;
    background: #ffffff;
    color: #064e3b;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

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

.event-panel,
.event-workspace {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.event-panel {
    padding: 1rem;
}

.event-panel-head,
.event-workspace-head,
.event-participant-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.event-panel-head {
    margin-bottom: 1rem;
}

.event-panel-head span,
.event-workspace-head span {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-panel-head strong,
.event-workspace-head strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.event-panel-head > i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.2rem;
}

.event-form,
.event-form-row {
    display: grid;
    gap: 0.75rem;
}

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

.event-form label span,
.event-participant-tools label span {
    display: block;
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-form input,
.event-form select,
.event-form textarea,
.event-participant-tools select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #0f172a;
    padding: 0.62rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 700;
    outline: none;
}

.event-form textarea {
    min-height: 90px;
    resize: vertical;
}

.event-save-btn {
    min-height: 44px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1rem;
}

.event-list {
    display: grid;
    gap: 0.65rem;
}

.event-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.65rem;
}

.event-list-item-active {
    border-color: #86efac;
    background: #ecfdf5;
}

.event-list-main {
    text-align: left;
    min-width: 0;
}

.event-list-main span {
    display: inline-flex;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.22rem 0.55rem;
    color: #047857;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-list-main strong,
.event-list-main small,
.event-list-main div {
    display: block;
    margin-top: 0.35rem;
}

.event-list-main strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.event-list-main small,
.event-list-main div {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.event-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.event-list-actions button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.event-workspace-head {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 1rem;
}

.event-workspace-head small {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.event-certificate-btn,
.event-secondary-btn {
    min-height: 40px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
    padding: 0.62rem 0.85rem;
    white-space: nowrap;
}

.event-participant-tools {
    align-items: end;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.event-participant-tools label {
    flex: 1 1 auto;
}

.event-table-wrap {
    overflow: auto;
    max-height: 520px;
}

.event-table {
    min-width: 880px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.event-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0f172a;
}

.event-table th,
.event-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.event-table th {
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-table td b,
.event-table td small {
    display: block;
}

.event-table td small {
    margin-top: 0.25rem;
    color: #94a3b8;
}

.event-attendance,
.event-cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-attendance {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.event-attendance.is-present,
.event-cert.is-ready {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.event-cert {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.event-remove-btn {
    min-height: 34px;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.event-empty {
    padding: 1.5rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 800;
}

.font-marker {
    font-family: 'Permanent Marker', cursive;
}

html.route-public-mode aside,
html.route-public-mode header,
html.route-public-mode main,
html.route-public-mode #view-login,
html.route-public-mode #loading-overlay,
html.route-edit-mode #view-dashboard,
html.route-edit-mode #view-login,
html.route-edit-mode #loading-overlay,
html.route-initial-mode #view-login,
html.route-initial-mode #loading-overlay {
    display: none !important;
}

html.route-public-mode body {
    background-color: #f1f5f9;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #e11d48;
}

.custom-scrollbar,
.sidebar-scrollbar {
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.custom-scrollbar {
    overscroll-behavior-x: contain;
}

#sidebar {
    max-height: 100vh;
    max-height: 100dvh;
}

@media (min-width: 768px) {
    #sidebar {
        height: 100vh;
        height: 100dvh;
    }
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 10px; }
.sidebar-scrollbar::-webkit-scrollbar { width: 4px; }
.sidebar-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }
.loader { border-top-color: transparent; animation: spinner 1s linear infinite; }
@keyframes spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.view-section { display: none; }
.view-section.block { display: block; }
.menu-active { border-left: 4px solid #10b981; background-color: #1e293b; color: white !important; }
.widget-box { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); border-radius: 0.5rem; }

.bankdata-hero {
    position: relative;
}

.bankdata-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(14, 165, 233, 0.04) 45%, transparent 75%),
        repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 12px);
}

.bankdata-hero > * {
    position: relative;
}

.bankdata-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.bankdata-action-btn,
.member-filter-btn,
.member-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bankdata-action-btn:active,
.member-filter-btn:active,
.member-card-btn:active,
.member-table-action:active {
    transform: translateY(1px);
}

.member-action-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.member-action-detail,
.member-action-edit,
.member-action-delete {
    border: 1px solid transparent;
}

.member-action-detail {
    background: #0f172a;
    color: #ffffff;
}

.member-action-detail:hover {
    background: #1e293b;
}

.member-action-edit {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.member-action-edit:hover {
    background: #d1fae5;
}

.member-action-delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.member-action-delete:hover {
    background: #ffe4e6;
}

.member-form-shell {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.member-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 0;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    padding: 0.85rem 1rem;
    color: #64748b;
    text-align: left;
    background: transparent;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.member-tab b,
.member-tab small {
    display: block;
}

.member-tab b {
    font-size: 0.85rem;
    line-height: 1.1;
}

.member-tab small {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: inherit;
    opacity: 0.78;
}

.member-tab-active {
    color: #0f172a;
    background: #ffffff;
    border-color: #dbeafe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.member-step {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-weight: 900;
    flex-shrink: 0;
}

.member-tab-active .member-step {
    background: #10b981;
    color: #ffffff;
}

.member-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.member-field-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.member-label {
    width: 100%;
    font-weight: 900;
    color: #334155;
}

.member-label-short {
    width: 100%;
}

.member-input,
.member-filter-input {
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.member-input {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
}

.member-filter-input {
    min-height: 38px;
    padding: 0.55rem 0.75rem;
}

.member-input:focus,
.member-filter-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.member-primary-btn,
.member-save-btn,
.member-secondary-btn,
.member-danger-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.625rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 900;
    transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.member-primary-btn,
.member-save-btn {
    background: #0f172a;
    color: #ffffff;
}

.member-primary-btn:hover,
.member-save-btn:hover {
    background: #1e293b;
}

.member-secondary-btn,
.member-danger-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.member-danger-btn {
    color: #be123c;
}

.member-secondary-btn:hover,
.member-danger-btn:hover {
    background: #f8fafc;
}

.member-stat-card {
    color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.member-stat-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.member-stat-blue { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.member-stat-green { background: linear-gradient(135deg, #047857, #22c55e); }
.member-stat-slate { background: linear-gradient(135deg, #334155, #0f172a); }

.member-stat-icon {
    width: 70px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.55;
}

.member-stat-download {
    width: 95%;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    padding: 0.45rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: background-color 180ms ease;
}

.member-stat-download:hover {
    background: #ffffff;
}

.member-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    font-size: 0.82rem;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    max-width: 100%;
}

.member-table-action {
    min-width: 74px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.55rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.member-table-action i,
.member-card-btn i {
    font-size: 1rem;
    line-height: 1;
}

.member-table-action span,
.member-card-btn span {
    line-height: 1;
}

.member-mobile-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.member-mobile-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.member-mobile-meta b {
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skeleton-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.35s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (min-width: 768px) {
    .topbar-brand-mark {
        display: flex;
    }

    .app-topbar-inner {
        padding: 0.6rem 0.9rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
        align-items: stretch;
        padding: 1.45rem;
    }

    .home-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-brief-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-hero {
        padding: 1.45rem;
    }

    .report-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .event-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-field-row {
        flex-direction: row;
        align-items: center;
    }

    .member-label {
        width: 170px;
        text-align: right;
        flex-shrink: 0;
    }

    .member-label-short {
        width: 86px;
    }

    .member-filter-panel {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1180px) {
    .home-action-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-action-card {
        min-height: 112px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .home-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-brief-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .report-shell {
        grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
        align-items: start;
    }

    .report-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .app-topbar-inner {
        flex-wrap: wrap;
    }

    .app-topbar-inner > .flex:first-child {
        min-width: 0;
    }

    .topbar-status {
        min-width: min(100%, 320px);
    }
}

@media (max-width: 640px) {
    .app-topbar {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .app-topbar-inner {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.6rem;
    }

    .app-topbar-inner > .flex:first-child {
        flex: 1 1 100%;
        width: 100%;
    }

    .topbar-menu-btn {
        width: 46px;
        height: 40px;
    }

    .topbar-brand {
        flex: 1 1 auto;
    }

    .topbar-brand h2 {
        font-size: 0.95rem;
    }

    .topbar-brand p {
        max-width: 180px;
    }

    .topbar-status {
        width: 100%;
        align-self: stretch;
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(92px, 0.8fr) minmax(132px, 1.2fr);
        gap: 0.5rem;
    }

    .topbar-status-card {
        min-height: 44px;
        padding: 0.45rem 0.55rem;
        border-radius: 0.58rem;
    }

    .topbar-role {
        min-width: 0;
        max-width: none;
    }

    .topbar-role span {
        font-size: 0.55rem;
    }

    .topbar-role b {
        font-size: 0.7rem;
    }

    .topbar-clock {
        min-width: 0;
    }

    .topbar-clock p {
        font-size: 0.56rem;
        line-height: 1.2;
    }

    .topbar-clock strong {
        font-size: 0.78rem;
    }

    .home-hero-actions > button {
        flex: 1 1 150px;
    }

    .home-action-card {
        min-height: 86px;
        padding: 0.75rem;
    }

    .home-action-card svg {
        width: 34px;
        height: 34px;
    }

    .report-hero {
        flex-direction: column;
        padding: 1rem;
    }

    .report-download-btn {
        align-self: stretch;
    }

    .report-filter-panel,
    .report-table-card {
        border-radius: 0.65rem;
    }

    .report-table-title,
    .report-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-hero,
    .event-workspace-head,
    .event-participant-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .event-primary-btn,
    .event-certificate-btn,
    .event-secondary-btn {
        width: 100%;
    }

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-actions {
        flex-direction: row;
    }

    .event-table thead {
        display: table-header-group;
    }

    button,
    .sidebar-menu,
    input,
    select {
        min-height: 44px;
    }

    #sidebar {
        transition: transform 260ms ease;
        box-shadow: 18px 0 36px rgba(15, 23, 42, 0.18);
    }

    table thead {
        display: none;
    }

    .report-table thead {
        display: table-header-group;
    }
}

/* Perbaikan Tampilan Warna Sidebar Menjadi Hitam Pekat */
#sidebar {
    background-color: #000000 !important;
}

.sidebar-close {
    transform: translateX(-100%);
    width: 0 !important;
    overflow: hidden;
}
