/*
 * File Path: assets/css/admin/dashboard/dashboard-layout.css
 * Dashboard -- Layout shell, card base styles, grid column wrapper.
 * Component of mbs-admin-dashboard.css (R-014).
 */

/* ── Layout shell ─────────────────────────────────────────────────────────── */
.mbs-dashboard-wrapper {
    margin: 20px 20px 0 0;
}

.mbs-dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1199px) {
    .mbs-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.mbs-dashboard-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.mbs-dashboard-card h2,
.mbs-dashboard-card h3 {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}


/* ── Grid column children ─────────────────────────────────────────────────── */
.mbs-dashboard-col {
    min-width: 0; /* prevent grid blowout */
}
/* ── Dashboard header zone (logo + action bar) ────────────────────────────── */
.mbs-header-zone {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
}

.mbs-header-logo {
    flex-shrink: 0;
    width: 210px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,.13);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.mbs-dashboard-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .mbs-header-zone {
        flex-direction: column;
    }

    .mbs-header-logo {
        width: auto;
        padding: 10px 20px;
    }

    .mbs-dashboard-logo {
        max-height: 80px;
        width: auto;
        margin: 0 auto;
    }
}
