.white-text {
    color: #fff;
}

.nav-tabs .nav-item i {
    font-size: 1rem;
    width: auto;
}

.nav-tabs .nav-item-divider {
    min-width: auto;
}

.btn {
    line-height: 1.55rem;
}

.btn i {
    font-size: 1.1rem;
}

.label-padding-top {
    padding-top: 0.5rem;
}

.general-message .alert {
    display: none;
}

.general-message .alert .alert-close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 12px;
    cursor: pointer;
}

/* Menu */
.submenu-active .nav-link {
    color: #467fcf;
    background: transparent;
    border-bottom: 1px solid #467fcf;
}

.header .avatar i {
    font-size: 150%;
}

.header .avatar {
    width: 1.8rem;
    height: 1.8rem;
    line-height: 1.8rem;
}

/* Dashboard */
.dashboard .entity-container .entity-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.dashboard .entity-container a {
    color: #343a40;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.dashboard .entity-container a:hover {
    color: #868e96;
}

/* List view */
#t-entity-list th.fixed-width-50 {
    width: 50px;
}

#t-entity-list .min-width {
    width: 1%;
    white-space: nowrap;
}

#t-entity-list td.actions a {
    font-weight: bold;
}

#t-entity-list th {
    font-weight: 500;
}

#t-entity-list th a {
    display: block;
    color: #868e96;
}

#t-entity-list th.sortable {
    padding: 0;
}

#t-entity-list th.sortable a {
    padding: 0.5rem;
}

#t-entity-list th.sortable:hover {
    background-color: #edf2fa;
}

#t-entity-list th a:hover {
    text-decoration: none;
}

#t-entity-list th.sorted {
    background-color: #c8d9f1;
}

/*#t-entity-list td.sorted {*/
    /*background-color: #edf2fa;*/
/*}*/

#t-entity-list th.action {
    width: auto;
}

#t-entity-list .highlight {
    background-color: #f1c40f;
}

#t-entity-list .delete-highlight {
    background-color: #fff5ce;
}

#t-entity-list, table.delete-items, table.delete-item {
    border: 1px #dee2e6 solid;
}

#t-entity-list, th.delete-all-checkbox, .custom-control-label {
    vertical-align: top !important;
}

.table td, .text-wrap table td {
    vertical-align: middle !important;
}

.list .list-header {
    flex: 1;
}

.list .search-container {
    display: flex;
    justify-content: flex-end;
}

.list .search-action {
    flex: 6 auto;
}

.list .new-action, .list .export-list, .list .delete-multiple-action, .list .extra-action {
    margin-left: 10px;
}

.list .delete-multiple-action .disabled {
    opacity: 0.2;
}

.list .custom-control {
    padding-left: 0;
    min-height: 0.8rem;
}

.list .custom-control-inline {
    margin-right: 0;
}

.list .custom-checkbox .custom-control-label:before, .list .custom-checkbox .custom-control-label:after {
    left: 0.3rem;
}

.list .delete-checkbox .custom-control-label:before, .list .delete-checkbox .custom-control-label:after {
    top: 0;
}

.list .table-striped tbody tr.highlight td {
    background-color: #c8d9f1;
}

/* Form */
/* Required field label */
.form-label.required:after {
    content: " *";
    color: red;
}

textarea {
    min-height: 150px;
}

.no-border {
    border: 0;
    box-shadow: none !important;
}

.edit .field-section h2, .new .field-section h2 {
    border-bottom: 1px #edf2fa solid;
    margin-bottom: 15px;
    margin-top: 15px;
    padding-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 400;
}

.help-block {
    color: #7ea5dd;
    display: block;
    margin-top: 7px;
}

#form-actions-row {
    display: flex;
}

.field-money .input-group-addon {
    line-height: 2.5rem;
    margin-right: 10px;
}

@media (min-width: 576px) {
    #form-actions-row {
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    #form-actions-row {
        flex-direction: column;
    }
}

/* Custom file input. */
.custom-file-label.selected:lang(en)::after {
    content: "" !important;
}

.custom-file {
    overflow: hidden;
}

.custom-file-label {
    white-space: nowrap;
}

/* Image */
.pmxadmin-thumbnail img:hover {
    cursor: zoom-in;
}

.pmxadmin-thumbnail img{
    max-height: 80px;
}

.pmxadmin-lightbox {
    display: none;
}

.featherlight .pmxadmin-lightbox:hover {
    cursor: zoom-out;
}

.featherlight .pmxadmin-lightbox {
    display: block;
}

/* Delete modal */
#modal-delete-action .delete-error {
    display: none;
}

#modal-delete-action .delete-info-title .tags {
    margin-top: 15px;
}

.select2 {
    max-width: 100% !important
}

.featherlight .featherlight-content {
    margin: 0 15px;
}

.form-control + .alert {
    margin-top: 0.5rem;
}

.alert-icon > i {
    margin-top: -6px;
    font-size: 1.3em;
}

.custom-file-input:lang(de) ~ .custom-file-label::after {
  content: "Durchsuchen";
}

.pmxadmin-thumbnail {
    border: 1px solid rgba(0, 40, 100, 0.12);
    border-radius: 3px;
    
    padding: 2px;
    
    display: inline-block;
    
    min-width: 100px;
    min-height: 80px;
}

