/* --- GLOBAL LAYOUT --- */
body {
    background-color: #f4f7f6;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.page-wrapper {
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* --- BRANDING & NAVBAR --- */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand { 
    font-weight: 700; 
    color: #0d6efd !important; 
}

/* --- DASHBOARD CARDS (index.php) --- */
.hover-elevate {
    transition: all 0.2s ease-in-out;
}
.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    background-color: #fff;
}

/* --- TABULATOR ENHANCEMENTS --- */
.tabulator {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6 !important;
    background-color: white !important;
    font-size: 13px;
}

.tabulator-header {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-top: 1px solid #dee2e6 !important;
}

.tabulator-row {
    border-bottom: 1px solid #f1f3f5 !important;
}

.tabulator-row:hover { 
    background-color: #f1f8ff !important; 
}

/* --- FILTER BOXES (Standardized) --- */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.filter-box {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px;
}

.filter-box .header {
    font-weight: bold;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

/* --- PRODUCT THUMBNAILS --- */
.thumb-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* --- MODALS & METRICS --- */
.modal-header { 
    background: #f8f9fa; 
    border-bottom: 1px solid #eee; 
}

.metric-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* --- HEADER MENU (The ⋮ Menu) --- */
.tabulator-menu {
    min-width: 220px;
    z-index: 10000;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .page-wrapper { padding: 10px; }
    .fs-1 { font-size: 2rem !important; }
    .filter-box { min-width: 100%; }
}
