﻿.fw-bold {
    font-weight: 700 !important;
}

body {
    font-family: var(--jpn-font-family, "Inter", "Noto Sans JP", "Roboto", system-ui);
    color: var(--jpn-text, #111111);
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: var(--jpn-text, #111111);
    font-weight: var(--jpn-font-weight-medium, 500);
}
/*
div::-webkit-scrollbar, ul::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

div::-webkit-scrollbar-thumb, ul::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px
}

    div::-webkit-scrollbar-thumb:hover, ul::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,.5)
    }*/

.fa-sync-alt.fa-spin {
    margin-left: 5px;
}

#toast-container > div {
    opacity: 1;
    box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;
}

.form-control,
.bootstrap-select > .dropdown-toggle {
    padding: var(--jpn-spacing-sm, 0.75rem) var(--jpn-spacing-md, 1rem);
    min-height: var(--jpn-touch-min, 44px);
    line-height: 1.6;
    font-family: var(--jpn-font-family, inherit);
}

.col-form-label {
    padding-top: calc(0.5rem + 1px);
    padding-bottom: calc(0.5rem + 1px);
}

.form-label {
    margin-bottom: 0.25rem;
}

#myForm .col-form-label {
    text-align: right;
}

/* table */
.table {
    color: var(--jpn-text, #111111);
    font-family: var(--jpn-font-family, inherit);
}

    .table th {
        /*white-space: nowrap;*/
        text-align: center;
        vertical-align: middle;
        min-width: 85px;
    }

/*th:first-child, td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: #f8f9fa;
}*/

/* sticky head */
.table-fit {
    overflow: auto;
}

    .table-fit thead {
        position: sticky;
        top: -1px;
        z-index: 1;
        background-color: var(--jpn-bg-secondary, #f5f5f5);
    }

/* card fit height */
.table-fit {
    max-height: calc(100vh - 65px) !important;
}

.scroll-wrapper {
    position: fixed;
    bottom: 0; /* Để neo cố định ở đầu, nếu muốn ở cuối thì đổi thành bottom: 0; */
    left: 0;
    width: 100%;
    overflow-x: auto;
    z-index: 9999; /* Đảm bảo luôn hiển thị trên cùng */
    background-color: #f8f9fa; /* Màu nền của thanh cuộn */
}

.table > :not(caption) > * > *, .dataTable-table > :not(caption) > * > * {
    padding: 0.2rem 0.4rem;
}

table td {
    line-height: 1.35;
}

table .scroll-cell {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 3rem;
}

.bootstrap-select .dropdown-menu li a span.text {
    white-space: normal;
}

/* POS Menu Styles - Mobile App Style */
.pos-menu-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem;
}

.pos-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--jpn-text-secondary, #9e9e9e);
    transition: var(--jpn-transition, all 0.2s ease);
    padding: var(--jpn-spacing-sm, 0.75rem);
    border-radius: var(--jpn-radius-md, 6px);
    min-width: 60px;
}

    .pos-menu-item:hover {
        color: var(--jpn-primary, #C8102E);
        background-color: transparent;
        text-decoration: none;
    }

.pos-menu-icon {
    width: var(--jpn-touch-comfort, 48px);
    height: var(--jpn-touch-comfort, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--jpn-bg-secondary, #f5f5f5);
    transition: var(--jpn-transition, all 0.2s ease);
    margin-bottom: var(--jpn-spacing-xs, 0.5rem);
}

.pos-menu-item:hover .pos-menu-icon {
    background-color: var(--jpn-primary, #C8102E);
    color: var(--jpn-text-light, #ffffff);
    transform: scale(1.05);
    box-shadow: var(--jpn-shadow, 0 2px 4px rgba(17, 17, 17, 0.08));
}

.pos-menu-icon i {
    font-size: 1.25rem;
}

.pos-menu-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.pos-menu-item:hover .pos-menu-text {
    color: var(--jpn-primary, #C8102E);
    font-weight: var(--jpn-font-weight-semibold, 600);
}

/* Active state */
.pos-menu-item.active .pos-menu-icon {
    background-color: var(--jpn-primary, #C8102E);
    color: var(--jpn-text-light, #ffffff);
}

    .pos-menu-item.active .pos-menu-text {
        color: var(--jpn-primary, #C8102E);
        font-weight: var(--jpn-font-weight-semibold, 600);
    }

@media (max-width: 768px) {
    .pos-menu-container {
        gap: 0;
        padding: 0.25rem;
    }

    .pos-menu-item {
        min-width: 50px;
        padding: 0;
    }

    .pos-menu-icon {
        width: 40px;
        height: 40px;
    }

        .pos-menu-icon i {
            font-size: 1rem;
        }

    .pos-menu-text {
        font-size: 0.65rem;
    }
}

/* Badge Status Classes */
/* EPaymentStatus */
.badge-EPaymentStatus-Paid {
    background-color: #198754;
    color: white;
}

.badge-EPaymentStatus-Pending {
    background-color: #ffc107;
    color: #000;
}

.badge-EPaymentStatus-Cancelled {
    background-color: #dc3545;
    color: white;
}

/* EOrderStatus */
.badge-EOrderStatus-Pending {
    background-color: #ffc107;
    color: #000;
}

.badge-EOrderStatus-InProgress {
    background-color: #0dcaf0;
    color: #000;
}

.badge-EOrderStatus-Completed {
    background-color: #198754;
    color: white;
}

.badge-EOrderStatus-Paid {
    background-color: #0d6efd;
    color: white;
}

.badge-EOrderStatus-Cancelled {
    background-color: #dc3545;
    color: white;
}

/* EOrderItemStatus */
.badge-EOrderItemStatus-Pending {
    background-color: #ffc107;
    color: #000;
}

.badge-EOrderItemStatus-InKitchen {
    background-color: #0dcaf0;
    color: #000;
}

.badge-EOrderItemStatus-Ready {
    background-color: #198754;
    color: white;
}

.badge-EOrderItemStatus-Served {
    background-color: #0d6efd;
    color: white;
}

.badge-EOrderItemStatus-Cancelled {
    background-color: #dc3545;
    color: white;
}

.badge-EOrderItemStatus-Served {
    background-color: #198754;
    color: white;
}

/* ETableStatus */
.badge-ETableStatus-Available {
    background-color: #198754;
    color: white;
}

.badge-ETableStatus-Occupied {
    background-color: #ffc107;
    color: #000;
}


/* ============================================
   Mobile Sidebar Common Styles
   ============================================ */
.mobile-sidebar {
    transition: transform 0.3s ease-in-out;
}

/* Desktop: Sticky top */
@media (min-width: 992px) {
    .mobile-sidebar {
        position: sticky;
        top: 80px;
        align-self: flex-start;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

/* Mobile Sidebar - Responsive */
@media (max-width: 991.98px) {
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--jpn-bg, #ffffff);
        z-index: 1050;
        transform: translateX(-100%);
        overflow-y: auto;
        box-shadow: var(--jpn-shadow-md, 0 4px 8px rgba(17, 17, 17, 0.1));
    }

        .mobile-sidebar.show {
            transform: translateX(0);
        }

        .mobile-sidebar .card {
            border: none;
            border-radius: 0;
            height: 100%;
            margin: 0;
        }

        .mobile-sidebar .card-header {
            position: sticky;
            top: 0;
            background: var(--jpn-bg, #ffffff);
            z-index: 1;
            border-bottom: 1px solid var(--jpn-border, #e0e0e0);
        }
}

@media (min-width: 992px) {
    .sidebar-overlay {
        display: none !important;
    }
}