/* ============================
   GLOBAL RESET (SAFE)
============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
}

/* ===============================
   MOBILE DASHBOARD – ALWAYS 3 GRID
   (NO BOOTSTRAP INTERFERENCE)
================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

/* 🚫 DO NOT ALLOW 1 OR 2 COLUMNS EVER */
@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===============================
   DASHBOARD TILE (APP STYLE)
================================ */

/* TILE */
.mobile-menu-tile {
    display: block;          /* ← RESET BOOTSTRAP FIRST */
    height: 110px;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    padding: 0;
    margin: 0;

    position: relative;      /* ← KEY LINE */
}


/* WRAPPER — this is what we center */

.mobile-menu-content {
    position: absolute;       
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ICON */
.mobile-menu-icon img {
    height: 28px;
    width: auto;
    display: block;
}

.mobile-menu-icon {
    margin-bottom: 6px;
}

.mobile-menu-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* ============================
   CARD (GLOBAL)
============================ */
.card {
    border-radius: 14px;
    border: none;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* ============================
   APP CONTAINER
============================ */
.app-container {
    padding-bottom: 16px;
}

/* ============================
   HIDE DESKTOP SIDEBAR ON MOBILE
============================ */
@media (max-width: 768px) {
    .sidebar-admin {
        display: none !important;
    }
}
/* ===============================
   FORCE APP TILE CENTER (FINAL)
================================ */
.dashboard-grid .mobile-menu-tile{
    display:block !important;
    position:relative !important;
    height:110px !important;
    padding:0 !important;
}

.dashboard-grid .mobile-menu-content{
    position:absolute !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
}

.dashboard-grid .mobile-menu-icon{
    font-size:28px !important;
    margin-bottom:6px !important;
}

.dashboard-grid .mobile-menu-text{
    font-size:13px !important;
    font-weight:600 !important;
    text-align:center !important;
}
