:root {
    --primary-color: #4318FF;
    --primary-gradient: linear-gradient(135deg, #4318FF 0%, #396AFB 100%);
    --primary-light: rgba(67, 24, 255, 0.06);
    --bg-color: #f4f7fe;
    --text-main: #2b3674;
    --text-muted: #a3aed1;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 15px rgba(67, 24, 255, 0.05);
    --shadow-lg: 0 12px 30px rgba(67, 24, 255, 0.12);
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    /* Padding bawah ditambah agar konten terbawah tidak tertutup footer fixed */
    padding: 40px 15px 80px 15px; 
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container diperlebar agar full & proporsional di PC */
.main-container {
    width: 100%;
    max-width: 95%; 
}

/* Header Modern */
header {
    text-align: center;
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 30px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

/* Garis aksen di atas header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Section Title */
.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 35px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
}

/* Grid - Otomatis menyesuaikan layar (PC & HP) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

/* Card Style */
.menu-card {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(67, 24, 255, 0.2);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* Pembungkus Ikon */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.menu-card:hover .icon-box {
    background: var(--primary-gradient);
}

/* Pengaturan ikon FontAwesome */
.menu-card i {
    font-size: 1.7rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-card:hover i {
    color: white;
}

/* Pengaturan logo operator agar tidak blank putih saat di-hover */
.icon-box img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.menu-card:hover .icon-box img {
    transform: scale(1.15) rotate(3deg);
}

.menu-card span {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Footer Permanen (Fixed) */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid #e9ecef;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
    z-index: 1000;
}

/* Penyesuaian khusus untuk HP layar sangat kecil */
@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr); /* Paksa 2 kolom di HP */
        gap: 12px;
    }
    .menu-card {
        padding: 18px 10px;
    }
    .icon-box {
        width: 50px;
        height: 50px;
    }
    .menu-card i {
        font-size: 1.4rem;
    }
    .icon-box img {
        width: 28px;
        height: 28px;
    }
    .menu-card span {
        font-size: 0.8rem;
    }
    .fixed-footer {
        flex-direction: column;
        gap: 2px;
        text-align: center;
        padding: 8px 10px;
    }
}

/* css style truk */
/* Tambahan Utility / Specific Style untuk Halaman Struk / Login Box */
body.auth-layout {
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px 80px 15px; /* Memberikan ruang untuk fixed footer */
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(67, 24, 255, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.login-header {
    background: var(--primary-gradient);
    color: white;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.btn-info-custom {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-info-custom:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.login-body {
    padding: 24px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #e0e5f2;
    padding: 11px 16px;
    font-size: 0.85rem;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
    background-color: white;
}

/* Nav Tabs Styling */
.nav-pills {
    background: #f4f7fe;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid #e0e5f2;
}

.nav-pills .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    padding: 10px;
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.25);
}

.tab-content {
    padding-top: 15px;
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 24, 255, 0.35);
    color: white;
}

/* Modal Custom Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header-custom {
    background: var(--primary-gradient);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-body {
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}


/* css style filter_struk */
:root {
    --primary-color: #4318FF;
    --primary-gradient: linear-gradient(135deg, #4318FF 0%, #396AFB 100%);
    --bg-color: #f4f7fe;
    --text-main: #2b3674;
    --text-muted: #a3aed1;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    padding-bottom: 90px; 
}

/* Header */
.top-header {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(67, 24, 255, 0.15);
    z-index: 1020;
}

.top-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.btn-back {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.content-wrapper {
    padding-top: 20px;
}

/* Desktop Table Styling */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.table-custom {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    padding: 18px 20px;
    white-space: nowrap;
}

.table-custom tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
}

.table-custom tbody tr:hover td {
    background-color: #f8faff;
}

/* Mobile Card Styling (Default Hidden on Desktop) */
.mobile-card-container {
    display: none;
}

.trx-mobile-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.trx-mobile-card:active {
    transform: scale(0.99);
}

/* Tombol Aksi */
.btn-action {
    background: rgba(67, 24, 255, 0.1);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 18px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2);
}

.badge-price {
    background: rgba(5, 205, 153, 0.1);
    color: #05CD99;
    border: 1px solid rgba(5, 205, 153, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
}

/* Search Bar */
.search-wrapper {
    background: white;
    border-radius: 50px;
    padding: 4px 6px;
    border: 1px solid #e0e5f2;
    transition: all 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.search-wrapper .form-control {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    padding-left: 8px;
}

.search-wrapper .form-control:focus {
    box-shadow: none;
}

/* Animasi */
.fade-in-row {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-custom {
    background: white;
    border: none;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    color: #475467;
}

/* Pagination */
.pagination .page-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Footer Permanen */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #e9ecef;
    padding: 10px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
    z-index: 1010;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Media Query untuk Perangkat Mobile (Layar < 768px) */
@media (max-width: 767.98px) {
    .desktop-table-container {
        display: none !important;
    }
    .mobile-card-container {
        display: block !important;
    }
    .filter-section {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }
    .search-wrapper {
        width: 100% !important;
    }
    .pagination-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .fixed-footer {
        flex-direction: column;
        text-align: center;
        gap: 3px;
        padding: 8px 10px;
    }
    body {
        padding-bottom: 110px;
    }
}


/* css style docs */
