/* =============================================
   POS TOP - Premium Dark Theme
   ============================================= */
:root {
    /* Color Palette - Energetic Orange */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f2f6;
    --bg-card: #ffffff;
    --bg-hover: #fffaf0;

    --accent-primary: #fd7e14;
    /* Main Orange */
    --accent-secondary: #ffa502;
    /* Secondary Orange */
    --accent-success: #2ed573;
    /* Fresh Green */
    --accent-warning: #eccc68;
    --accent-danger: #ff4757;
    --accent-info: #1e90ff;

    --text-primary: #2f3542;
    --text-secondary: #57606f;
    --text-muted: #a4b0be;

    --border-color: #f1f2f6;
    --shadow-color: rgba(253, 126, 20, 0.1);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --navbar-height: 54px;

    /* Transitions */
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fff9f0;
    --bg-card: #ffffff;
    --bg-hover: #fff3e0;

    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;

    --border-color: #f1f2f6;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s ease;
    /* Default: sidebar tersembunyi (akan dioverride oleh media query) */
    transform: translateX(-100%);
}

/* LANDSCAPE: sidebar tampil permanen di kiri */
@media (orientation: landscape) {
    .sidebar {
        transform: translateX(0);
    }

    /* Sembunyikan sidebar landscape saat diklik (body.sidebar-collapsed) */
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%) !important;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }
}

/* PORTRAIT: sidebar mulai tersembunyi, muncul saat sidebar-open ditambahkan JS */
@media (orientation: portrait) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1060;
    }

    .sidebar.sidebar-open {
        transform: translateX(0) !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Overlay gelap di belakang sidebar (mode portrait) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    cursor: pointer;
}

.sidebar-overlay.show {
    display: block !important;
}

.sidebar-user-header {
    display: flex;
    align-items: center;
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-left-color: var(--accent-secondary);
}

.sidebar-nav .nav-link.active {
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
    border-left-color: var(--accent-primary);
}

/* Sidebar Profile & Branch Info */
.sidebar-profile-info {
    background: rgba(255, 255, 255, 0.02);
}

.user-avatar-sm {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
}

.sidebar-branch-box {
    background: rgba(108, 92, 231, 0.08);
}

[data-theme="light"] .sidebar-profile-info {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .sidebar-branch-box {
    background: rgba(108, 92, 231, 0.05);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-divider {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Sidebar submenu */
.nav-link-parent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    width: 100%;
    background: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
    text-align: left;
}

.nav-link-parent:hover,
.nav-link-parent[aria-expanded="true"] {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-left-color: var(--accent-secondary);
}

.nav-link-parent .nav-caret {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-link-parent[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

.nav-submenu .nav-link {
    padding-left: 2.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    border-left: none;
    border-left: 3px solid transparent;
}

.nav-submenu .nav-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.nav-submenu .nav-link.active::before {
    background: var(--accent-primary);
}

.nav-submenu .nav-link:hover::before {
    background: var(--accent-secondary);
}

.sidebar-nav .nav-submenu .nav-link {
    padding-left: 2.75rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

/* Landscape: konten di sebelah kanan sidebar */
@media (orientation: landscape) {
    .main-content {
        margin-left: var(--sidebar-width);
        transition: margin-left 0.3s ease;
    }
}

/* Portrait: konten full-width, sidebar adalah drawer */
@media (orientation: portrait) {
    .main-content {
        margin-left: 0;
        transition: none;
    }
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--accent-primary);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
    color: #ffffff;
}

.top-navbar .page-title,
.top-navbar .sidebar-toggle,
.top-navbar-left,
.top-navbar-right {
    color: #ffffff !important;
}

.top-navbar .sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
}

.top-navbar .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-navbar-right {
    display: flex;
    align-items: center;
}

.navbar-brand-name {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    user-select: none;
    pointer-events: none;
}

.page-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.sidebar-toggle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0;
    /* Remove padding that might make it look like it has a container */
    text-decoration: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 9999 !important;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus,
.sidebar-toggle:active {
    color: var(--text-primary);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* User Dropdown */
.top-navbar .dropdown-toggle::after {
    display: none;
    /* Hide default Bootstrap arrow */
}

.top-navbar .user-avatar.dropdown-toggle:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

[data-theme="light"] .dropdown-menu {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.content-wrapper {
    padding: 1.5rem;
}

/* =============================================
   USER INFO
   ============================================= */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.user-role {
    font-size: 0.75rem;
}

/* =============================================
   BRANCH SWITCHER
   ============================================= */
.branch-switcher .form-select {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    min-width: 160px;
}

.branch-switcher .input-group-text {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-speed) ease;
}

.card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Stat Cards */
.stat-card {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-value {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.15), rgba(255, 165, 2, 0.05));
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.bg-gradient-green {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15), rgba(46, 213, 115, 0.05));
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.2), rgba(255, 165, 2, 0.1));
    border: 1px solid rgba(253, 126, 20, 0.3);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(30, 144, 255, 0.05));
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.bg-gradient-yellow {
    background: linear-gradient(135deg, rgba(236, 204, 104, 0.15), rgba(236, 204, 104, 0.05));
    border: 1px solid rgba(236, 204, 104, 0.2);
}

