﻿body {
    font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

::-moz-selection {
    background: var(--primary);
}

::selection {
    background: var(--primary);
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 48px;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 48px; /* Height of navbar */
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: hidden; /* Scrollable contents if viewport is shorter than content. */
    display: flex;
    flex-direction: column;
    padding-bottom: .5rem;
}

.sidebar .nav {
    min-width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 1rem;
    flex-wrap: unset;
}

.sidebar .nav-link {
    font-weight: 500;
}

.sidebar .fas {
    width: 16px;
    height: 16px;
}

.sidebar .nav-link .fas {
    margin-right: 6px;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
}

.sidebar .nav-link.active {
}

    .sidebar .nav-link:hover .feather,
    .sidebar .nav-link.active .feather {
        color: inherit;
    }

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.logo {
    width: 100%;
    display: flex;
    margin-top: auto;
}

.logo .img-fluid {
    max-width: 80%;
    height: auto;
    margin: auto;
}

/*
 * Navbar
 */
    .navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.navbar .rightmenu {
    right: 0;
    left: auto;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
 * Utilities
 */

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.filter-reset {
    cursor: pointer;
    font-size: 14px;
    color: #007bff;
}

.table {
    table-layout: fixed;        
}

.table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.table th {
    white-space: nowrap;
}

.table-scroller {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.row-actions {
    padding-right: 16px;
    text-align: right;
    right: 0;
    position: sticky;
    top: auto;
    background-color: white;
}

/*
 * Declaration Create / Edit
*/
.delete-declaration-item {
    margin-bottom: 8px;
}

.context-help-link {
     font-size: 11px;
}

h4 > span > .context-help-link {
     margin-left: -3px;
}

input[readonly="readonly"], input[readonly] {
     color: black; 
     background-color: #e9ecef !important;  
 } 

 input[type="text"][disabled="disabled"] { 
     color: black; 
     background-color: #e9ecef !important; 
}

/*
 * Chat applicatie
 */
.chat-frame {
    max-height: 200px;
    padding: 0;
    background: #e0e0de;
    overflow-y: scroll;
}

.chat-frame > div:last-of-type {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
}

.chat-frame ul {
    width: 100%;
    list-style-type: none;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.macro {
    margin-top: 5px;
    width: 85%;
    padding: 5px;
    display: flex;
}

.msj-rta {
    float: right;
    background: whitesmoke;
}

.msj {
    float: left;
    background: white;
}

.msj:before {
    width: 0;
    height: 0;
    content: "";
    top: -5px;
    left: -14px;
    position: relative;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent #ffffff transparent transparent;
}

.msj-rta:after {
    width: 0;
    height: 0;
    content: "";
    top: -5px;
    left: 14px;
    position: relative;
    border-style: solid;
    border-width: 13px 13px 0 0;
    border-color: whitesmoke transparent transparent transparent;
}

.mytext {
    border: 0;
    padding: 10px;
    background: whitesmoke;
}

.text {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.text > p:first-of-type {
    width: 100%;
    margin-top: 0;
    margin-bottom: auto;
    line-height: 13px;
    font-size: 12px;
}

.text > p:last-of-type {
    width: 100%;
    text-align: right;
    color: silver;
    margin-bottom: -7px;
    margin-top: auto;
}

.text-l {
    float: left;
    padding-right: 10px;
}

.text-r {
    float: right;
    padding-left: 10px;
}

.chat-box {
    width: 100%;
    padding-top: 10px;
}

.chat-box .text {
    width: 75%;
    display: flex;
    flex-direction: column;
}

.chat-box .btn-send {
    background-color: #fff4eb;
    color: #fd943b;
}