/* ==========================================================================
   BOTTOM NAVIGATION (mobile only, all frontend pages)
   ========================================================================== */
.ecoe-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
}

.ecoe-bottom-nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 2px;
}

.ecoe-bottom-nav-item i {
    font-size: 20px;
}

.ecoe-bottom-nav-item.active {
    color: var(--primary-color, #000);
}

.ecoe-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color, #000);
}

@media (min-width: 992px) {
    .ecoe-bottom-nav {
        display: none !important;
    }
}

body {
    padding-bottom: 64px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   FULLSCREEN MENU OVERLAY (opened from the Grid icon)
   ========================================================================== */
.ecoe-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .25s ease;
}

.ecoe-menu-overlay.showed {
    transform: translateY(0);
}

.ecoe-menu-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}

.ecoe-menu-overlay-header a {
    color: #111;
    font-size: 22px;
}

.ecoe-menu-overlay-body {
    padding: 12px 8px;
    overflow-y: auto;
    flex: 1;
}

.ecoe-menu-overlay-body .list-group-item {
    border: none;
    padding: 14px 12px;
    font-size: 15px;
}

.ecoe-menu-overlay-body .list-group-item a {
    color: #111;
    text-decoration: none;
    display: block;
}

/* ==========================================================================
   MEMBER TAB NAVIGATION (replaces the old left sidebar)
   ========================================================================== */
.member-profile-header .member-pic {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
}

.member-email-text {
    font-size: 12px;
}

.member-points-link {
    color: inherit;
}

.member-qr-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.point-history-card {
    cursor: default;
}

.member-avatar-initial {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: var(--primary-color, #000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    overflow: hidden;
}

.member-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #6b7280;
    font-size: 18px;
    text-decoration: none;
}

.member-logout-btn:hover {
    background: #f1f3f5;
    color: #111;
}

.order-status-badge {
    font-size: 11px;
    padding: 3px 8px !important;
}

.dashboard-menu-card {
    transition: box-shadow .15s ease, transform .15s ease;
}

.dashboard-menu-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.transaction-row {
    cursor: pointer;
}

.transaction-card {
    cursor: pointer;
}

.product-thumbnail-group {
    display: flex;
}

.product-thumbnail-multi {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: -10px;
    border: 2px solid #fff;
}

.transaction-card .product-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
}

.transaction-order-id {
    font-size: 12px;
}

.transaction-title {
    margin-top: 8px;
}

.transaction-date-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f5;
}

/* ==========================================================================
   MOBILE STATUS TAGS — shrink every "status-*" pill on customer-facing
   pages so it doesn't dominate a list row on small screens.
   ========================================================================== */
@media (max-width: 991px) {
    [class^="status-"],
    [class*=" status-"] {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
}

/* ==========================================================================
   DATATABLE STYLE PARITY WITH BACKEND ADMIN
   Ported from public/css/backend.css so every celeb-table / DataTables
   instance on the customer side matches the BO look (header shading,
   borderless bordered-table look, row padding, pagination active state).
   ========================================================================== */
.table-bordered > :not(caption) > * > * {
    border-width: 0 !important;
}

.table-bordered > :not(caption) > * {
    border-color: #ecf2f6;
}

.table tbody {
    border-top: none !important;
}

.table tbody tr td {
    font-size: 14px;
    padding: 6px 12px;
}

.table tbody tr td .my-btn-primary {
    font-size: 12px;
    padding: 6px 12px;
}

.table thead {
    background: #ecf2f6;
    border: solid 1px #d6e0e7;
    border-top: none !important;
}

.table thead tr {
    background: #ecf2f6;
    border: none;
}

.table thead tr th {
    border: solid 1px #d6e0e7;
}

.page-item.active .page-link {
    background-color: #ecf2f6;
    border-color: #ecf2f6;
    color: #000;
}

.dt-processing.card {
    display: none !important;
}
