/*
███████████████████████████████████████████
████████████     @IMPORTS      ████████████
███████████████████████████████████████████
/*░░░░░░░░░░     RESET CSS     ░░░░░░░░░░░*/
@import url(./reset.css);

/*░░░░░░░░░░    LOCAL FONTS    ░░░░░░░░░░░*/
/* @import url(./fonts.css); */

/*░░░░░░░░░░    GOOGLE FONTS   ░░░░░░░░░░░*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;800;900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;900&display=swap'); */

/*
███████████████████████████████████████████
████████████     VARIABLES     ████████████
███████████████████████████████████████████
*/
:root {
    --title-font: 'Helvetica';
    --body-font: 'Roboto';
    --special-font: ;

    --primary-custom-color: #ad0000;
    --primary-custom-darken-color: #6f0000;

    --second-custom-color: #005cad;
    --second-custom-darken-color: #003d73;

    --light-color: #f1f1f1;
    --dark-color: #000000;

    --light-grey: #dfdfdf;
    --dark-grey: #666666;

    --shadow-color: rgba(0,0,0,.2);
    --overlay-color: rgba(0,0,0,.6);
    
    --main-wrapper: 1400px;
    --gap-width-small: .5rem;
    --gap-width-medium: 1rem;
    --gap-width-large: 1.5rem;

    --media-queries: 600px;

    --transition: all .3s ease-in-out;

    --loader-layer: 99999;
    --modal-layer: 9999;
    --menu-layer: 999;
    --deco-layer: 99;
    --text-layer: 9;
    --base-layer: 1;
    --bg-layer: -1;
}

/*
██████████████████████████████████████████
██████████   GENERAL CONTROLS   ██████████
██████████████████████████████████████████
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background-color: var(--light-color);
    font-family: var(--title-font), sans-serif;

    position: relative;
    z-index: var(--base-layer);
}

/*
██████████████████████████████████████████
███████████     HELPPERS      ████████████
██████████████████████████████████████████
*/
.main-wrapper {
    width: 100%;
    max-width: var(--main-wrapper);
    margin: 0 auto;
    padding: 0 1em;
}

.flex-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gap-width-small);
}

.hide-desktop {
    display: none !important;
}

.show-desktop {
    display: block !important;
}

.show-desktop-table {
    display: revert-layer !important;
}


.highlight {
    color: var(--primary-custom-color);
}

@media only screen and (max-width:480px) { 
    .hide-desktop {
        display: block !important;
    }
    
    .show-desktop {
        display: none !important;
    }

    .show-desktop-table {
        display: none !important;
    }
}

#login-page,
#error-page {
    width: 100%;
    height: 100dvh;
}

#login-page .wrapper,
#error-page .wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.login {
    width: 100%;
    max-width: 300px;
    background-color: #DDDDDD;
    padding: 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

.login .icon {
    font-size: 2.5rem;
    line-height: 0;
}

.error {
    width: 100%;
    max-width: 300px;
    background-color: #dddddd;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.error .icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.error .title {
    font-size: 1.5rem;
}

.header {
    width: 100%;
    background-color: #DDDDDD;
    padding: 1rem 0;
    margin-bottom: 1rem;

    position: relative;
}

.header .wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header .wrapper .brand {
    flex: 1 0 0;
    font-size: 2rem;
    font-weight: bold;
    color: #282828;
}

.header .wrapper .navbar {
    flex: 3 0 0;
}

.header .wrapper .navbar .list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.header .wrapper .navbar .list .item {
    text-align: center;
    font-size: .8rem;
    padding: .5rem 1rem;
    display: inline-block;

}

