main > .container {
    padding: 10px 15px 20px;
}

.btn.disabled, button.btn[disabled] {
    cursor: not-allowed;
    pointer-events: none;
}

ul.pagination {
    margin-top: .5rem;
    margin-bottom: .5rem;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
    justify-content: center;
}

ul.pagination > li {
    position: relative;
    display: block;
    border: 1px solid #dee2e6;
    margin: -1px;
    background-color: #fff;
    color: #007bff;
}

ul.pagination > li.page-item {
    border: unset;
    margin: unset;
}

ul.pagination > li.disabled {
    padding: .5rem .75rem;
    line-height: 1.25;
    border: 1px solid #dee2e6;
}

ul.pagination > li:first-of-type {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

ul.pagination > li:last-of-type {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

ul.pagination > li.page-item.disabled > a {
    padding: 0;
    border: none;
}

ul.pagination > li.active {
    background-color: #007bff;
    color: #fff;
}

ul.pagination > li > a {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    line-height: 1.25;
    color: inherit;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #e9ecef !important;
    color: #16181b !important;
}

.navbar-nav.ml-md-auto.nav {

}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        height: 40px;
        margin-top: -8px;
    }
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

ol, ul, dl {
    padding-left: 0.5em;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.dropdown-menu.show {
    z-index: 2000;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.text-dark.stretched-link:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #007bff;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

div.collapse.navbar-collapse > ul.nav > li.nav-item {
    display: flex;
    align-content: center;
    align-items: center;
    margin-top: 5px;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.nav button.dropdown-toggle {
    color: white;
}

body {
    margin: 0;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}

a, a:hover {
    text-decoration: none;
}

.list-group .list-group-item span > i.bi {
    font-size: 1.5em;
    vertical-align: bottom;
    line-height: 1;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.avatar-upload {
    top: -2em;
}

.avatar-upload .btn-outline-secondary:not(:hover) {
    background: #fff;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.subhead {
    display: flex;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d8dee4;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-end;
}

.subhead-heading {
    font-size: 1.5em;
    font-weight: bold;
}

.subhead span.subhead-right {
    justify-content: flex-end;
    margin-left: auto;
}

.d-block {
    display: block !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

label {
    font-weight: 600;
}

.avatar {
    display: inline-block;
    overflow: hidden;
    line-height: 1;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #1b1f2426;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none !important;
}

.bold {
    font-weight: bolder;
}

.bigger {
    font-size: 1.2em;
}

.active .badge-primary {
    color: #007bff;
    background-color: #fff;
}

.card-header .float-right {
    margin: -6px 2px;
    height: 30px;
}

.card-header a.float-right {
    padding-top: 4px;
}

.card-header .float-right:first-of-type {
    margin-right: -6px;
}

.card-header {
    clear: both;
    overflow: visible;
}

.flex {
    display: flex;
}

.flex.center {
    align-items: center;
}

.flex1 {
    flex: 1;
}

.flex.baseline {
    align-items: baseline;
}

.flex .flex-right {
    justify-content: flex-end;
    margin-left: auto;
    letter-spacing: 0;
}

.flex .flex-right a:not(:last-of-type)::after {
    content: ' | ';
    margin: 0 0.2em;
    color: gray;
}

table.vertical-middle th, table.vertical-middle td {
    vertical-align: middle;
}

.input-group .form-control + .select2 .selection .select2-selection {
    border-bottom-left-radius: 0.25rem;
    border-top-left-radius: 0.25rem;
}

.input-group:last-child {
    border-bottom-right-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.media-body .h5, .media-body h5 {
    font-size: 1.25em;
}

.pointer {
    cursor: pointer;
}

.link[data-href] {
    cursor: pointer;
}

img.img-flag {
    height: 1em;
}

.form-group.row .text-muted {
    padding-left: 0;
}

li.list-group-item.list-banner-cover, .banner-cover {
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position-y: 50%;
    text-shadow: rgb(255 255 255) 0 0 6px;
    position: relative;
}

li.list-group-item.list-banner-cover:before, .banner-cover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgb(255 255 255 / 50%), white);
    background: -moz-linear-gradient(rgb(255 255 255 / 50%), white);
    background: -o-linear-gradient(rgb(255 255 255 / 50%), white);
    background: -webkit-linear-gradient(rgb(255 255 255 / 50%), white);
}

li.list-group-item.list-banner-cover > img, li.list-group-item.list-banner-cover > .media-body, .banner-cover > * {
    z-index: 1000;
}

li.list-group-item.list-banner-cover > img {
    place-self: center;
}

.btn-link-radius {
    background: rgb(255 255 255 / 30%);
    border-radius: 50%;
}

.list-group.list-group-flush.sender-info {
    position: relative;
}

.list-group.list-group-flush.sender-info .media-body {
    pointer-events: none;
}

.list-group.list-group-flush.sender-info .media-body .justify-content-between small.text-muted, .list-group.list-group-flush.sender-info .media-body .float-right {
    display: none;
}

.form-group[data-if]:not(.active) {
    display: none;
}

/** upload-widget ***/

.upload-image {
    max-width: 200px;
}

.card-btn.card {
    border-color: #6c757d;
    box-shadow: 1px 1px 3px 0 #6c757d;
    color: #6c757d;
    transition: all 0.3s ease-in-out;
    padding: 0.5rem;
}

.card-btn.card:hover {
    border-color: #28a745;
    color: #28a745;
    box-shadow: 1px 1px 3px 0 #28A745;
    transform: scale(1.05);
}

.card-btn.card .card-body {
    height: 3em;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    justify-content: center;
}

.underline {
    text-decoration: underline;
}

.b-underline b, .b-underline .bold {
    text-decoration: underline wavy;
    text-decoration-color: #dc3545;
}

.badge.relative.badge-warning {
    border-radius: 0.3em 0 0 0.3em;
    background-image: linear-gradient(to right, #ffc107, #fff);
}

.badge .badges-badge-num {
    color: white;
    position: absolute;
    background: red;
    font-size: 10px;
    width: 12px;
    height: 12px;
    display: inline-block;
    right: -6px;
    top: -6px;
    padding: 1px;
    border-radius: 50%;
    font-weight: lighter;
}

li.media.extension-item:hover .h5 > a:not(.badge):not(.btn) {
    text-decoration: underline;
    text-decoration-color: #dc3545;
}

.category_editable .dropdown-menu > .dropdown-item.active {
    background-color: #17a2b8 !important;
    color: white !important;
}

li.media.extension-item .category_editable {
    opacity: 30%;
}

li.media.extension-item:hover .category_editable, li.media.extension-item .category_editable.show {
    opacity: 100%;
}

[data-title]:not([data-title=""]):not(.no-tooltip):not([data-toggle="tooltip"]) {
    position: relative;
}

[data-title]:not([title=""]):not(.no-tooltip):not([data-toggle="tooltip"]):after {
    content: attr(data-title);
    position: absolute;
    left: 2em;
    top: 2em;
    border: 1px solid gray;
    white-space: nowrap;
    background: #ffffffb3;
    visibility: hidden;
    color: gray;
    text-align: center;
    display: inline-block;
    padding: 0.15em;
    z-index: 100;
    font-size: 10px;
}

[data-title]:not([data-title=""]):not(.no-tooltip):not([data-toggle="tooltip"]):hover:after {
    visibility: visible;
}


.client-list tbody tr {
    height: 42px;
}

.client-list tbody tr td, .client-list tbody tr th {
    vertical-align: middle;
}

.client-list .tr-show {
    opacity: 0;
}

.client-list tr:hover .tr-show {
    opacity: 1;
}

.client-list tbody tr td.text-comment {
    cursor: pointer;
}

.text-gray {
    color: #808080;
}

.card > .list-group > .list-group-item {
    border-left: 0;
    border-right: 0;
}

.card > .list-group > .list-group-item:first-child {
    border-top: 0;
}

.card > .list-group > .list-group-item:last-child {
    border-bottom: 0;
}

.card > table.table {
    margin-bottom: 0;
    border: 0;
}

.card > table.table.table-bordered > th, .card > table.table.table-bordered > td {
    border-bottom: 0;
}

.card > table.table.table-bordered tr > th:first-of-type, .card > table.table.table-bordered tr > td:first-of-type {
    border-left: 0;
}

.card > table.table.table-bordered tr > th:last-of-type, .card > table.table.table-bordered tr > td:last-of-type {
    border-right: 0;
}