.icon-purple {
    background: rgba(253, 126, 20, 0.2);
    color: var(--accent-primary);
}

.icon-green {
    background: rgba(46, 213, 115, 0.2);
    color: var(--accent-success);
}

.icon-orange {
    background: rgba(225, 112, 85, 0.2);
    color: var(--accent-danger);
}

.icon-blue {
    background: rgba(116, 185, 255, 0.2);
    color: var(--accent-info);
}

.icon-yellow {
    background: rgba(253, 203, 110, 0.2);
    color: var(--accent-warning);
}

/* =============================================
   TABLES
   ============================================= */
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--bg-hover);
    border-color: var(--border-color);
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: rgba(255, 255, 255, 0.02);
}

/* =============================================
   FORMS
   ============================================= */
.form-control,
.form-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.input-group-text {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    border-radius: 10px 0 0 10px;
    padding: 0.6rem 1rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.55rem 1.2rem;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success), #27ae60);
    border: none;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger), #c0392b);
    border: none;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-outline-primary {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-outline-light {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline-light:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-outline-danger {
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.btn-outline-danger:hover {
    background: var(--accent-danger);
    color: white;
}

/* Specific button for POS transactions */
.btn-pos-transaction {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.25) !important;
}

.btn-pos-transaction:hover {
    background: var(--accent-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(253, 126, 20, 0.35) !important;
}

.btn-pos-transaction:disabled {
    background: var(--text-muted) !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-stock-low {
    background: rgba(225, 112, 85, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(225, 112, 85, 0.3);
}

.badge-stock-ok {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

/* =============================================
   MODALS
   ============================================= */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
}

[data-theme="light"] .modal-header .btn-close {
    filter: none;
    opacity: 0.75;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 600;
    font-size: 1.05rem;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.alert-danger {
    background: rgba(225, 112, 85, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.alert-info {
    background: rgba(116, 185, 255, 0.15);
    color: var(--accent-info);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* Bright background */
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.12), transparent 70%);
    top: -200px;
    right: -150px;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.08), transparent 70%);
    bottom: -150px;
    left: -150px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid rgba(253, 126, 20, 0.08);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px var(--shadow-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(253, 126, 20, 0.2));
}

.login-logo h2 {
    font-weight: 700;
    margin-top: 0.75rem;
    font-size: 1.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =============================================
   POS PAGE
   ============================================= */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    height: calc(100vh - 130px);
}

/* POS page: stop page scroll, only menu grid scrolls */
body.pos-active {
    overflow: hidden;
}

body.pos-active .main-content {
    height: 100vh;
    min-height: unset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.pos-active .top-navbar {
    flex-shrink: 0;
    position: relative;
    /* no longer needs sticky when page doesn't scroll */
}

body.pos-active .content-wrapper.pos-content-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem 0;
}

/* Cashflow/flash bar at top stays auto-height */
body.pos-active #cashflowClosedBanner,
body.pos-active .alert {
    flex-shrink: 0;
}

/* Tab wrapper fills remaining height */
#posTabWrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tab nav bar: fixed height */
#posTab {
    flex-shrink: 0;
}

/* Tab content: fill rest, flex column so panes can take remaining height */
#posTabContent {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Default tab panes: hidden, no height */
#produkTabPane,
#favoritTabPane,
#manualTabPane {
    display: none;
    flex: 0;
    min-height: 0;
}

/* Active tab pane: flex column, fills #posTabContent */
#produkTabPane.show.active {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Filter bar: fixed height, never scrolls */
#produkFilterBar {
    flex-shrink: 0;
}

/* Menu grid: the ONLY scrollable element */
#menuGrid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 4rem;
    /* room above mobile cart bar */
}