/**
 * Stamp
 */
.stamp i.flag {
    vertical-align: middle;
    margin-top: -1px;
}

/**
 * Collections
 */
.collection-form-widget-sortable-list-container {
    padding: 20px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    
    border: 1px solid rgba(0, 40, 100, 0.12);
    border-radius: 3px;
    background: #F9F9F9;
}

.collection-form-widget-sortable-list-container > div > .form-group:not(:last-child) {
    border-bottom: 1px solid rgba(0, 40, 100, 0.12);
}

.collection-form-widget-row {
    display: flex;
    flex-direction: row;
}

.collection-form-widget-row .collection-form-widget-row-widget {
    flex: 1 0 auto;
}

.collection-form-widget-row .collection-form-widget-row-buttons {
    flex: 0 0 45px;
    
    padding-left: 5px;
    
    display: flex;
    flex-direction: column;
}

.collection-form-widget-row .collection-form-widget-row-buttons > * {
    flex: 1 0 auto;
    
    margin-bottom: 5px;
}

.collection-form-widget-row .collection-form-widget-row-buttons > *:last-child {
    margin-bottom: 0;
}

.collection-form-widget-active-row {
    background: rgba(71, 215, 255, 0.3);
}

.collection-form-widget-active-row > * {
    visibility: hidden;
}

.collection-form-widget-active-row textarea {
    background: transparent;
}

@media (max-width: 576px) {
    .list .search-action {
        margin-top: 15px;
    }

    .list .new-action, .list .export-list, .list .delete-multiple-action, .list .extra-action {
        margin-top: 15px;
        margin-left: 0 !important;
    }

    .form-actions .btn {
        width: 100%;
    }

    .form-actions .btn:not(:last-child) {
        margin-bottom: 15px;
    }

    .list .card-body, .show .card-body {
        padding: 1rem 0.3rem;
    }

    .edit .card-body {
        padding: 1rem 0.6rem;
    }

    .list tbody {
        border: none;
    }
}

@media (max-width: 768px) {
    .list .search-container {
        flex-direction: column;
    }

    .list .search-action, .list .new-action, .list .export-list, .list .delete-multiple-action, .list .extra-action {
        margin-left: 0 !important;
        margin-top: 15px;
    }

    #t-entity-list .no-data {
        border: none;
    }

    #t-entity-list {
        border: none;
    }

    #t-entity-list thead {
        display: none;
    }

    #t-entity-list tr:not(:last-child) {
        display: block;
        margin-bottom: 1em;
    }

    #t-entity-list tbody {
        border: none;
    }

    #t-entity-list tbody td {
        display: block;
        text-align: right;
        height: 100%;
    }

    #t-entity-list tbody tr {
        border: 1px solid #dee2e6;
    }

    #t-entity-list tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }

    #t-entity-list tbody td.actions a:not(:last-child) {
        padding-right: 10px !important;
    }

    #t-entity-list td.min-width {
        width: auto !important;
    }

    .list .custom-checkbox .custom-control-label:before, .list .custom-checkbox .custom-control-label:after {
        left: -1rem;
    }
}

@media (min-width: 769px) {
    .list .search-group {
        justify-content: flex-end;
    }

    .list .search-field {
        max-width: 200px;
    }
}

/* style of paginator */
.list-pagination .list-pagination-counter {
    display: flex;
}

.list-pagination .list-pagination-counter strong:not(:first-child) {
    margin: 0 5px;
}

@media (min-width: 576px) {
    .list-pagination .list-pagination-paginator {
        justify-content: flex-end;
        margin-top: 15px;
    }

    .list-pagination .list-pagination-counter {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .list-pagination .list-pagination-paginator, .list-pagination .list-pagination-counter {
        justify-content: center;
    }

    .list-pagination .list-pagination-counter {
        margin-bottom: 10px;
    }
}

/* Style for time picker */
.ui-timepicker-standard .ui-state-hover {
    /* overwrites .ui-state-hover */
    font-family: inherit;
    background-color: rgba(70, 127, 207, 0.06);
    border: none;
    color: #212121;
}

.ui-timepicker-standard {
    /* overwrites .ui-widget */
    font-family: inherit;
    font-size: 1em;
    /* overwrites .ui-widget-content */
    background-color: #FFF;
    border: 1px solid #AAA;
    color: #222;
    /* overwrites .ui-menu */
    margin: 0;
    padding: 2px;
}

.menu-section-item.nav-item.dropdown {
    padding: 0;
    margin: 0 0 0 0.75rem;
    
    display: flex;
    flex-direction: column;
}

.menu-section-item.nav-item.dropdown .nav-link {
    font-weight: bold;
    
    padding: 0 1rem;
    
    border-radius: 0;
    
    flex: 1 0 auto;
    display: flex;
    
}

.menu-section-item.nav-item.dropdown .nav-link i {
    margin-right: 0;
    
    font-size: 2rem;
}

.menu-section-item.nav-item.dropdown .nav-link .section-name {
    width: 0;
    overflow: hidden;
}

.menu-section-item.nav-item.dropdown .nav-link .section-name span {
    margin-left: 0.25rem;
}
