/* =========================================
   GLOBAL FIX
   Without this, any element combining
   width:100% with padding will overflow its
   flex/grid container and knock siblings out
   of alignment.
========================================= */

.relay-dashboard,
.relay-dashboard * {
    box-sizing: border-box;
}

/* =========================================
   RELAY SHARED LAYOUT
   Switched to CSS Grid so the sidebar and
   main content column are always forced to
   the same height, regardless of how much
   content either one has.
========================================= */

.relay-dashboard {
    display: flex;
	align-items: stretch;
	width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    margin: -15px;
    background: #f8fafc;
    font-family: Arial, sans-serif;
}


/* =========================================
   SHARED MAIN AREA
========================================= */

.relay-main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.relay-main {
    flex: 1;
    min-height: 0;
    padding: 25px 28px;
    overflow-x: auto;
    overflow-y: auto;
    background-color: #f8fafc;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16), transparent 55%);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    /* .relay-dashboard is a flex row, not a grid — sizing the
       sidebar directly is what actually narrows it here. */
    .relay-sidebar {
        width: 190px;
        min-width: 190px;
    }

    .relay-main {
        padding: 22px 20px;
    }

}


@media (max-width: 750px) {

    .relay-dashboard {
         height: calc(100vh - 70px);
    }

    .relay-sidebar {
        display: none;
    }

    .relay-main {
        padding: 20px;
    }

}


@media (max-width: 480px) {

    .relay-main {
        padding: 14px;
    }

}
