/* =========================================================
   GLOBAL
   ========================================================= */

*{
    box-sizing:border-box;
}

html{
    margin:0;
    padding:0;
}

body{
    margin:0;
    padding:0;

    font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;

    background:#f4f6f5;

    color:#17231e;
}


/* =========================================================
   MAPLECRESTMEDIA HEADER
   ========================================================= */

.mc-header{
    width:100%;

    min-height:72px;

    padding:10px 28px;

    background:#101b17;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:32px;

    border-bottom:1px solid rgba(255,255,255,.06);
}


/* =========================================================
   BRAND
   ========================================================= */

.mc-brand{
    display:flex;

    align-items:center;

    gap:12px;

    flex-shrink:0;
}


/* =========================================================
   MAPLE LEAF IMAGE
   ========================================================= */

.mc-leaf-logo{
    width:50px;
    height:50px;

    min-width:50px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex:0 0 50px;

    overflow:hidden;
}

.mc-leaf-logo img{
    display:block;

    width:50px;
    height:50px;

    max-width:50px;
    max-height:50px;

    object-fit:contain;

    object-position:center;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.mc-brand-text{
    display:flex;

    flex-direction:column;

    justify-content:center;

    line-height:1.05;
}

.mc-brand-text strong{
    display:block;

    margin:0;

    color:#ffffff;

    font-size:18px;

    font-weight:750;

    letter-spacing:.1px;

    white-space:nowrap;
}

.mc-brand-text span{
    display:block;

    margin-top:5px;

    color:#aebbb5;

    font-size:11px;

    font-weight:500;

    letter-spacing:.35px;

    white-space:nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.mc-nav{
    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:19px;
}

.mc-nav a{
    color:#ffffff;

    text-decoration:none;

    font-size:14px;

    font-weight:500;

    opacity:.78;

    transition:
        opacity .15s ease,
        color .15s ease;
}

.mc-nav a:hover{
    color:#ffffff;

    opacity:1;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

main{
    max-width:1200px;

    margin:30px auto;

    padding:0 20px;
}

main h1{
    margin-top:0;

    margin-bottom:24px;

    color:#17231e;

    font-size:30px;

    line-height:1.2;

    letter-spacing:-.5px;
}


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.cards{
    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:16px;

    margin:24px 0;
}

.card,
.coming,
.health{
    background:#ffffff;

    border:1px solid #dce3df;

    border-radius:10px;

    padding:20px;
}

.card b{
    display:block;

    font-size:30px;

    line-height:1.2;
}

.card span{
    color:#66736d;
}


/* =========================================================
   TABLES
   ========================================================= */

table{
    width:100%;

    border-collapse:collapse;

    background:#ffffff;
}

th,
td{
    padding:11px;

    text-align:left;

    border-bottom:1px solid #e7ebe9;
}

th{
    background:#eef2f0;

    font-weight:650;
}


/* =========================================================
   HEALTH
   ========================================================= */

.health.ok{
    border-left:5px solid #2f7256;
}

.health.bad{
    border-left:5px solid #8b3131;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login{
    min-height:100vh;

    display:grid;

    place-items:center;

    background:#101b17;
}

.loginbox{
    width:min(390px,90vw);

    padding:34px;

    background:#ffffff;

    border-radius:12px;
}

.loginbox label{
    display:block;

    margin:16px 0;
}

.loginbox input{
    display:block;

    width:100%;

    margin-top:5px;

    padding:11px;
}

.loginbox button{
    width:100%;

    padding:12px;

    background:#173c2e;

    color:#ffffff;

    border:0;

    border-radius:6px;

    cursor:pointer;
}

.error{
    padding:10px;

    background:#fdeaea;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer{
    padding:30px;

    text-align:center;

    color:#78837e;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:900px){

    .mc-header{
        gap:20px;
    }

    .mc-nav{
        gap:13px;
    }

    .cards{
        grid-template-columns:repeat(2,1fr);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:760px){

    .mc-header{
        display:block;

        min-height:auto;

        padding:12px 20px;
    }

    .mc-brand{
        width:100%;
    }

    .mc-leaf-logo{
        width:44px;
        height:44px;

        min-width:44px;

        flex-basis:44px;
    }

    .mc-leaf-logo img{
        width:44px;
        height:44px;

        max-width:44px;
        max-height:44px;
    }

    .mc-brand-text strong{
        font-size:17px;
    }

    .mc-nav{
        margin-top:14px;

        justify-content:flex-start;

        flex-wrap:wrap;

        gap:10px 16px;
    }

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    table{
        display:block;

        overflow:auto;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px){

    .cards{
        grid-template-columns:1fr;
    }

    main{
        margin-top:24px;
    }
}
/* =====================================================
   MCOO LOGIN BRAND
   ===================================================== */

.login .loginbox {
    width: min(100% - 32px, 460px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.login-brand .login-logo {
    display: block;
    width: 68px;
    height: 68px;
    max-width: 68px;
    max-height: 68px;
    object-fit: contain;
    flex: 0 0 68px;
}

.login-brand h1 {
    margin: 0 0 5px 0;
    line-height: 1;
}

.login-brand p {
    margin: 0;
}