/* =====================================================
   Smart Live Report
   Responsive Stylesheet
   ===================================================== */

/* Make width calculations predictable */
*{
    box-sizing:border-box;
}

/* Images should never overflow */
img{
    max-width:100%;
    height:auto;
    display:block;
}

/* Videos */
video,
iframe{
    max-width:100%;
    height:auto;
}

/* Tables */
table{
    width:100%;
    display:block;
    overflow-x:auto;
}

/* Long words */
body{
    overflow-wrap:break-word;
    word-wrap:break-word;
}

/* Textareas */
textarea{
    width:100%;
    max-width:100%;
}

/* Inputs */
input,
select,
button{
    max-width:100%;
}

/* Avoid horizontal scrolling */
html,
body{
    overflow-x:hidden;
}
/* ==========================================
   HEADER RESPONSIVE
   ========================================== */

header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.header-inner{
    display:flex;
    align-items:center;
    gap:15px;
    flex:1;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.site-title{
    font-size:1.8rem;
    font-weight:700;
}

.header-tagline{
    color:#666;
    font-size:.95rem;
    margin:0;
}

.auth-link{
    display:flex;
    align-items:center;
    gap:12px;
}

.header-search{
    width:100%;
    margin-top:15px;
}

.header-search form{
    display:flex;
    gap:10px;
}

.header-search input[type="search"]{
    flex:1;
    min-width:0;
}

.header-search button{
    white-space:nowrap;
}

/* ---------- Tablet ---------- */

@media (max-width:992px){

    header{

        flex-direction:column;

        align-items:stretch;

    }

    .header-inner{

        justify-content:center;

        text-align:center;

        flex-direction:column;

    }

    .auth-link{

        justify-content:center;

    }

}

/* ---------- Mobile ---------- */

@media (max-width:640px){

    .site-title{

        font-size:1.35rem;

    }

    .header-tagline{

        display:none;

    }

    .header-search form{

        flex-direction:column;

    }

    .header-search button{

        width:100%;

    }

}

