﻿/************************************************************************

                           S T Y L E    S H E E T 

                                 F O R   
                
                A P P L I C A T I O N    W I D E    U S A G E

*************************************************************************/

body {
    padding: 0px;
}

/* --------------------------------------------------------------------- */
/* -------------------------------  Tab Bar  ---------------------------- */
/* --------------------------------------------------------------------- */

#tabs {
    overflow-x: auto;
    overflow-y: hidden;
}

div#tabs::-webkit-scrollbar {
    width: 0.3em;
    height: 0.18em;
}

div#tabs::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

div#tabs::-webkit-scrollbar-thumb {
    background-color: #bbb;
    outline: 1px solid #bbb;
}

/* --------------------------------------------------------------------- */
/* -------------------------------  Panels  ---------------------------- */
/* --------------------------------------------------------------------- */

.panel {
    box-sizing: border-box;
}

.box {
    width: 100%;
}

.scroll-y {
    overflow-y: auto !important;
}

.global-info-messages,
.info-messages,
.error-messages {
    position: absolute !important;
    width: 100vw;
    box-sizing: border-box;
    box-shadow: 0px 2px 3px 1px #ccc;
    padding: 3px 10px;
    z-index: 10;
}

.content-panel {
    width: 100vw !important;
    overflow-y: hidden;
    /*height: calc(100vh - 2.5rem);*/
}

#table-content {
    height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
}

.top-panel {
    height: calc(35%); /* Substract nav height */
    /*height: calc(50vh - 2.5rem); */ /* Substract nav height */
    /*min-height: 260px;*/
    padding: 1rem 1rem;
    display: flex;
    flex-direction: row;
    resize: vertical; /* resize vertical */
    overflow: auto; /* resize works for overflow other than visible */
}

.resizer {
    text-align: center;
    letter-spacing: 10px;
    background-color: #dee2e6;
    cursor: row-resize;
    user-select: none; /* disable selection */
    font-size: 0.8rem;
}

.middle-panel {
    height: 2rem;
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    width: 100%;
}

.bottom-panel {
    height: calc(50%);
    /* height: calc(50vh - 2rem); */ /* Substract middle panel height */
    flex: 1; /* adjust automatically */
    /*flex-grow: 1;*/
    
    display: flex;
    flex-direction: column;
    resize: vertical; /* resize vertical */
}

.middle-panel .controls {
    width: 15%;
    min-width: 200px;
}

.middle-panel .favorite-queries {
    width: 35%;
    max-width: 35vw;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: 20px;
}

.middle-panel div.favorite-queries::-webkit-scrollbar {
    width: 0.3em;
    height: 0.2em;
}

.middle-panel div.favorite-queries::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.middle-panel div.favorite-queries::-webkit-scrollbar-thumb {
    background-color: #bbb;
    outline: 1px solid #bbb;
}

.middle-panel .favorite-queries span {
    font-size: 0.8rem;
    margin: 3px 3px;
    padding: 2px 10px;
    background-color: #ccc;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    opacity: 2;
}

.middle-panel .favorite-queries span:hover {
    background-color: #aaa;
    color: floralwhite;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.middle-panel .search-small {
    width: calc(39vw) !important;
}

.middle-panel .search-large {
    width: calc(50vw) !important;
}

.middle-panel .search-box {
    transition: width 2s;
}

.middle-panel .search-box .form-control {
    height: 25px; 
    font-size: 0.75rem; 
    border-radius:10px 0px 0px 10px;
}

.middle-panel .search-box .btn {
    height: 25px;
    font-size: 0.75rem;
    cursor: pointer;
}

.middle-panel .search-box .btn {
    border-radius: 0px 0px 0px 0px;
}

.middle-panel .search-box .btn:last-child {
    border-radius: 0px 10px 10px 0px;
}

.middle-panel .search-box i{
    font-size: 0.9rem;
    cursor: pointer;
}


/* --------------------------------------------------------------------- */
/* ------------------------  Panels Buttons ---------------------------- */
/* --------------------------------------------------------------------- */

.middle-panel .controls i {
    padding: 0.4rem;
}

.middle-panel .controls i:hover {
    padding: 0.4rem;
    background-color: #ccc;
    border-radius: 1rem;
}

.fa-print-settings {
    position: relative;
}

.fa-print-settings:after {
    
}

.fa-print-settings:before {
    position: absolute;
    top: 0px;
    left: 1px;
    font-size: 0.8rem;
    content: '\f013';
    font-family: 'FontAwesome';
}

/* --------------------------------------------------------------------- */
/* ------------------------- Navigation Tabs --------------------------- */
/* --------------------------------------------------------------------- */
/*
.navbar {
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
}
*/
#tabs {
    width: 83vw;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 2.5rem;
}

#btnTableAlerts a:first-child {
    font-size: 1rem;
}

#btnTableAlerts a.dropdown-item {
    font-size: 0.8rem;
    text-align: left;
}

#btnTableAlerts .dropdown-menu {
    width: 30px;
}

.table-tabs {
    cursor: pointer !important;
    color: #6c757d !important;
}