#menuStackedWrap {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 4rem;
}

/* Favorit tab pane */
#favoritTabPane.show.active {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

#favMenuGrid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 4rem;
}

/* Manual tab pane */
#manualTabPane.show.active {
    display: block !important;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.pos-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.85rem;
    align-content: start;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (orientation: landscape) {
    .pos-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(135px, 31%), 1fr));
        gap: 0.85rem;
    }
}

.pos-menu-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.pos-menu-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

.pos-menu-item .menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.pos-menu-item .menu-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.pos-menu-item .menu-price {
    color: var(--accent-success);
    font-weight: 600;
    font-size: 0.85rem;
}

.pos-menu-item.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Cart Panel */
.pos-cart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (orientation: portrait) {
    .content-wrapper .btn.btn-outline-primary.btn-sm {
        width: 100%;
    }
}

.pos-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
}

.pos-cart-bar .pos-cart-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 500;
}


.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.92rem;
    min-height: 32px;
}

.cart-item-qty .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 8px;
}

.cart-item-qty-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 7px;
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    font-size: 0.95em;
}

.cart-item-subtotal {
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: right;
    margin-left: 0.5rem;
    color: #555;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 1rem;
    font-weight: 600;
}

.cart-total-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-success);
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0 0 1rem 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.category-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-speed) ease;
}

.category-tab:hover,
.category-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* =============================================
   RECEIPT
   ============================================= */
.receipt {
    background: white;
    color: #333;
    max-width: 350px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-items {
    border-bottom: 2px dashed #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.receipt-total {
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
}

.receipt-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #999;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease forwards;
}

.stat-card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(5) {
    animation-delay: 0.25s;
}


.menu-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.menu-info-row {
    display: block;
}

.menu-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
}

.menu-action-group .btn {
    border-radius: 0.35rem !important;
    flex: 0 0 auto;
}

/* ── Responsive adjustments: layar portrait (gadget vertikal) ── */
@media (orientation: portrait) {
    .top-navbar {
        padding: 0.5rem 0.75rem;
    }

    .top-navbar-left {
        gap: 0.5rem;
    }

    .sidebar-brand {
        display: none;
    }

    .sidebar-user-header {
        display: flex;
    }

    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-cart {
        max-height: 50vh;
    }

    .page-title {
        display: none;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .menu-page-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .menu-page-actions .btn {
        margin-left: 0 !important;
    }

    .pos-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 2.4rem;
    }

    .menu-table thead {
        display: none;
    }

    .menu-table,
    .menu-table tbody,
    .menu-table tr,
    .menu-table td {
        display: block;
        width: 100%;
    }

    .menu-table tr {
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
    }

    .menu-table td {
        border: 0;
        padding: 0.3rem 0;
        text-align: left !important;
    }

    .menu-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        color: var(--text-muted);
        margin-bottom: 0.2rem;
    }

    .menu-table td[data-label="Info & Aksi"] {
        margin-top: 0.35rem;
        padding-top: 0.45rem;
        border-top: 1px dashed var(--border-color);
    }

    /* Keep nested price table horizontal on mobile */
    .menu-table td table.table {
        display: table;
        width: 100%;
        font-size: 0.72em;
    }

    .menu-table td table.table thead {
        display: table-header-group;
    }

    .menu-table td table.table tbody {
        display: table-row-group;
    }

    .menu-table td table.table tr {
        display: table-row;
        border: 0;
        padding: 0;
    }

    .menu-table td table.table td,
    .menu-table td table.table th {
        display: table-cell;
        width: auto;
        text-align: center !important;
        padding: 0.15rem 0.25rem;
        white-space: nowrap;
    }

    .menu-table td table.table td::before,
    .menu-table td table.table th::before {
        content: none;
    }

    .menu-info-row .menu-action-group {
        margin-top: 0.25rem;
    }
}



