@import url("bootstrap-4.0.0/bootstrap.min.css");
@import url("bootstrap-theme.css");
@import url("font.css");

/* Default and Extra small devices (portrait phones, less than 576px) */
#content {
    width: calc(100% - 265px);
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}
#content.active {
    width: 100%;
}
#main-content{
    min-height: calc(100vh - 116px - 2rem);
}
.container_button_card_header{
    text-align: right;
    flex-grow: 1;
}
.th_order_arrow::after{
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-left: 0.5rem;
}
.th_order_arrow_asc::after{
    content: '\f106';
}
.th_order_arrow_desc::after{
    content: '\f107';
}
.td_button_action{
    text-align: right;
    white-space: nowrap;
}
img.flag{
    height: 1rem;
}
.label_required_field{
    position: relative;
}
.label_required_field::after{
    content: "\f005";
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-size: 0.4rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;

    color: #dc3545;
    position: absolute;
    top:4px;
}
th.number, td.number, td.number input[type="text"]{
    text-align: right;
}
.table_small_info_card{
    margin: 0;
}
.table_small_info_card tbody tr:first-child > td{
    border-top: none;
}
.img-thumbnail-fix-width{
    width: 192px;
}
.img-thumbnail-fix-width.img-thumbnail-sm{
    width: 64px;
    height: 64px;
}
.height_100_percent{
    height: 100%;
    box-sizing: border-box;
}
.screenOverlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 95;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    display: none;
}

/*HEADER*/
#header{
    border-bottom: solid 1px rgba(0,0,0,0.15);
}
#button_toggle_sidebar{
    cursor: pointer;
}
#header .profile_picture {
    height: 42px;
    width: 42px;
    object-fit: cover;
}

/*SIDEBAR*/
#sidebar {
    width: 265px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 99;
    transition: all 0.3s;
    background-image: url("../images/background-sidebar.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#sidebar > div{
    background-color: rgba(10,10,10,0.7);
    height: 100%;
    overflow: hidden;
}
#sidebar.active {
    margin-left: -265px;
}
#sidebar .sidebar-header {
    padding: 30px 42px;
    border-bottom: solid 1px #6c757d;
}
#sidebar .sidebar-header img {
    width: 181px;
}
#sidebar ul.components {
    width: 282px;
    height: calc(100% - 95px);
    overflow-x: hidden;
    overflow-y: scroll;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #sidebar.webkit_only_sidebar_style ul.components {
        width: 265px !important;
    }
    #sidebar.webkit_only_sidebar_style ul.components::-webkit-scrollbar {
        display: none;
    }
}
#sidebar ul li a, #sidebar ul li a:link, #sidebar ul li a:visited {
    padding: 1.125rem;
    display: block;
    color: #f8f9fa;
    font-size: 0.8125rem;
}
#sidebar ul li a:hover, #sidebar ul li a[aria-expanded="true"]{
    text-decoration: none;
    cursor: pointer;
    background: rgba(248,249,250,0.15);
}
#sidebar ul li.active > a {
    background-color: #007bff;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 123, 255, 0.4);
}
#sidebar ul ul a {
    padding-left: 3rem !important;
}
#sidebar ul li a i.fa-fw{
    margin-right: 0.75rem;
}
#sidebar ul li a[data-toggle="collapse"] {
    position: relative;
}
#sidebar ul li a[aria-expanded="false"]::before, #sidebar ul li a[aria-expanded="true"]::before, div.card-header[aria-expanded="false"]::before, div.card-header[aria-expanded="true"]::before {
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;

    position: absolute;
    right: 1.25rem;
}
#sidebar ul li a[aria-expanded="false"]::before, #sidebar ul li a[aria-expanded="true"]::before{
    font-size: 0.75rem;
    margin-top: 3px;
}
#sidebar ul li a[aria-expanded="true"]::before, div.card-header[aria-expanded="true"]::before {
    content: '\f106';
}
#sidebar ul li a[aria-expanded="false"]::before, div.card-header[aria-expanded="false"]::before {
    content: '\f107';
}
@media (max-width: 991px) {
    #content, #content.active {
        width: 100%;
    }
    #sidebar {
        margin-left: -265px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebar ul.components {
        width: 265px;
        height: calc(100% - 95px);
        overflow: auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

}