/*
    DEMO STYLE
*/
/* @import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"; */
@import '../lib/gstatic/fonts-googleapi-com-poppins-100-900.css';
@import url('./bootstrap-icons.css');

html {
    overflow-y: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

i,
span {
    display: inline-block;
}

/* fix bootstrap-icons */
[class^='bi-']::before,
[class*=' bi-']::before {
    line-height: unset;
}

/* ---------------------------------------------------
  BASE CLASS
----------------------------------------------------- */
.flex {
    display: flex;
}

.clearfix {
    display: none;
}

.flex-box {
    display: flex;
    flex-wrap: nowrap;
    align-content: flex-end;
}
.flex-item-auto {
    flex: auto;
}

/* ---------------------------------------------------
    PATCH BOOTSTANP STYLE
----------------------------------------------------- */
.bg-purple {
    background-color: #6f42c1;
}

.bg-darkpurple {
    background-color: #563d7c;
}

td > fieldset.form-group {
    margin: -0.25rem;
}
td > fieldset > .form-row {
    margin: 0;
}
td > fieldset legend {
    display: none;
}
.table > tbody > tr > td {
    padding: 0.25rem;
    vertical-align: middle;
}
.table > tbody > tr > td:last-of-type {
    text-align: right;
}
.table tr:focus {
    outline: -webkit-focus-ring-color auto 0px;
}
.form-row > .col {
    padding-left: 0;
    padding-right: 0;
}
.table .custom-select:focus {
    border: 0;
    outline: 0;
    box-shadow: unset;
}
.table .custom-select {
    border: 0;
    background-color: unset;
    padding-right: 0.2rem;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
.bd-sidebar {
    flex-basis: 80px;
    top: 0;
}

.wrapper {
    display: flex;
    align-items: stretch;
}

.flex-xl-nowrap {
    flex-wrap: nowrap;
}

#sidebar > div:first-child {
    background-color: #7386d5;
}

#sidebar.active > div:first-child > form {
    display: none;
}
#sidebar > div:first-child > .sidebar-search-button {
    height: calc(1.5em + 0.75rem + 2px + 2 * 1rem);
    padding: 1rem 0;
    display: none;
    text-align: center;
}
#sidebar.active > div:first-child > .sidebar-search-button {
    display: block;
    flex: auto;
}
#sidebar > div:first-child > .sidebar-toggle {
    background-color: #6d7fcc;
    padding: calc(0.25em + 1.375rem + 1px) 0;
    z-index: 999;
}
#sidebar > div:first-child > .fa-angle-double-right {
    display: none;
}
#sidebar.active > div:first-child > .fa-angle-double-left {
    display: none;
}
#sidebar.active > div:first-child > .fa-angle-double-right {
    display: block;
}

#sidebar > nav,
#sidebar > div {
    min-width: 250px;
    max-width: 250px;
    background: #7386d5;
    color: #fff;
    transition: all 0.1s;
}
#sidebar.active > div {
    min-width: 80px;
    max-width: 80px;
}
#sidebar.active > nav {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

#sidebar.active > nav .sidebar-header h3,
#sidebar.active > nav .CTAs {
    display: none;
}

#sidebar.active > nav .sidebar-header strong {
    display: block;
}

#sidebar > nav ul li a {
    /* text-align: left; */
    text-align: left;
}

#sidebar.active > nav ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active > nav ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active > nav ul ul a {
    padding: 10px !important;
}

#sidebar.active > nav a[aria-expanded='false']::before,
#sidebar.active > nav a[aria-expanded='true']::before {
    top: auto;
    bottom: 5px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar > nav .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar > nav .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar > nav ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar > nav ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}
#sidebar > nav ul li a:hover {
    color: #7386d5;
    background: #fff;
}
#sidebar > nav ul li a i {
    margin-right: 10px;
}

#sidebar > nav ul li.active > a,
a[aria-expanded='true'] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle='collapse'] {
    position: relative;
}

a[aria-expanded='false']::before,
a[aria-expanded='true']::before {
    content: '\e259';
    display: block;
    position: absolute;
    right: 20px;
    font-family: 'Glyphicons Halflings';
    font-size: 0.6em;
}
a[aria-expanded='true']::before {
    content: '\e260';
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386d5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    position: relative;
    padding: 10px 20px;
    /* min-height: calc(100vh - 7rem); */
    /* max-height: calc(100vh - 7rem); */
    transition: all 0.3s;
    flex: auto;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    a[aria-expanded='false']::before,
    a[aria-expanded='true']::before {
        top: auto;
        bottom: 5px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    #sidebar.active > nav {
        margin-left: 0 !important;
    }

    #sidebar > nav .sidebar-header h3,
    #sidebar > nav .CTAs {
        display: none;
    }

    #sidebar > nav .sidebar-header strong {
        display: block;
    }

    #sidebar > nav ul li a {
        padding: 20px 10px;
    }

    #sidebar > nav ul li a span {
        font-size: 0.85em;
    }
    #sidebar > nav ul li a i {
        margin-right: 0;
        display: block;
    }

    #sidebar > nav ul ul a {
        padding: 10px !important;
    }

    #sidebar > nav ul li a i {
        font-size: 1.3em;
    }
    #sidebar > nav {
        margin-left: 0;
    }
    #sidebar > nav collapse span {
        display: none;
    }
}

/* ---------------------------------------------------
  Box detail
----------------------------------------------------- */
.font-moon {
    font-family: Fira Code, Courier New;
}

.min-width-120 {
    min-width: 120px;
}

.col-index {
    flex: 0 0 auto;
    width: 60px;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}
.col-label {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 200px;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: right !important;
    text-decoration: none;
    vertical-align: middle;
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}
.col-content {
    flex: auto;
    width: calc(100% - 120px);
    vertical-align: middle;
    padding: 0.375rem 0.75rem;
    flex-wrap: wrap;
}
.col-actions {
    flex: 0 0 auto;
    width: 60px;
    vertical-align: middle;
    padding: 0.375rem 0.75rem;
}