/* =============================================
   REPORT FILTER INLINE
   ============================================= */
.report-filter {
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
}

.report-filter .col-auto {
    flex: 0 1 auto;
}

.report-filter input[type="date"] {
    font-size: 0.75rem;
    padding: 0.2rem 0.3rem;
}

.report-filter .btn {
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.report-filter .form-select {
    font-size: 0.75rem;
    padding: 0.2rem 0.3rem;
}

@media (orientation: portrait) {
    .report-filter input[type="date"] {
        font-size: 0.65rem;
        padding: 0.15rem 0.15rem;
        min-width: 0;
        max-width: 115px;
    }

    .report-filter .btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .report-filter .form-select {
        font-size: 0.65rem;
        padding: 0.15rem 0.15rem;
        min-width: 70px !important;
    }

    .report-filter .form-label {
        font-size: 0.6rem !important;
    }
}

/* =============================================
   MISC
   ============================================= */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Scrollable Dashboard Tables */
.scrollable-table-container {
    max-height: 180px;
    /* Approx 3.5 rows */
    overflow-y: auto;
    position: relative;
}

.scrollable-table-container thead th {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
    box-shadow: inset 0 -1px 0 var(--border-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h5 {
    font-weight: 600;
    margin: 0;
}

/* Print styles */
@media print {

    .sidebar,
    .top-navbar,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .receipt {
        box-shadow: none;
        border: none;
    }
}

.menu-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-stacked-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
}

.menu-stacked-row.is-unavailable {
    opacity: 0.65;
}

.menu-stacked-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-stacked-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   OFFLINE / NETWORK STATUS UI
   ============================================= */

/* Server Status Dot Indicator (like BCA Mobile) */
.server-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 6px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: none;
    transition: background 0.4s, border-color 0.4s;
    cursor: default;
    user-select: none;
}

.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #aaa;
    transition: background 0.4s;
}

.server-status-indicator.srv-online {
    background: transparent;
    border-color: transparent;
    color: #00a281;
}

.server-status-indicator.srv-online .server-status-dot {
    background: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.25);
    animation: dotPulseGreen 2s ease-in-out infinite;
}

.server-status-indicator.srv-offline {
    background: transparent;
    border-color: transparent;
    color: #c0392b;
}

.server-status-indicator.srv-offline .server-status-dot {
    background: #e17055;
    box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.25);
    animation: dotPulseRed 1.2s ease-in-out infinite;
}

@keyframes dotPulseGreen {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 184, 148, 0.05);
    }
}

@keyframes dotPulseRed {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.3);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(225, 112, 85, 0.05);
    }
}

[data-theme="light"] .server-status-indicator {
    background: transparent;
    border-color: transparent;
    color: #555;
}

[data-theme="light"] .server-status-indicator.srv-online {
    color: #007a5e;
}

[data-theme="light"] .server-status-indicator.srv-offline {
    color: #c0392b;
}

/* Offline Banner */
.offline-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e17055, #d63031);
    /* color: #fff; */
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: offlinePulse 2s ease-in-out infinite;
    z-index: 1050;
}

.offline-banner-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes offlinePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Network Indicator */
.network-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    margin-right: 8px;
}

.network-indicator.online {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.network-indicator.offline {
    background: rgba(225, 112, 85, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(225, 112, 85, 0.3);
    animation: offlineGlow 1.5s ease-in-out infinite;
}

@keyframes offlineGlow {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(225, 112, 85, 0.2);
    }

    50% {
        box-shadow: 0 0 12px rgba(225, 112, 85, 0.5);
    }
}

/* Pending count badge */
.offline-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent-warning);
    color: #1a1d27;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 2px;
}