.table-tabs.active {
    font-weight: bold;
    cursor: default;
    color: white !important;
}

.table-tabs:not(.active):hover {
    color: #ccc !important;
    cursor: pointer !important;
}

nav div a {
    text-decoration: none;
    color: inherit;
}

.no-overflow {
    overflow: hidden;
}

.overflow-default {
    overflow: unset;
}

.navbar-burger {

}

.navbar-burger-icon {
    width: 1.8rem;
    opacity: 0.5;
    padding: 3px 2px;
}

.navbar-burger-icon:hover {
    opacity: 1;
    cursor: pointer;
}

.navbar-burger-bars {
    width: 1.5rem;
    height: 1px;
    background-color: aliceblue;
    margin: 6px 0px;
}

.burger-menu {
    position: absolute;
    top: calc(2.5rem) !important;
    left: -500px;
    width: 200px;
    height: calc(100vh - 2.5rem);
    z-index: 1200;
}

.burger-menu.show {
    left: 0px;
    transition: left linear 0.1s;
}

.burger-menu .tab {
    height: 3.5rem;
    font-weight: 100;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0rem 1rem;
    padding-top: 1rem;
    color: #ccc;
}

.burger-menu .tab.active {
    border-bottom: 5px solid #ccc;
    padding: 0rem 1rem;
    padding-top: 1rem;
    font-weight: bold;
    cursor: default;
    color: white;
}

.burger-menu .tab:hover:not(.active) {
    border-bottom: 5px solid #777;
    padding: 0rem 1rem;
    padding-top: 1rem;
    color: white;
}

.burger-menu div a {
    text-decoration: none;
    color: inherit;
}

.burger-menu a:hover {
    text-decoration: none !important;
    color: inherit;
}


/* --------------------------------------------------------------------- */
/* ------------------------- Border and Shadows ------------------------ */
/* --------------------------------------------------------------------- */
.border-1 {
    border: 1px solid #dee2e6;
}

.shadow {
    -webkit-box-shadow: 0 10px 6px -6px #777;
    -moz-box-shadow: 0 10px 6px -6px #777;
    box-shadow: 0 10px 6px -6px #777;
}


/* --------------------------------------------------------------------- */
/* ------------------------------ Scrollbar ---------------------------- */
/* --------------------------------------------------------------------- */

.scroll-x-auto {
    overflow-x: auto;
}

/* --------------------------------------------------------------------- */
/* ------------------------------ Visibility --------------------------- */
/* --------------------------------------------------------------------- */
.is-disabled {
    cursor: not-allowed
}

.hide {
    display: none !important;
    visibility: hidden !important;
}

.show {
    display: block;
    visibility: visible !important;
}

.z-high {
    z-index: 1130 !important;
}

.dropdown-menu {
    z-index: 1130 !important;
}
/* --------------------------------------------------------------------- */
/* --------------------- Height / Margin / Padding --------------------- */
/* --------------------------------------------------------------------- */
.no-wrap {
    white-space:nowrap;
}

.nav-height-s {
    height: 2.5rem;
}

.nav-height {
    height: 3.5rem;
}

.line-height-20 {
    line-height: 20px;
}

.w-5 {
    width: 5% !important;
}

.mw-10 {
    min-width: 10px;
}

.w-sm-100 {
    width: 100%;
}

.w-80px {
    width: 80px;
}

.max-h-200px {
    max-height: 200px;
}

/* --------------------------------------------------------------------- */
/* -------------------------------- Fonts ------------------------------ */
/* --------------------------------------------------------------------- */
.font-20 {
    font-size: 20px !important;
}

.font-10 {
    font-size: 10px !important;
}

.line-height-2r {
    line-height: 2rem
}

.font-pt-7r {
    font-size: 0.7rem !important;
}

/* --------------------------------------------------------------------- */
/* -------------------------------- Colors ------------------------------ */
/* --------------------------------------------------------------------- */

.c-red {
    color: #F20056;
}

.c-blue {
    color: #007bff;
}

.c-darkgreen {
    color: #5C604D;
}

.c-gray {
    color: slategray;
}

.b-light-gray {
    background-color:#E8E8E8;
}

.b-lavender {
    background-color: #FFF0F5 !important;
}