.header .wrapper .navbar .list .item.cta {
    min-width: 150px;
    background-color: #282828;
    color: var(--light-color);
    font-weight: bold;
    font-size: .8rem;
    text-align: center;
    padding: .6rem 2rem;
    cursor: pointer;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.header .wrapper .navbar .list .item.cta-second {
    min-width: 150px;
    background-color: transparent;
    color: #282828;
    font-weight: bold;
    font-size: .8rem;
    text-align: center;
    padding: .6rem 2rem;
    cursor: auto;
    box-shadow: inset 0 0 0 1px #000000;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.header .wrapper .navbar .list .item.cta-second .link {
    cursor: auto;
}

.header .wrapper .switch {
    display: none;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translate3d(0, -50%, 0);
    -webkit-transform: translate3d(0, -50%, 0);
    -moz-transform: translate3d(0, -50%, 0);
    -ms-transform: translate3d(0, -50%, 0);
    -o-transform: translate3d(0, -50%, 0);
}

.header .wrapper .switch .btn {
    font-size: 1.5rem;
    visibility: hidden;
    opacity: 0;
    display: none;
}

.header .wrapper .switch .btn.active {
    visibility: visible;
    opacity: 1;
    display: block;
}

@media only screen and (max-width: 780px) {  
    .header .wrapper{
        flex-direction: column;
        align-items: flex-start;
    }      

    .header .wrapper .brand {
        font-size: 1.5rem;
    }
    
    .header .wrapper .navbar {
        width: 100%;
        flex: 1 0 0;
        position: absolute;
        top: 100%;
        right: 100%;
        z-index: var(--menu-layer);
        transition: var(--transition);
        -webkit-transition: var(--transition);
        -moz-transition: var(--transition);
        -ms-transition: var(--transition);
        -o-transition: var(--transition);
}

    .header .wrapper .navbar.active {
        right: 0;
    }
    
    .header .wrapper .navbar .list {
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: #c0c0c0;
        padding: 1rem 0;
        border-bottom: 4px solid #282828;
    }

    .header .wrapper .switch {
        display: block;
    }
}

.options {
    width: 100%;
    background-color: #DDDDDD;
    padding: .5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.options .column {
    width: calc(33.33333% - 1rem);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.options .column select,
.options .column input {
    flex: 3 0 0;
    width: 100%;
    padding: .4rem .5rem;
    padding-right: 1.5rem;
    border: 1px solid var(--dark-color);
    color: var(--dark-grey);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.options .column button {
    flex: 1 0 0;
}

.options .column.actions .list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}

.options .column.actions .list .item .link {
    text-decoration: none;
    display: inline-block;
    color: #282828;
    font-size: 1.3rem;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.options .column.actions .list .item .link:hover {
    color: #666666;
}

@media only screen and (max-width: 780px) {
    .options {
        flex-direction: column;
    }
    
    .options .column {
        width: calc(100%);
    }
}

.topinfo {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.topinfo .card {
    flex: 1 0 calc(16.666666% - 1rem);
    align-self: stretch;
    padding: 1rem;
    background-color: #DDDDDD;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.topinfo .card:hover {
    box-shadow: 0 3px 2px 0px rgba(0, 0, 0, 0.3);
}

.topinfo .card:nth-child(1) {
    border-top: 5px solid rgb(255, 187, 0);
}
.topinfo .card:nth-child(2) {
    border-top: 5px solid rgb(9, 158, 49);
}
.topinfo .card:nth-child(3) {
    border-top: 5px solid rgb(17, 0, 255);
}
.topinfo .card:nth-child(4) {
    border-top: 5px solid rgb(211, 0, 0);
}
.topinfo .card:nth-child(5) {
    border-top: 5px solid rgb(255, 123, 0);
}
.topinfo .card:nth-child(6) {
    border-top: 5px solid rgb(157, 0, 255);
}

.topinfo .card .stat {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: .5rem;
    color: #666666;
}

.topinfo .card .total {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 300;
    margin-bottom: .5rem;
    color: #292929;
}

.topinfo .card .text {
    font-size: .8rem;
    line-height: 1;
    font-weight: normal;
    color: #292929;
}

@media only screen and (max-width: 780px) {
    .topinfo .card {
        flex: 1 0 calc(50% - 1rem);
    }
}

.info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info .card {
    flex: 1 0 calc(50% - 1rem);
    height: 350px;
    background-color: #DDDDDD;
    padding: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.info .card.table {
    overflow-y: scroll;
    padding: 0;
}

.info .card .tabledata {
    width: 100%;
}

.info .card.form {
    height: auto;
}
@media only screen and (max-width: 780px) {
    .info {
        flex-direction: column;
    }

    .info .card .tabledata td {
        font-size: .8rem;
        padding: .4rem .5rem;
    }
}

.preview {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview .card {
    overflow: hidden;
    flex: 1 0 calc(50% - 1rem);
    height: 700px;
    background-color: #DDDDDD;
    padding: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.preview .card.brief .headers h1 {
    font-size: 1.2rem;
    margin-bottom: .3rem;
    color: #282828;
    text-overflow: ellipsis;
}

.preview .card.brief .headers h2 {
    font-size: 1rem;
    margin-bottom: .3rem;
    color: #282828;
}

.preview .card.brief .headers h2 span {
    font-weight: normal;
    color: #666666;
}

.preview .card.brief .headers hr {
    border: none;
    padding: .5rem 0;
}

.preview .card.email {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

}

.preview .card.email iframe {
    height: 100%;
}

.preview .card.email .devices {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.preview .card.email .devices .link {
    color:#282828;
    text-align: center;
    width: 30px;
    height: 30px;
    background-color: transparent;
    font-size: .9rem;
    line-height: 20px;
    padding: .3rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border: 1px solid #282828;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.preview .card.email .devices .link.active {
    background-color: #282828;
    color: var(--light-grey);
}

.preview .card.email .devices .link:hover {
    background-color: #282828;
    color: var(--light-grey);
}

@media only screen and (max-width: 780px) {
    .preview {
        flex-direction: column;
    }
    
    .preview .card {
        flex: 1 0 0;
        overflow: inherit;
    }

    .preview .card.email {
        min-height: 100dvh;
    }

    .preview .card.email .devices {
        display: none;
        overflow: hidden;
    }
}

