@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    --primary: #e11d48;
    --primary-hover: #be123c;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fafaf9;
    color: #57534e;
}

.font-display {
    font-family: 'Poppins', 'Inter', system_ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.soft-shadow {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 0 3px rgba(15, 23, 42, 0.02);
}

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    border: 1px solid #f5f5f4;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05),
        0 8px 10px -6px rgba(15, 23, 42, 0.02);
    border-color: #e7e5e4;
}

.nav-item {
    transition: all 0.25s ease;
}

.nav-item:hover {
    background-color: #fafaf9;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(to right, #f5f3ff, #ffffff);
    color: var(--primary);
    font-weight: 600;
    border-radius: 0.75rem;
}

.section {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-table {
    border-radius: 1rem;
    /* overflow:hidden di outer + overflow-x:auto di .modern-table-scroll
       agar tabel bisa digeser di mobile tanpa merusak radius. */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    border: 1px solid #f5f5f4;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.modern-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* Pastikan lebar terikat viewport, bukan konten tabel */
    box-sizing: border-box;
}

/* Hint scrollbar tipis di mobile/desktop */
.modern-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
}
.modern-table-scroll::-webkit-scrollbar {
    height: 6px;
}
.modern-table-scroll::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 999px;
}

/* Mobile: pastikan main/content tidak memotong scroll horizontal tabel */
@media (max-width: 639px) {
    .modern-table-scroll {
        /* Touch scroll lebih jelas di HP */
        touch-action: pan-x pan-y;
    }
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.status-badge--sm {
    font-size: 0.6875rem;
    padding: 0.25rem 0.65rem;
}

/* ========== Guests table (large dataset) ========== */
.guests-table-card {
    position: relative;
    /* Ikat lebar ke parent flex/grid — cegah kartu melebar mengikuti min-width tabel */
    max-width: 100%;
    min-width: 0;
    width: 100%;
    /* Jangan biarkan child min-width “mendorong” kartu melebihi viewport */
    contain: inline-size;
}

.guests-table-scroll {
    max-height: min(70vh, 720px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Hanya tangkap overscroll horizontal; vertikal boleh naik ke page scroll */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    box-sizing: border-box;
}

.guests-data-table {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
    max-width: none;
}

.guests-data-table .gt-th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fafaf9;
    border-bottom: 1px solid #f5f5f4;
    box-shadow: none;
}

/* Sticky checkbox + No (left) */
.guests-data-table .gt-sticky-check,
.guests-data-table .gt-sticky-no {
    position: sticky;
    background: #fff;
    z-index: 10;
}

.guests-data-table thead .gt-sticky-check,
.guests-data-table thead .gt-sticky-no {
    z-index: 40;
    background: rgba(250, 250, 249, 0.98);
}

.guests-data-table .gt-sticky-check {
    left: 0;
}

.guests-data-table .gt-sticky-no {
    left: 2.25rem; /* ~w-9 */
}

@media (min-width: 640px) {
    .guests-data-table .gt-sticky-no {
        left: 2.5rem; /* ~w-10 */
    }
}

/* Kolom aksi: tombol normal, tidak sticky */
.guests-data-table .gt-col-actions {
    background: transparent;
    box-shadow: none;
    min-width: 8.5rem;
}

.guests-data-table tbody tr.guest-row:hover .gt-sticky-check,
.guests-data-table tbody tr.guest-row:hover .gt-sticky-no {
    background: #fafaf9;
}

.guests-data-table tbody tr.guest-row.guest-row-selected .gt-sticky-check,
.guests-data-table tbody tr.guest-row.guest-row-selected .gt-sticky-no {
    background: #fff1f2;
}

.gt-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-shadow: none;
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

@media (min-width: 640px) {
    .gt-action-btn {
        width: auto;
        min-width: 2rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

.gt-spinner {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid #e7e5e4;
    border-top-color: #e11d48;
    border-radius: 9999px;
    animation: gt-spin 0.7s linear infinite;
    vertical-align: -0.1em;
}

@keyframes gt-spin {
    to { transform: rotate(360deg); }
}

.guests-table-loading-mask {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    border-radius: inherit;
}

.guests-table-card.is-loading .guests-data-table tbody {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.gt-skel {
    background: linear-gradient(90deg, #f5f5f4 0%, #e7e5e4 50%, #f5f5f4 100%);
    background-size: 200% 100%;
    animation: gt-shimmer 1.2s ease-in-out infinite;
}

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

/* Usher view: no checkbox column — shift sticky No to left:0 */
.guests-data-table.no-check .gt-sticky-no {
    left: 0;
}

@media (max-width: 639px) {
    /*
     * Mobile: jangan pakai nested vertical scroll (max-height).
     * Nested + overscroll-contain membuat halaman “macet” saat jari di area tabel.
     * Vertikal = scroll halaman; horizontal = swipe di dalam .guests-table-scroll.
     */
    .guests-table-card.modern-table,
    .guests-table-card {
        overflow: hidden;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        contain: inline-size;
    }

    .guests-table-scroll {
        max-height: none !important;
        height: auto;
        /* Hanya sumbu X yang scroll di container; Y ikut page */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-x pan-y;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        -webkit-overflow-scrolling: touch;
        /* Scrollbar lebih terlihat di HP agar user tahu bisa digeser */
        scrollbar-width: thin;
        scrollbar-color: #a8a29e transparent;
    }

    .guests-table-scroll::-webkit-scrollbar {
        height: 8px;
    }
    .guests-table-scroll::-webkit-scrollbar-thumb {
        background: #a8a29e;
        border-radius: 999px;
    }

    /* Sticky kiri di HP sering mengganggu gesture geser horizontal */
    .guests-data-table .gt-sticky-check,
    .guests-data-table .gt-sticky-no {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        z-index: auto !important;
    }
    /* Header tetap sticky-top di dalam container (berguna jika nested Y di desktop) */
    .guests-data-table thead .gt-th {
        position: sticky;
        top: 0;
    }
}

.soft-btn {
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.soft-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.15);
}

.soft-btn:active {
    transform: translateY(0);
}

.metric-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f5f5f4;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -4px rgba(15, 23, 42, 0.06);
    border-color: #e7e5e4;
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
}

/* Layout shell: jangan pasang overflow-x di flex parent (mematikan sticky).
   Konten horizontal di-clamp di <main> + scrollport tabel. */
html {
    /* clip: tidak bikin scroll container (sticky sidebar tetap OK), cegah bleed X */
    overflow-x: clip;
    max-width: 100%;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

.app-shell {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Semua area konten dashboard (client + admin) */
main.flex-1,
.app-shell > main,
.app-shell > .flex-1 {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
}

/* Kontainer padding di dalam main — ikat lebar ke viewport, bukan ke tabel */
main.flex-1 > div,
main.flex-1 .section {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Kartu yang membungkus tabel (overflow-hidden + radius) — ikat lebar */
main .overflow-hidden.rounded-2xl,
main .overflow-hidden.rounded-3xl,
main .modern-table,
main .soft-shadow.modern-table {
    max-width: 100%;
    min-width: 0;
}

/* Scrollport horizontal universal (tabel + tab bar).
   Jangan force display:block — biar flex (tab billing) tetap jalan. */
main .overflow-x-auto,
main .modern-table-scroll,
.table-scroll {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
}

main .overflow-x-auto::-webkit-scrollbar,
main .modern-table-scroll::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
    height: 6px;
}

main .overflow-x-auto::-webkit-scrollbar-thumb,
main .modern-table-scroll::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 999px;
}

/* Parent overflow-hidden (radius card) + child scroll — pastikan child terikat lebar */
main .overflow-hidden > .overflow-x-auto,
main .overflow-hidden > .modern-table-scroll,
main .overflow-hidden > .table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Form/filter di HP: input tidak melebihi layar */
@media (max-width: 639px) {
    main select,
    main input[type="text"],
    main input[type="search"],
    main input[type="email"],
    main input[type="number"],
    main input[type="date"],
    main input[type="tel"] {
        max-width: 100%;
    }

    main .overflow-x-auto,
    main .modern-table-scroll,
    .table-scroll {
        touch-action: pan-x pan-y;
    }
}

/* ========== Filter collapsible (mobile/HP) ========== */
.filter-collapse {
    min-width: 0;
    width: 100%;
}

.filter-collapse__toggle {
    display: none; /* di desktop disembunyikan; di mobile di-enable di media query */
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    border: 1px solid #e7e5e4;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: #292524;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.filter-collapse__toggle:hover {
    background: #fafaf9;
    border-color: #d6d3d1;
}

.filter-collapse__toggle:active {
    background: #f5f5f4;
}

.filter-collapse__toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.filter-collapse__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.625rem;
    background: #fff1f2;
    color: #e11d48;
    flex-shrink: 0;
}

.filter-collapse__title {
    font-weight: 700;
    color: #1c1917;
    flex-shrink: 0;
}

.filter-collapse__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.filter-collapse__badge.hidden {
    display: none !important;
}

.filter-collapse__summary {
    font-size: 0.75rem;
    font-weight: 500;
    color: #78716c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.filter-collapse__summary.hidden {
    display: none !important;
}

.filter-collapse__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a8a29e;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.filter-collapse.is-open .filter-collapse__chevron {
    transform: rotate(180deg);
}

.filter-collapse__panel {
    min-width: 0;
    width: 100%;
}

/* Mobile: SELALU collapse by default; buka hanya dengan .is-open */
@media (max-width: 1023px) {
    .filter-collapse__toggle {
        display: flex;
    }

    .filter-collapse__panel,
    .filter-collapse__panel[hidden] {
        display: none !important;
        margin-top: 0.75rem;
        padding: 0.875rem;
        border-radius: 1rem;
        border: 1px solid #f5f5f4;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

    .filter-collapse.is-open .filter-collapse__panel,
    .filter-collapse.is-open .filter-collapse__panel[hidden] {
        display: block !important;
        animation: filterCollapseIn 0.18s ease-out;
    }

    /* Panel yang sudah kartu sendiri: jangan double-card */
    .filter-collapse--bare .filter-collapse__panel,
    .filter-collapse.filter-collapse--bare .filter-collapse__panel {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

@keyframes filterCollapseIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: selalu buka, tanpa tombol */
@media (min-width: 1024px) {
    .filter-collapse__toggle {
        display: none !important;
    }

    .filter-collapse__panel,
    .filter-collapse__panel[hidden] {
        display: block !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        animation: none !important;
    }
}

/* Desktop sidebar: sticky full-viewport; scroll menu di dalam sidebar.
   Menghindari "putus" saat <main> lebih panjang dari layar. */
@media (min-width: 1024px) {
    aside.sidebar,
    .sidebar {
        position: sticky !important;
        top: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: 18rem; /* w-72 */
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        align-self: flex-start;
        flex-shrink: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: #ffffff;
        border-top: 0 !important;
        z-index: 30;
        /* Ruang bawah agar item terakhir tidak tertutup scrollbar / tepi viewport */
        padding-bottom: 0;
    }

    /* Admin sidebar: lebih ramping, tanpa efek berat */
    aside.sidebar.admin-sidebar {
        width: 16rem; /* w-64 */
    }

    .sidebar-desktop-inner {
        padding-bottom: 6rem; /* ~pb-24 */
    }
}

/* Admin sidebar desktop: matikan shadow/transition/transform pada item nav
   (jangan sentuh bottom dock mobile / drawer) */
aside.admin-sidebar .sidebar-desktop-inner .nav-item,
aside.admin-sidebar .sidebar-desktop-inner a {
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}
aside.admin-sidebar .sidebar-desktop-inner .nav-item:hover,
aside.admin-sidebar .sidebar-desktop-inner a:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Mobile bottom nav: safe-area + padding agar tidak mepet home indicator */
@media (max-width: 1023px) {
    .mobile-bottom-nav {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

.demo-modal {
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scanner-frame {
    background: linear-gradient(rgba(15, 23, 42, 0.1), transparent);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(79, 70, 229, 0.3);
    border-radius: 1.5rem;
}

.guest-row {
    transition: all 0.2s ease;
}

.guest-row:hover {
    background-color: #fafaf9;
}

/* User requested no backdrop blur, just plain solid or slightly translucent color */
.solid-nav {
    background: #ffffff;
    border-bottom: 1px solid #e7e5e4;
    /* Jangan clip dropdown notifikasi */
    overflow: visible;
    z-index: 50;
}

/* ========== Header notification dropdown ========== */
#notif-root {
    position: relative;
    z-index: 210;
}

#notif-bell-btn.has-unread {
    color: #e11d48;
}
#notif-bell-btn.has-unread i {
    animation: notifBellPulse 2.4s ease-in-out infinite;
}
@keyframes notifBellPulse {
    0%, 100% { transform: rotate(0); }
    8% { transform: rotate(12deg); }
    16% { transform: rotate(-10deg); }
    24% { transform: rotate(8deg); }
    32% { transform: rotate(0); }
}

.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 215;
    background: rgba(28, 25, 23, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
body.notif-open {
    overflow: hidden;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(22.5rem, calc(100vw - 1.25rem));
    z-index: 220;
}

@media (max-width: 640px) {
    .notif-dropdown {
        position: fixed;
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        z-index: 230;
    }
}

.notif-dropdown-inner {
    display: flex;
    flex-direction: column;
    max-height: min(30rem, calc(100vh - 5rem));
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    box-shadow:
        0 20px 40px -12px rgba(28, 25, 23, 0.18),
        0 0 0 1px rgba(28, 25, 23, 0.03);
    overflow: hidden;
    animation: notifDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.75rem;
    border-bottom: 1px solid #f5f5f4;
    background: linear-gradient(180deg, #fffafb 0%, #ffffff 100%);
    flex-shrink: 0;
}

.notif-dropdown-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    min-height: 9rem;
    max-height: min(22rem, 52vh);
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
}

.notif-dropdown-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid #f5f5f4;
    background: #fafaf9;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: #a8a29e;
}
.notif-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e7e5e4;
    border-top-color: #e11d48;
    border-radius: 9999px;
    animation: notifSpin 0.7s linear infinite;
}
@keyframes notifSpin {
    to { transform: rotate(360deg); }
}

.notif-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.75rem 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #fafaf9;
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #fafaf9;
}

.notif-item.is-unread {
    background: #fff1f2;
}

.notif-item.is-unread:hover {
    background: #ffe4e6;
}

.notif-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f5f5f4;
    color: #78716c;
}
.notif-item-icon.tone-rose,
.notif-item-icon.tone-rose.is-unread { background: #ffe4e6; color: #e11d48; }
.notif-item-icon.tone-emerald { background: #d1fae5; color: #059669; }
.notif-item-icon.tone-amber { background: #fef3c7; color: #d97706; }
.notif-item-icon.tone-sky { background: #e0f2fe; color: #0284c7; }
.notif-item-icon.tone-stone { background: #f5f5f4; color: #78716c; }

.notif-item-body {
    min-width: 0;
    flex: 1 1 auto;
}

.notif-item-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.notif-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #292524;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: #e11d48;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.notif-item-text {
    font-size: 0.75rem;
    color: #78716c;
    line-height: 1.4;
    margin: 0.2rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-meta {
    font-size: 0.65rem;
    color: #a8a29e;
    margin: 0.35rem 0 0;
}

.notif-item-dismiss {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: #a8a29e;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 0.1rem;
}
.notif-item:hover .notif-item-dismiss,
.notif-item-dismiss:focus {
    opacity: 1;
}
.notif-item-dismiss:hover {
    background: #fee2e2;
    color: #e11d48;
}
@media (hover: none) {
    .notif-item-dismiss {
        opacity: 0.55;
    }
}

#reader__dashboard {
    background-color: white !important;
}

#html5-qrcode-button-camera-start {
    opacity: 1;
    display: inline-block;
    border: 1px solid #000;
    padding: 10px;
    border-radius: 10px;

}

#html5-qrcode-button-camera-stop {
    opacity: 1;
    display: inline-block;
    border: 1px solid #000;
    padding: 10px;
    border-radius: 10px;
}
/* ==========================================================================
   SweetAlert2 — Bumu theme (rose brand)
   ========================================================================== */
.swal2-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.swal2-popup.swal2-bumu-popup,
.swal2-popup {
    border-radius: 1.5rem !important;
    border: 1px solid #f5f5f4;
    box-shadow:
        0 25px 50px -12px rgba(28, 25, 23, 0.18),
        0 0 0 1px rgba(28, 25, 23, 0.03) !important;
    padding: 1.75rem 1.5rem 1.5rem !important;
    color: #44403c !important;
}

.swal2-title.swal2-bumu-title,
.swal2-title {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    color: #1c1917 !important;
    font-size: 1.25rem !important;
}

.swal2-html-container.swal2-bumu-html,
.swal2-html-container {
    color: #78716c !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
}

.swal2-actions.swal2-bumu-actions,
.swal2-actions {
    gap: 0.5rem !important;
    margin-top: 1.25rem !important;
}

/* Buttons */
.swal2-styled.swal2-confirm,
.swal2-bumu-confirm {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%) !important;
    background-color: #e11d48 !important;
    border: none !important;
    border-radius: 0.875rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.7rem 1.35rem !important;
    box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.45) !important;
    transition: filter 0.15s ease, transform 0.15s ease !important;
}
.swal2-styled.swal2-confirm:hover,
.swal2-bumu-confirm:hover {
    filter: brightness(1.05);
}
.swal2-styled.swal2-confirm:focus,
.swal2-bumu-confirm:focus {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35), 0 4px 14px -2px rgba(225, 29, 72, 0.4) !important;
}

.swal2-styled.swal2-cancel,
.swal2-bumu-cancel {
    background: #f5f5f4 !important;
    background-color: #f5f5f4 !important;
    color: #57534e !important;
    border: 1px solid #e7e5e4 !important;
    border-radius: 0.875rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.7rem 1.25rem !important;
    box-shadow: none !important;
}
.swal2-styled.swal2-cancel:hover,
.swal2-bumu-cancel:hover {
    background: #e7e5e4 !important;
    background-color: #e7e5e4 !important;
}
.swal2-styled.swal2-cancel:focus,
.swal2-bumu-cancel:focus {
    box-shadow: 0 0 0 3px rgba(168, 162, 158, 0.35) !important;
}

.swal2-styled.swal2-deny,
.swal2-bumu-deny {
    background: #be123c !important;
    background-color: #be123c !important;
    border-radius: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px -2px rgba(190, 18, 60, 0.35) !important;
}

/* Input (password confirm, dll.) */
.swal2-input,
.swal2-textarea,
.swal2-select {
    border-radius: 0.875rem !important;
    border: 1px solid #e7e5e4 !important;
    color: #292524 !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}
.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #fb7185 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
}
.swal2-validation-message {
    background: #fff1f2 !important;
    color: #9f1239 !important;
    border-radius: 0.75rem !important;
}

/* Icons — rose / soft success */
.swal2-icon {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

/* Warning */
.swal2-icon.swal2-warning {
    border-color: #fda4af !important;
    color: #e11d48 !important;
}

/* Error */
.swal2-icon.swal2-error {
    border-color: #fda4af !important;
    color: #e11d48 !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #e11d48 !important;
}

/* Success — soft rose-emerald agar selaras brand, tetap terbaca “sukses” */
.swal2-icon.swal2-success {
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(225, 29, 72, 0.25) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #e11d48 !important;
}

/* Info */
.swal2-icon.swal2-info {
    border-color: #fda4af !important;
    color: #e11d48 !important;
}

/* Question */
.swal2-icon.swal2-question {
    border-color: #fda4af !important;
    color: #e11d48 !important;
}

/* Timer progress (toast / timed) */
.swal2-timer-progress-bar,
.swal2-bumu-timer {
    background: linear-gradient(90deg, #e11d48, #fb7185) !important;
}

/* Toast */
.swal2-popup.swal2-toast {
    border-radius: 1rem !important;
    border: 1px solid #f5f5f4 !important;
    box-shadow: 0 10px 25px -5px rgba(28, 25, 23, 0.12) !important;
    padding: 0.75rem 1rem !important;
}
.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #292524 !important;
}
.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 0.5rem 0 0 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
}
.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1rem !important;
}