.bg-dark-gradient {
    background-color: #000000;
    background-image: linear-gradient(147deg, #000000 0%, #434343 74%);
}

.bg-gradient-blue-01 {
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.bg-gradient-yellow-01 {
    background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
}

.bg-grandient-cloudy {
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

/* --------------------------------------------------------------------- */
/* -------------------------- Pointer / Links -------------------------- */
/* --------------------------------------------------------------------- */

.cursor-pointer {
    cursor: pointer !important;
}

.link-underline {
    text-decoration: underline !important;
}

.link-icon {
    position: relative;
}

.link-icon::after {
    font-family: 'FontAwesome';
    content: '\f08e';
    position: absolute;
    color: dimgrey;
    margin-left: 0.8rem;
    font-size: 0.8rem;
    top: 20%;
}

/* --------------------------------------------------------------------- */
/* ------------------------------- Alignment ---------------------------- */
/* --------------------------------------------------------------------- */
.vertical-align-middle {
    vertical-align: middle !important;
}

/* --------------------------------------------------------------------- */
/* ------------------------- Navigation Bar ---------------------------- */
/* --------------------------------------------------------------------- */

nav .user-name:hover,
nav .user-name:focus {
    box-shadow: 0 0 0 1px #FFF0F5;
    opacity: 0.8;
}

nav .user-name {
    border: 1px solid white;
    border-radius: 5px;
    padding: 0.25rem;
    float: right;
    opacity: 0.6;
    font-size: 0.8rem;
}

nav .user-name span {
    font-style: italic;
}

nav .user-name:hover,
nav .user-name:focus {
    background-color: #F0FFFF;
    color: #343a40;
    border: 1px solid #F0FFFF;
}

#user-menu .user-name {
    display: none;
    visibility: hidden;
}

#user-menu .dropdown-item:hover {
    background-color: ivory;
}

#user-menu {
    display: block;
    position: fixed;
    top: calc(2.5rem);
    left: auto;
    right: 10px;
    width: 200px;
    z-index: 100;
    border: 1px solid #dee2e6;
}

.menu-shadow {
    -webkit-box-shadow: 0 10px 6px -6px #777;
    -moz-box-shadow: 0 10px 6px -6px #777;
    box-shadow: 0 10px 6px -6px #777;
}

.menu-dropdown {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: white !important;
}

#user-menu .user-details {
    background-color: whitesmoke;
    border-bottom: 1px solid #dee2e6;
    color: #343a40 !important;
    display: flex;
    font-size: 14px;
    flex-direction: column;
    padding: 10px;
    padding-top: 15px;
    padding-bottom: 15px
}

.role-box {
    padding: 2px 5px;
    background-color: burlywood;
    color: ghostwhite;
    font-size: 0.6rem;
    border-radius: 5px;
}

.middle-panel .search-and-archive {
    width: calc(50vw - 20px);
}

.clear-query {
    font-size: 1.5rem !important;
    margin-right: 0.3rem;
    color: black !important;
}

/* --------------------------------------------------------------------- */
/* -------------------------- TOGGLE SWITCH ---------------------------- */
/* --------------------------------------------------------------------- */
.toggle-control {
    display: block;
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.toggle-control input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.toggle-control input:checked ~ .control {
  background-color: dodgerblue;
}
.toggle-control input:checked ~ .control:after {
  left: 20px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}
.toggle-control .control {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 40px;
  border-radius: 25px;
  background-color: darkgray;
  transition: background-color 0.15s ease-in;
}
.toggle-control .control:after {
  content: "";
  position: absolute;
  left: 0px;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 25px;
  background: white;
  transition: left 0.15s ease-in;
}

/************************************************************************

                           S T Y L E    S H E E T 

                     F O R   M O B I L E   D E V I C E S

*************************************************************************/
@media only screen and (max-width: 961px) { /* smartphones, iPhone */
    body {
    }

    /* --------------------------------------------------------------------- */
    /* -------------------------------  Panels  ---------------------------- */
    /* --------------------------------------------------------------------- */

    .content-panel {
        width: 100vw !important;
        overflow-y: auto;
    }

    .top-panel {
        height: 500px;
        min-height: 80%;
        flex-direction: column;
    }

    .middle-panel {
        height: 8rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .bottom-panel {
        height: unset;
    }

    .middle-panel .controls {
        width: 100%;    
        margin-bottom: 0.5rem;
        border-right: 0;
    }

    .middle-panel .search-and-archive {
        width: calc(100vw - 20px);
    }

    .middle-panel .search-small {
        width: 72% !important;
    }

    .middle-panel .search-large {
        width: 100% !important;
    }

    .middle-panel .favorite-queries {
        width: 100vw;
        max-width: unset;
        overflow-x: unset;
        overflow-y: hidden;
        height: 30px;
        margin-bottom: 10px;
    }

    /* --------------------------------------------------------------------- */
    /* ----------------- Functionality: Navigation Bar --------------------- */
    /* --------------------------------------------------------------------- */
    #tabs {
        overflow-x: auto;
        width: 70vw;
        display: flex;
        flex-direction: column;
        height: 2.5rem;
    }
    
    nav .user-name {
        border: 0px;
        text-align: right;
        width: 2rem;
        float: right;
        font-size: 1.5rem;
        padding: 0;
    }

    nav .user-name i {
        margin-right: 0 !important;
    }

    nav .user-name span {
        display: none;
        visibility: hidden;
    }

    nav .user-name:hover,
    nav .user-name:focus {
        opacity: 0.8;
        border: 0;
        color: white;
        background-color: transparent;
        box-shadow: 0 0 0 1px transparent;
    }

    #user-menu .user-name {
        background-color: white;
        font-size: 0.9rem;
        padding: 5px 20px;
        text-align: right;
        display: block;
        visibility: visible;
    }

    #user-menu {
        right: 5px;
    }
}