/* Offline sync note in success modal */
.offline-sync-note {
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Light theme adjustments */
[data-theme="light"] .offline-banner {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: #fff;
}

[data-theme="light"] .network-indicator.online {
    background: rgba(0, 184, 148, 0.1);
    color: #00a281;
    border-color: rgba(0, 184, 148, 0.3);
}

[data-theme="light"] .network-indicator.offline {
    background: rgba(225, 112, 85, 0.1);
    color: #c0392b;
    border-color: rgba(225, 112, 85, 0.3);
}

[data-theme="light"] .offline-pending-badge {
    background: #f39c12;
    color: #fff;
}

/* =============================================
   MODIFIER GROUP TABS - Horizontal Scrollable
   ============================================= */
.modifier-group-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    padding-bottom: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.modifier-group-tabs::-webkit-scrollbar {
    height: 4px;
}

.modifier-group-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.modifier-group-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modifier-group-tab {
    flex-shrink: 0;
    padding: 7px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modifier-group-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.modifier-group-tab.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.modifier-tab-badge {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-weight: 600;
}

.modifier-group-tab.active .modifier-tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Modifier option rows */
.modifier-group-pane {
    padding: 4px 0;
}

.modifier-option-row {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: background 0.15s;
}

.modifier-option-row:hover {
    background: var(--bg-hover);
}

.modifier-opt-name {
    font-weight: 500;
}

.modifier-opt-price {
    color: var(--accent-warning);
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Light theme */
[data-theme="light"] .modifier-group-tab {
    background: #f0f0f0;
    color: #555;
    border-color: #ddd;
}

[data-theme="light"] .modifier-group-tab:hover {
    background: #e0e0ff;
    border-color: #6c5ce7;
}

[data-theme="light"] .modifier-group-tab.active {
    background: #6c5ce7;
    color: #fff;
}

[data-theme="light"] .modifier-option-row:hover {
    background: #f5f5ff;
}

[data-theme="light"] .modifier-opt-price {
    color: #e67e22;
}

/* Clickable stat card */
.stat-card-clickable {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.stat-card-clickable:active {
    transform: translateY(0);
}

/* Low stock menus column */
.low-stock-menus {
    max-width: 320px;
    line-height: 1.8;
}

/* Transaction history toggle detail */
.trx-toggle-icon {
    transition: transform 0.2s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.toggle-detail:hover .trx-toggle-icon {
    color: var(--accent-primary);
}

.trx-detail-row>td {
    border-top: none !important;
    background: var(--bg-tertiary);
}

.trx-detail-content table {
    background: transparent !important;
}

.trx-detail-content table th,
.trx-detail-content table td {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Light theme overrides */
[data-theme="light"] .trx-toggle-icon {
    color: #6c757d;
}

[data-theme="light"] .toggle-detail:hover .trx-toggle-icon {
    color: #0d6efd;
}

[data-theme="light"] .trx-detail-row>td {
    background: #f8f9fa;
}

[data-theme="light"] .trx-detail-content table th,
[data-theme="light"] .trx-detail-content table td {
    color: #212529;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Shake animation for required modifier buttons */
@keyframes cf-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* =============================================
   UTILITIES & HELPERS
   ============================================= */
.cursor-pointer {
    cursor: pointer;
}

.bg-tertiary {
    background-color: var(--bg-tertiary) !important;
}

/* Password Toggle Styling */
#togglePassword {
    border-left: none;
    transition: color 0.2s ease;
}

#togglePassword:hover {
    color: var(--accent-primary);
}

#password.border-end-0:focus {
    border-right-color: var(--border-color) !important;
}

#password.border-end-0:focus+#togglePassword {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.15);
    border-left: none;
}

/* =============================================
   PWA & MOBILE ENHANCEMENTS
   ============================================= */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .top-navbar {
        padding-top: calc(env(safe-area-inset-top) + 0.75rem);
    }
}

.offline-banner {
    background: linear-gradient(135deg, var(--accent-danger), #b33939);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: var(--navbar-height);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

#localTxBadge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-info);
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 1050;
    cursor: pointer;
    transition: all 0.3s ease;
}

#localTxBadge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

#localTxBadge i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}