
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');


/* * ibm.css - POS Branding System
 * Base Color: rgb(52, 199, 89)
 * Border Radius: 2px (rounded-xs)
 */

 :root {
    --brand-color: rgb(52, 199, 89);
    --brand-hover: rgb(42, 180, 75);
    --brand-light: rgba(52, 199, 89, 0.1);
    --radius-xs: 0.5rem !important;
    --radius-lg: 0.5rem;   /* Untuk Card Utama & Button */
    --radius-md: 0.5rem;   /* Untuk Input & Inner Elements */
    --radius-sm: 0.5rem;   /* Untuk Badge & Small Elements */
    --brand-color-light: rgba(16, 185, 129, 0.1);
    --brand-gradient: linear-gradient(135deg, var(--brand-color) 0%, #059669 100%);
}

body { 
font-family: 'Plus Jakarta Sans', sans-serif; 
font-size: 13px;
font-weight: 600;
color: #1e293b !important;
}

.bg-green
{
    background-image: linear-gradient(135deg, var(--brand-color) 0%, #059669 100%);
    transition: opacity 0.3s ease;
}

.bg-green:hover {
    opacity: 0.8;
}   
.rounded-1rem { border-radius: 0.5rem !important; }
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 1rem; }
.cat-btn.active { background-color: #4f46e5; color: white; border-color: #4f46e5; }

/* --- RESET & BASE --- */
.rounded-xs { 
    border-radius: var(--radius-xs) !important; 
}



/* --- KATEGORI (Tab Pill Gray Style) --- */
.category-wrapper {
    display: flex;
    align-items: center;
    background-color: #f1f5f9; /* slate-100 */
    padding: 6px;
    border-radius: var(--radius-xs);
    gap: 6px;
    width: max-content;
    min-width: 100%;
}

.cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-xs);
    color: #94a3b8; /* slate-400 */
    background-color: transparent;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Kategori Aktif (Floating White) */
.cat-btn.active {
    background-color: #ffffff !important;
    color: var(--brand-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.05) !important;
}

/* Badge Angka di Kategori */
.badge-pill {
    margin-left: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px; /* Tetap bulat sempurna untuk badge */
    font-size: 9px;
    font-weight: 900;
    background-color: #e2e8f0; /* slate-200 */
    color: #64748b; /* slate-500 */
    transition: 0.2s;
}

.cat-btn.active .badge-pill {
    background-color: var(--brand-color);
    color: #ffffff;
}

/* --- KERANJANG & TOUCHSPIN --- */
.cart-item {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-xs);
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cart-product-name {
    font-size: 13px;
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
}

/* TouchSpin Style (Plus-Minus) */
.touchspin-container {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: var(--radius-xs);
    overflow: hidden;
    background-color: #ffffff;
}

.touchspin-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #475569;
    font-weight: bold;
    font-size: 16px;
    transition: 0.2s;
}

.touchspin-btn:hover {
    background-color: var(--brand-color);
    color: #ffffff;
}

.touchspin-input {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    background-color: transparent;
    outline: none;
}

/* --- TOMBOL UTAMA & BRANDING --- */
.bg-brand {
    background: var(--brand-gradient) !important;
    border: none !important;
}

.text-brand {
    color: var(--brand-color) !important;
}

#btn-pay {
    border-radius: var(--radius-xs);
}

#btn-pay:hover:not(:disabled) {
    background: var(--brand-hover);
    box-shadow: 0 10px 15px -3px rgba(52, 199, 89, 0.3);
   
}

#btn-pay:disabled {
    cursor: not-allowed;
    font-size: 15px;
    font-weight: 600 !important;
}


#btn-pay:not(:disabled) {
    background: var(--brand-hover);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600 !important;
}

/* --- SIDEBAR CUSTOM --- */
.sidebar-white {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.sidebar-icon-active {
    background-color: var(--brand-light);
    color: var(--brand-color);
    border-left: 3px solid var(--brand-color);
}

/* Sidebar Logic for ibm.css */
.sidebar-white {
    background-color: #ffffff;
    z-index: 40;
}

.sidebar-icon-active {
    background-color: rgba(52, 199, 89, 0.1) !important; /* Brand opacity 10% */
    color: rgb(52, 199, 89) !important;
}

/* Animasi Tooltip agar meluncur ke kanan sedikit saat muncul */
.group:hover .scale-100 {
    opacity: 1;
    transform: translateX(5px) scale(1);
}

/* Efek hover pada teks menu */
.group:hover span {
    color: inherit;
}

/* keranjang  */

/* Update Styling Keranjang */
#cart-list {
    background-color: #f8fafc; /* Slate-50 */
}

.cart-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.cart-item:hover {
    border-color: #cbd5e1;
    transform: translateX(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.qty-btn-minimal {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    color: #475569;
    font-size: 10px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qty-btn-minimal:hover {
    background: #0f172a;
    color: white;
}


/* Item Barang  */
/* Styling Card Barang */
.item-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #e2e8f0;
}

/* Efek Hover Gambar */

.item-card img {
    transition: transform 0.5s ease;
}

/* Badge Stok Modern */
.stock-badge {
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

/* Harga Gradient - Disesuaikan dengan Brand Hijau */
.price-text {
    background: linear-gradient(135deg, var(--brand-color) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* Tambahan agar tidak terpotong pada beberapa browser */
    display: inline-block;
    letter-spacing: -0.02em;
}

/* End Item Barang  */


.text-brand { color: var(--brand-color); }
.bg-brand-light { background-color: var(--brand-color-light); }
.border-brand { border-color: var(--brand-color); }

#fab-count {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scale-125 {
    transform: scale(1.3);
}
 
.select2-container .select2-selection--single {
    height: 42px !important;
    border-radius: .5rem !important;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

/* ++++++++++++++++++++++++++++++++++++++++++ TABEL BARANG ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

        ::-webkit-scrollbar {
            width: 5px;
        }

        ::-webkit-scrollbar-thumb {
            background: #e2e8f0;
            border-radius: 10px;
        }

        /* DataTables Custom Styling */
        .dataTables_filter {
            display: none;
        }

        table.dataTable {
            border-collapse: separate !important;
            border-spacing: 0 !important;
            border: none !important;
        }

        .table-IBM {
            /*border-radius: 0.5rem;8*/
            overflow: hidden;
            /*border: 1px solid #f1f5f9;*/
        }

        .table-IBM thead th {
            background: #f8fafc;
            padding: 1.25rem 1.5rem !important;
            font-size: 10px;
            font-weight: 800;
            color: #64748b;
            border-bottom: 1px solid #f1f5f9 !important;
            text-transform: uppercase;
        }

        .table-IBM td {
            background: #fff;
            padding: .7rem 1.5rem !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            border-bottom: 0.5px solid #e2e8f0 !important;
        
        }

        .dataTables_info {
            font-size: 11px !important;
            font-weight: 400 !important;
            color: #94a3b8 !important;
            text-transform:none;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            border-radius: 0.5rem !important;
            border: 1px solid #e2e8f0 !important;
            background: white !important;
            font-size: 10px !important;
            font-weight: 800 !important;
            padding: 0.4rem 0.8rem !important;
            margin-left: 8px;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            color: #34c759 !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: #34c759 !important;
            color: white !important;
            border: none !important;
        }

        .table-row-hover:hover {
            background-color: #fcfdfc !important;
        }
  
/* ++++++++++++++++++++++++++++++++++++++++++ TABEL BARANG ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/        