/* brokenPIXEL Custom CSS Additions */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 3px 0;
    background-color: #fff;
}

.slimScrollDiv {
    margin-top: -9px;
}

#wrapper .sidebar {
    width: 180px;
}

.layout-fullwidth #wrapper .sidebar {
    left: -180px;
}

#wrapper .main {
    width: calc(100% - 180px);
}

#wrapper .main .alert {
    padding: 10px 35px 10px 15px;
}

#wrapper .main .profile-left .profile-detail .profile-info .alert.action-alert {
    padding: 10px 15px 10px 15px !important;
}

#wrapper .main .profile-left .profile-detail .profile-info .alert.action-alert button.close {
    line-height: .9 !important;
}

#wrapper #sidebar-nav,
#wrapper .main {
    padding-top: 64px;
}

.navbar-default .brand {
    padding: 0 10px 0 15px;
    font-size: 22px;
    background-color: transparent;
}

.navbar-default .brand a {
    color: #2B333E;
}

.navbar-default .brand a span:not(.unbold) {
    font-weight: 700;
}

.navbar-btn {
    padding: 0;
}

/* The contents editor loads KEditor's Bootstrap 3.4.1 after this file, which
   resets .navbar-form margins. The extra class keeps this rule winning. */
.navbar-default .navbar-form {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    padding: 10px;
}

/* Admin navbar is a flex row so the developer debug panel can fill the gap
   between the search box and the account menu. */
.navbar-default {
    display: flex;
    align-items: center;
}

.navbar-default>.brand {
    flex: 0 0 auto;
    float: none;
}

.navbar-default>.container-fluid {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-default>.container-fluid>.navbar-btn,
.navbar-default>.container-fluid>.navbar-form,
.navbar-default>.container-fluid>#navbar-menu {
    flex: 0 0 auto;
    float: none;
    width: auto;
}

.navbar-default>.container-fluid>#navbar-menu {
    margin-left: auto;
}

/* Developer debug panel, docked in the navbar. */
.navbar-dev-debug {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 12px;
}

.navbar-dev-debug-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    background-color: #f7f9fb;
    color: #676a6d;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.navbar-dev-debug-toggle:hover,
.navbar-dev-debug-toggle[aria-expanded="true"] {
    border-color: #3287b2;
    color: #3287b2;
}

.navbar-dev-debug-title {
    font-weight: 600;
    white-space: nowrap;
}

.navbar-dev-debug-meta {
    overflow: hidden;
    color: #9aa2a9;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar-dev-debug-toggle>i {
    margin-left: auto;
}

.navbar-dev-debug-body {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    min-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.navbar-dev-debug-body .tabbed .tab>label {
    white-space: nowrap;
}

/* Narrow screens: grow the debug dropdown leftwards so it stays on screen. */
@media screen and (max-width: 992px) {
    .navbar-dev-debug-body {
        left: auto;
        right: 0;
    }
}

/* Admin header type-ahead results. */
.admin-search-results {
    position: absolute;
    top: 75%;
    left: 15px;
    z-index: 1050;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    margin-top: 2px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.admin-search-results[hidden] {
    display: none;
}

.admin-search-group + .admin-search-group {
    border-top: 1px solid #e6ebf0;
}

.admin-search-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 3px;
    color: #8a97a4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-search-group-count {
    margin-left: auto;
    color: #bbb;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.admin-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    color: #333;
    text-decoration: none;
}

.admin-search-item:hover,
.admin-search-item:focus {
    background: #f2f7fc;
    color: #1b6ca8;
    text-decoration: none;
}

.admin-search-icon,
.admin-search-icon-img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef2f6;
}

.admin-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b8a99;
    font-size: 14px;
}

.admin-search-icon-img {
    object-fit: cover;
}

.admin-search-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-search-title {
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-search-subtitle {
    color: #888;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-search-item.is-inactive .admin-search-title::after {
    content: " (inactive)";
    color: #b94a48;
    font-weight: 400;
    font-size: 11px;
}

.admin-search-empty {
    margin: 0;
    padding: 10px 14px;
    color: #888;
    font-size: 13px;
}

.admin-search-all {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px 14px;
    border: 0;
    border-top: 1px solid #eee;
    background: #f7f9fb;
    color: #1b6ca8;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.admin-search-all:hover,
.admin-search-all:focus {
    background: #eef4fa;
    outline: 0;
}

.admin-search-all-count {
    color: #8aa0b3;
    font-weight: 400;
}

/* Header search buttons: icon-only Go and Clear. */
.admin-search-go,
.admin-search-clear {
    padding-left: 12px;
    padding-right: 12px;
}

.admin-search-clear[hidden] {
    display: none;
}

/* Full-screen results dialog. */
body.admin-search-dialog-open {
    overflow: hidden;
}

.admin-search-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.admin-search-dialog[hidden] {
    display: none;
}

.admin-search-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 26, 33, .55);
}

.admin-search-dialog-panel {
    position: absolute;
    top: 4vh;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(1100px, 92vw);
    height: 88vh;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.admin-search-dialog-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
    background: #f7f9fb;
}

.admin-search-dialog-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-search-dialog-field {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    max-width: 460px;
}

.admin-search-dialog-input {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.admin-search-dialog-clear {
    flex: 0 0 auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.admin-search-dialog-clear[hidden] {
    display: none;
}

.admin-search-dialog-close {
    margin-left: auto;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #888;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.admin-search-dialog-close:hover {
    color: #333;
}

.admin-search-dialog-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
}

.admin-search-dialog-group + .admin-search-dialog-group {
    border-top: 1px solid #e6ebf0;
}

.admin-search-dialog-body .admin-search-group-label {
    padding: 5px 22px 3px;
}

.admin-search-dialog-body .admin-search-item {
    padding: 9px 22px;
}

.navbar-nav .icon-menu,
.navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sidebar .nav>li>a {
    padding: 10px 10px;
}

/* Sidebar group heading is now a collapsible parent, so the old static
   label style is gone. The chevron and collapse behaviour come from the
   existing .sidebar .nav rules. */

/* In-page tab strip, used where a screen has several facets so the sidebar
   does not need a third level. It sits flush against the panel below it, the
   way a tabbed panel is meant to look: no bottom margin, and the panel's top
   corners are squared off so the strip and the panel read as one block. */
.admin-page-tabs {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.admin-page-tabs + .row > [class*="col-"] > .panel,
.admin-page-tabs + .row > [class*="col-"] > .panel:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Bootstrap's tab plugin puts `active` on the <a>, not the <li>, so the theme's
   li.active > a rule never matches and the selected tab looks unselected. */
.admin-page-tabs > li > a.active,
.admin-page-tabs > li > a.active:hover,
.admin-page-tabs > li > a.active:focus {
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: #fff;
    color: #4a5560;
    cursor: default;
}

.sidebar .nav .nav>li>a {
    padding: 7px 10px;
}

.main-content {
    padding: 0;
    /* The admin footer is position:fixed, so reserve its height or the last
       rows of a long page sit permanently underneath it. */
    padding-bottom: 45px;
}

.page-title {
    color: #000;
    margin-bottom: 20px;
}

select[multiple].form-control {
    height: 114px;
    padding: 5px;
}

select.form-control option {
    height: 34px;
    padding: 7px 10px;
}

/* Panels */
.panel {
    -webkit-box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
    /* -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none; */
    border-radius: 4px;
}

.panel .panel-body {
    padding: 5px 15px;
}

/* Tables */
.table.table-striped {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

/* Panels with a soft image along the bottom edge. Shared by any admin screen. */
.panel-bottom-bg {
    background-image: url('../img/panel-bottom-bg.png');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

/* A tab strip that sits inside a panel, directly above its heading. The panel
   body's own padding would otherwise leave a gap between the tabs and the
   content below them. */
.panel > .panel-body > .nav-tabs {
    margin-bottom: 0;
    /* border-bottom: 0; */
}
.panel > .panel-body > .nav-tabs + .panel-heading,
.panel > .panel-body > .nav-tabs ~ .panel-heading {
    margin-top: 0;
}

/* Filter bar that pins under the fixed admin navbar once it scrolls past.
   Applied to the .row wrapper, not the panel: a sticky element only travels
   inside its parent, and the panel's own column is exactly as tall as itself.
   bp_custom.js measures the navbar height into --filter-sticky-top and toggles
   .is-stuck, which drops the column gutters so the bar spans the full content
   width while pinned. z-index stays below the navbar's 1030 so the navbar
   keeps painting over it. */
.filter-sticky {
    position: sticky;
    top: var(--filter-sticky-top, 54px);
    z-index: 1020;
}
.filter-sticky > [class*="col-"] > .panel {
    background-color: #fff;
    box-shadow: 0 4px 8px -6px rgba(0, 0, 0, .35);
}
.filter-sticky.is-stuck > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Users list: a temporarily locked-out account is tinted so it stands out
   without looking like an error. The Unlock action sits first in the row. */
#usersListingTable tr.row-locked-out > td {
    background-color: #fbe6ea;
}
#usersListingTable tr.row-locked-out:hover > td {
    background-color: #f7d3da;
}

/* Login Screen */.auth-box {
    width: 30%;
    /* Height is driven by the content, not a fixed box: the login form grows
       when a validation error or the method picker is shown, and a fixed
       height let the buttons spill outside the card. The left column is
       floated, so the box needs to contain it or it will not grow. */
    height: auto;
    min-height: 400px;
    padding-bottom: 20px;
    display: flow-root;
}

.auth-box .left {
    width: 100%;
}

.auth-box .right {
    background-image: url('/assets/klorofil/img/bp-logo-bg.png');
    background-position-x: -35px;
    width: 70%;
}

.auth-box .right .overlay {
    background: rgba(99, 156, 185, 0.32);
}

.auth-box .right .heading {
    margin-top: 350px;
}

.auth-box .right .text {
    text-align: right;
}

.profile-header .profile-main {
    /* background-image: url('../../img/profile-bg3.jpg');
    background-position-y: center; */
    background-color: #2b333e;
}

/* A fixed square box keeps .img-circle round for any source aspect ratio; cover
   crops instead of stretching. */
.profile-header .profile-main .profile-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* main.min.css takes the left column out of flow above 992px, so the panel sizes
   itself from the right column alone and the gallery/upload spill below its
   background. Put the column back in flow so the panel grows to contain it. */
@media screen and (min-width: 993px) {
    .panel-profile .profile-left {
        position: relative;
        height: auto;
    }
}

.profile-info {
    margin: 20px 0;
}

.profile-info .profile-gallery {
    margin-bottom: 10px;
}

.profile-info .profile-gallery>div {}

.profile-info .profile-gallery .profile-gallery-thumb {
    max-width: 100%;
    padding: 10px;
}

.profile-right h4 {
    margin-top: 0;
}

.profile-right .left {
    border-right: 1px solid #eee;
}

.panel .profile-right {
    padding-bottom: 5px;
}

.cursor-pointer {
    cursor: pointer;
}

.action-buttons-col {
    width: auto;
}

.user-info-td {
    padding: 3px 0 4px 78px !important;
}

/* Users Listing DataTable */
div.dataTables_wrapper {
    padding-top: 8px;
}

div.dataTables_wrapper table.dataTable {
    margin-top: 0 !important;
}

div.dataTables_wrapper table.dataTable thead .sorting:before,
div.dataTables_wrapper table.dataTable thead .sorting:after,
div.dataTables_wrapper table.dataTable thead .sorting_asc:before,
div.dataTables_wrapper table.dataTable thead .sorting_asc:after,
div.dataTables_wrapper table.dataTable thead .sorting_desc:before,
div.dataTables_wrapper table.dataTable thead .sorting_desc:after,
div.dataTables_wrapper table.dataTable thead .sorting_asc_disabled:before,
div.dataTables_wrapper table.dataTable thead .sorting_asc_disabled:after,
div.dataTables_wrapper table.dataTable thead .sorting_desc_disabled:before,
div.dataTables_wrapper table.dataTable thead .sorting_desc_disabled:after {
    display: none;
}

/* Sort arrows are hidden above, so reduce DataTables' 30px right padding reserved for them.
   The first (ID) column keeps its own 0 right padding set further down. */
div.dataTables_wrapper table.dataTable thead > tr > th.sorting:not(:first-of-type),
div.dataTables_wrapper table.dataTable thead > tr > th.sorting_asc:not(:first-of-type),
div.dataTables_wrapper table.dataTable thead > tr > th.sorting_desc:not(:first-of-type),
div.dataTables_wrapper table.dataTable thead > tr > td.sorting:not(:first-of-type),
div.dataTables_wrapper table.dataTable thead > tr > td.sorting_asc:not(:first-of-type),
div.dataTables_wrapper table.dataTable thead > tr > td.sorting_desc:not(:first-of-type) {
    padding-right: 10px;
}

div.dataTables_wrapper div.dataTables_filter {
    position: relative;
}

/* The Export button group floats in the wrapper while the search input is
   absolutely positioned, so the two do not share a baseline. Float the group
   right so it sits to the right of the search field, and nudge it up to sit
   level with the top of that field. */
div.dataTables_wrapper .dt-buttons {
    float: right;
    margin-top: -4px;
}

div.dataTables_wrapper div.dataTables_filter label {
    position: absolute;
    right: 80px;
    top: -39px;
}

/* A table with paging disabled has no length menu, so the filter block sits at
   the top of the wrapper and the -39px offset above would push the search field
   out of it. Line it up with the Export button instead. */
div.dataTables_wrapper:not(:has(.dataTables_length)) div.dataTables_filter label {
    top: -4px;
}

div.dataTables_wrapper div.dataTables_filter input {
    height: 30px;
}

div.dataTables_wrapper .dataTables_length select {
    margin: 0 5px;
}

div.dataTables_wrapper .dataTables_length select::after {
    display: none;
}

div.dataTables_wrapper .dataTables_info {
    width: 50%;
    float: left;
    padding-top: 12px;
}

div.dataTables_wrapper .dataTables_paginate {
    width: 50%;
    float: left;
    text-align: right;
    margin-top: 10px !important;
}

div.dataTables_wrapper .dataTable thead tr th:first-of-type {
    width: 20px;
    padding: 5px 0 5px 8px;
    text-align: center;
}

div.dataTables_wrapper .dataTable tbody tr td:first-of-type {
    width: 20px !important;
    padding: 8px 0 6px 8px;
    text-align: center;
}

div.dataTables_wrapper .dataTable tbody tr td:last-of-type {
    padding: 6px 8px;
    text-align: right;
}

div.dataTables_wrapper .dataTable tbody tr td input {
    height: 30px;
}

div.dataTables_wrapper .dataTable thead tr th:last-of-type {
    padding-right: 10px;
    text-align: right;
}

/* The last column of a DataTable is the action column, so it reads right. */
div.dataTables_wrapper table.dataTable thead th:last-of-type,
div.dataTables_wrapper table.dataTable thead td:last-of-type,
div.dataTables_wrapper table.dataTable tfoot th:last-of-type,
div.dataTables_wrapper table.dataTable tfoot td:last-of-type {
    text-align: right;
}

.table.table-condensed.dash-table > thead > tr > th, 
.table.table-condensed.dash-table > tbody > tr > td {
    padding: 5px 0 5px 0;
}

/* Backups table: first column is the backup name, not a checkbox */
#backups-table th:first-child,
#backups-table td:first-child {
    width: auto !important;
    text-align: left !important;
    padding-left: 8px !important;
}

#backups-table th:last-child,
#backups-table td:last-child {
    text-align: right;
}

.btn-group-xs>.btn,
.btn-xs {
    line-height: 1;
}

#toTopBtn {
    display: none;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 4px 10px 3px;
    border-radius: 4px;
    opacity: 0.6;
}

#toTopBtn:hover {
    /*background-color: #555;*/
    opacity: 1;
}

.auth-message p {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    margin-top: 10px;
    padding: 10px 0;
}

.slider.slider-horizontal,
.permission-slider {
    width: 100% !important;
    margin-left: 15px;
}

.slider.slider-horizontal:after {
    margin-bottom: 15px;
}

.sidebar .nav .nav>li>a {
    padding-left: 41px !important;
}

.sidebar .nav .nav>li>a:focus,
.sidebar .nav .nav>li>a.active {
    font-weight: 700;
}

.profile-header .online-status.status-unavailable:before {
    background-color: #f03205;
}

.clients-main-page .metric {
    padding: 10px;
    margin-bottom: 20px;
}

/* Install errors */
.has-error {
    color: #a94442;
    font-weight: 700;
    background-color: #f2cbca;
    margin: 20px 0 0px 0;
    padding: 10px 20px;
}

/* Scrollbars */
/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #eee;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #bbb;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.btn-xxs {
    padding: 0 5px;
}

/* Kanban */
.card-body h4.card-title {
    margin: 0 0 14px;
}

.metric .icon {
    width: 35px;
    height: 35px;
    line-height: 37px;
}

/* Clients */
#clientcontent .row .well {
    padding: 0 10px 10px;
    min-height: 110px;
}

#clientcontent .row .well p.service-note {
    padding-right: 34px;
}

.client-card .icon {
    width: 50px;
    height: 50px;
    line-height: 60px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    float: right;
    background-color: #0081c2;
    text-align: center;
    color: #fff;
    margin-top: 10px;
    opacity: 0.2;
}

.client-card .icon .fa {
    font-size: 25px;
}

.client-card h4 span {
    font-size: 14px;
}

#clientcontent .row .well h4 {
    line-height: 24px;
}

#clientcontent .row .well hr {
    border: 1px solid #ddd;
    margin: 8px 0;
}

#clientcontent .listing-count h3 {
    margin: 0 0 20px;
}

/* Sprite Stuff */
.sprite-delete,
.sprite-edit,
.sprite-search,
.sprite-users,
.sprite-delete-comment,
.sprite-edit-comment,
.sprite-calendar,
.sprite-print,
.sprite-restore,
.sprite-arrow,
.sprite-billable,
.sprite-copy,
.sprite-accept {
    width: 16px;
    height: 16px;
    background: url(../../img/sprite-sheet.png);
    cursor: pointer;
}

.sprite-accept.left,
.sprite-copy.left {
    float: left;
    margin-right: 4px;
}

.sprite-calendar {
    background-position: -96px top;
}

.sprite-print {
    background-position: -112px top;
}

.sprite-arrow {
    background-position: -128px top;
}

.sprite-restore {
    background-position: -144px top;
}

.sprite-billable {
    background-position: -160px top;
}

.sprite-copy {
    background-position: -178px top;
}

.sprite-accept {
    background-position: -194px top;
}

.sprite-delete.right {
    margin: 0 0 0 6px;
}

/* margins, padding, helpers etc */
.margin-top-5 {
    margin-top: 5px;
}

.margin-bottom-5 {
    margin-bottom: 5px;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

/* Clearable Inputs */
.clearable {
    position: relative;
    display: block;
}

.clearable input[type=text] {
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

.clearable__clear {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 8px;
    font-style: normal;
    font-size: 1.6em;
    user-select: none;
    cursor: pointer;
    font-weight: 900;
    color: red;
}

.clearable input::-ms-clear {
    /* Remove IE default X */
    display: none;
}

.relative {
    position: relative;
}

.client-content-well-trash {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: red;
    font-size: 30px;
    cursor: pointer;
}

.well.client-card {
    min-height: 80px;
}

.users-services-row.usr-first,
.users-services-row.usr-last {
    padding-top: 6px;
}

h5.modal-title {
    font-size: 24px;
    float: left;
}

.reportlinks .metric {
    min-height: 115px;
}

#editorpanel .panel-body {
    margin: 15px 0;
    border-top: none;
}

#editorpanel .panel-heading {
    padding: 10px 10px 10px 18px;
}

#editorpanel .panel-heading a {
    font-weight: 500;
}

#editorpanel .panel-heading .accordion-toggle:after {
    /* symbol for "opening" panels */
    font-family: 'Glyphicons Halflings';
    /* essential for enabling glyphicon */
    content: "\e114";
    /* adjust as needed, taken from bootstrap.css */
    float: right;
    /* adjust as needed */
    color: grey;
    /* adjust as needed */
}

#editorpanel .panel-heading .accordion-toggle.collapsed:after {
    /* symbol for "collapsed" panels */
    content: "\e080";
    /* adjust as needed, taken from bootstrap.css */
}

#menuItemsAccordion .collapse.show {
    display: block;
}

#editorpanel .pages-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px;
    cursor: pointer;
    margin-bottom: 5px;
}

#editorpanel .pages-menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#editorpanel .pages-menu-item span {
    margin: -8px -20px 0 0;
    font-size: 24px;
}

#formsTabsContent {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

select.form-control {
    padding-right: 10px;
}

/* Menu Sorting */
#s-l-base dt,
#sTreeWrap dt {
    font-style: italic;
    font-weight: bold;
}

#s-l-base li,
#sTreeWrap ul.text li {
    list-style: none;
}

#s-l-base,
#s-l-base li,
#sTreeWrap ul,
#sTreeWrap li {
    list-style-type: none;
    color: #b5e853;
    border: 1px solid #3f3f3f;
}

#s-l-base,
#s-l-base li,
#sTreeWrap ul,
#sTreeWrap #sTree {
    padding: 0;
    background-color: #151515;
}

#s-l-base li,
#sTreeWrap #sTree li,
#sTreeWrap #sTreePlus li,
#sTreeWrap ul#s-l-base li {
    padding-left: 40px;
    margin: 5px;
    border: 1px solid #3f3f3f;
    background-color: #3f3f3f;
}

#s-l-base li div,
#sTreeWrap li div {
    padding: 7px;
    background-color: #222;
}

#s-l-base li,
#s-l-base div,
#sTreeWrap li,
#sTreeWrap ul,
#sTreeWrap div {
    border-radius: 3px;
}

#sTreeWrap #sTree {
    margin: 10px auto;
}

#sTreeWrap .clickable {
    cursor: pointer;
}

#s-l-base .far.fa-times-circle,
#sTreeWrap .far.fa-times-circle {
    margin: -25px 10px 0 0;
}

#sTreeWrap .menu-loggedin-label,
#sTreeWrap .menu-loggedout-label {
    margin: -26px 36px 0 0;
    font-weight: normal;
    font-size: 11px;
    color: #b5e853;
    cursor: pointer;
    white-space: nowrap;
}

/* The two flags sit side by side above the item. Both are floated right, so
   the one written first in the markup ends up furthest right; the second is
   pushed further left to clear it. */
#sTreeWrap .menu-loggedout-label {
    margin-right: 140px;
}

#sTreeWrap .menu-loggedin-label input,
#sTreeWrap .menu-loggedout-label input {
    margin: 0 3px 0 0;
    vertical-align: middle;
}

.toolbar .view-content {
    display: none;
}

/* DataTables forces thead th to text-align:left, which outranks .text-right. */
table#contents-table thead th.text-right {
    text-align: right;
}

/* table#contents-table th:nth-child(2) {
    text-align: center;
} */
table#contents-table span.btn.btn-xxs.disabled {
    padding: 1px 6px 3px 8px;
    border-radius: 0.25em;
    color: #000000;
    font-weight: 900;
    font-size: 75%;
}

.display-table-cell {
    display: table-cell;
}

.fas.fa-times-circle.fa-2x.red,
.fas.fa-check-circle.fa-2x.green {
    cursor: pointer;
}

/* media queries */
@media screen and (max-width: 1200px) {
    .hide-below-1200 {
        display: none;
    }

    .auth-box {
        width: 35%;
    }
}

@media screen and (max-width: 1024px) {
    .hide-below-1024 {
        display: none;
    }

    #wrapper .sidebar {
        left: -180px;
    }

    .layout-fullwidth.offcanvas-active #wrapper .sidebar {
        left: 0;
    }

    #wrapper .main {
        width: 100%;
    }

    .layout-fullwidth.offcanvas-active #wrapper .main {
        left: 0;
    }

    .auth-box {
        width: 60%;
    }
}

@media screen and (max-width: 992px) {
    .hide-below-992 {
        display: none;
    }

    #wrapper .main {
        margin-bottom: 50px;
    }

    .navbar-default .brand {
        display: inline-block;
    }

    /* Kanban Cards */
    .card.draggable .card-body p,
    .card.draggable .card-body .icon {
        display: none;
    }

    .card.draggable .card-body .card-title a {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .hide-below-768 {
        display: none;
    }

    .auth-box {
        width: 95%;
    }

    #wrapper .navbar {
        height: 60px;
    }

    #navbar-menu .navbar-nav {
        margin: 0;
    }

    #navbar-menu .nav.navbar-nav>li {
        width: 64px !important;
        float: right;
    }

    .navbar-default #navbar-menu {
        width: 68%;
        float: right;
    }

    /*#services, #domains {
        height: 50px;
    }*/
}

@media screen and (max-width: 640px) {
    .hide-below-640 {
        display: none;
    }

    .user-info-td {
        padding: 6px 10px 8px 10px !important;
    }

    .client-card .icon {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .client-card .icon .fa {
        font-size: inherit;
    }

    .client-content-well-trash {
        right: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hide-below-480 {
        display: none;
    }

    .page-title {
        font-size: 16px;
    }

    .action-buttons-col {
        width: 100px;
    }
}

@media screen and (max-width: 340px) {
    #wrapper .main {
        padding-top: 140px;
    }
}
/* Admin listings: keep column headings on one line */
.table > thead > tr > th,
div.dataTables_wrapper table.dataTable thead > tr > th { white-space: nowrap !important; }

/* Category picture with its name badge centered just over the bottom edge (performers listing) */
.category-pic { display: inline-block; vertical-align: top; text-align: center; margin: 0 4px 4px 0; white-space: nowrap; cursor: pointer; }
.category-pic:hover img { opacity: .8; }
.category-pic img { display: block; width: 36px; height: 36px; margin: 0 auto; object-fit: cover; }
.category-pic .label { position: relative; z-index: 1; display: table; margin: -5px auto 0; padding: 3px 5px; font-size: 12px; line-height: 1.2; }
/* ---------------------------------------------------------------------------
   Bootstrap 4 JS against Bootstrap 3 CSS.
   The admin loads Bootstrap 4.5.0's JS but Bootstrap 3.3.7's stylesheet. BS4
   marks an open modal with .show while BS3 only animates .in, so modals open
   with opacity 0 and the dialog translated off-screen. Mirror .show onto .in.
   --------------------------------------------------------------------------- */
.modal.show { opacity: 1; }
.modal.show .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); }
.modal-backdrop.show { opacity: .5; }

/* ---------------------------------------------------------------------------
   Themes screen: WordPress-style card grid.
   Three square-ish cards per row, each showing the theme's preview image,
   name, status and actions. The Add Theme tile is a placeholder.
   --------------------------------------------------------------------------- */
.theme-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 0 22px; }
.theme-search { display: inline-block; margin: 0; font-weight: normal; }
.theme-search .form-control { width: 260px; display: inline-block; vertical-align: middle; }
.theme-search-label { margin: 0 8px 0 0; font-weight: 600; color: #4a5560; vertical-align: middle; }

.theme-grid { display: flex; flex-wrap: wrap; margin: 0 -22px; padding: 0 22px; }

.theme-card {
    display: flex;
    flex-direction: column;
    width: calc(33.3333% - 44px);
    margin: 0 22px 44px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.theme-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transform: scale(1.015);
}
.theme-card { cursor: pointer; }

/* Preview image: fixed square so every card lines up. */
.theme-card-shot {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: #f2f4f6;
    overflow: hidden;
}
.theme-card-shot img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: auto;
    object-fit: contain;
    object-position: top center;
    display: block;
}
.theme-card-noimg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    color: #c3c9d0;
}
.theme-card-flag {
    position: absolute;
    top: 12px; left: 12px;
    padding: 7px 18px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    background: #1e88e5;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.theme-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; border-top: 1px solid #b8bfc7; }
.theme-card-name { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.theme-card-name small { display: block; font-size: 12px; font-weight: normal; color: #4a5560; }
.theme-card-meta { margin: 0 0 8px; }
.theme-card-ver { margin-left: 6px; font-size: 12px; color: #3d4650; }
.theme-card-desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #3d4650;
    /* Keep every card the same height regardless of description length. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-card-actions { margin-top: auto; }
.theme-card-actions .btn { margin: 0 4px 4px 0; }


/* Add Theme placeholder tile. */
.theme-card-add {
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #f7f8fa;
    border: 2px dashed #d3d9e0;
    box-shadow: none;
    cursor: default;
}
.theme-card-add-inner { text-align: center; color: #4a5560; }
.theme-card-add-icon {
    display: block;
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    line-height: 64px;
    font-size: 26px;
    color: #b9c1ca;
    background: #e9edf1;
    border-radius: 50%;
}
.theme-details-body .table > tbody > tr > td { color: #3d4650; }
.theme-card-add-label { font-size: 14px; }

.theme-empty-note { margin: 0 10px 20px; }

@media (max-width: 1100px) {
    .theme-card { width: calc(50% - 44px); }
}
@media (max-width: 700px) {
    .theme-card { width: calc(100% - 44px); }
    .theme-toolbar { text-align: left; }
    .theme-search .form-control { width: 100%; }
}
/* Themes screen: Details modal. The panel markup is rendered inside each card
   and cloned into this overlay on click, so the data stays server-side. */
.theme-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1050;
    background: rgba(20, 26, 33, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.theme-modal {
    width: 100%;
    max-width: 96vw;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.theme-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #e3e6ea;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.theme-details-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.theme-details-head h3 small { margin-left: 6px; font-size: 13px; font-weight: normal; color: #4a5560; }
.theme-details-close {
    padding: 0 6px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #98a2ad;
    cursor: pointer;
}
.theme-details-close:hover { color: #333; }
.theme-details-body { min-height: 65vh; padding: 18px 22px 24px; }
.theme-details-shot {
    position: relative;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}
.theme-details-shot img { display: block; width: 100%; height: auto; max-width: 100%; }
@media (max-width: 991px) {
    .theme-details-shot { margin-bottom: 10px; }
}
.theme-details-info .theme-details-desc { margin-bottom: 12px; }
.theme-details-info .theme-details-actions { margin-bottom: 0; }
/* Below the md breakpoint the two columns stack, so the image needs breathing
   room before the details start. */
@media (max-width: 991px) {
    .theme-details-shot { margin-bottom: 10px; }
}
.theme-details-meta { margin: 0 0 10px; }
.theme-details-desc { margin: 0 0 16px; color: #3d4650; }
.theme-details-actions { margin: 0 0 20px; }
.theme-details-actions .btn { margin: 0 6px 6px 0; }
.theme-details-h { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.theme-details-body .table { margin-bottom: 0; }

/* Previous/Next bar pinned to the bottom of the Details modal. */
.theme-modal-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    border-top: 1px solid #e3e6ea;
}
.theme-modal-foot .btn { margin: 0; }
.theme-modal-foot .btn[disabled] { opacity: .45; cursor: default; }

/* Themes screen: Grid / List view switch. */
.theme-viewswitch { display: inline-block; vertical-align: middle; }
.theme-view-btn {
    padding: 6px 12px;
    border: 1px solid #d3d9e0;
    background: #fff;
    color: #4a5560;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.theme-view-btn:first-child { border-radius: 3px 0 0 3px; }
.theme-view-btn:last-child { border-radius: 0 3px 3px 0; border-left: 0; }
.theme-view-btn i { margin-right: 5px; }
.theme-view-btn:hover { background: #f2f4f6; }
.theme-view-btn.is-active { background: #1e88e5; border-color: #1e88e5; color: #fff; }

/* List view: the previous stacked-panel layout. One full-width row per theme,
   small preview on the left, details to the right. */
.theme-grid-list { display: block; padding: 0 22px; margin: 0; }
.theme-grid-list .theme-card {
    flex-direction: row;
    width: 100%;
    margin: 0 0 12px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.theme-grid-list .theme-card:hover { transform: scale(1.008); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.theme-grid-list .theme-card-shot {
    flex: 0 0 150px;
    width: 150px;
    padding-top: 0;
    min-height: 120px;
    margin: 12px 16px 12px 12px;
    border-right: 1px solid #b8bfc7;
    border-radius: 3px;
}
.theme-grid-list .theme-card-flag { top: 6px; left: 6px; padding: 3px 8px; font-size: 10px; letter-spacing: .03em; }
.theme-grid-list .theme-card-body { border-top: 0; padding: 12px 16px; }
.theme-grid-list .theme-card-name { font-size: 16px; }
.theme-grid-list .theme-card-name small { display: inline; margin-left: 6px; }
.theme-grid-list .theme-card-desc { -webkit-line-clamp: 2; margin-bottom: 10px; }
.theme-grid-list .theme-card-add { min-height: 120px; }
.theme-grid-list .theme-card-add-inner { display: flex; align-items: center; gap: 12px; }
.theme-grid-list .theme-card-add-icon { margin: 0; width: 44px; height: 44px; line-height: 44px; font-size: 20px; }

@media (max-width: 700px) {
    .theme-toolbar { flex-wrap: wrap; gap: 10px; }
    .theme-grid-list .theme-card { flex-direction: column; }
    .theme-grid-list .theme-card-shot { flex: none; width: 100%; padding-top: 75%; border-right: 0; border-bottom: 1px solid #b8bfc7; }
}
/* Dashboard panels (core metrics) */
.dash-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.dash-stat {
    flex: 1 1 0;
    min-width: 70px;
    text-align: center;
    padding: 6px 4px;
    border-radius: 3px;
    background-color: #f7f9fb;
}

.dash-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: #676a6d;
}

.dash-stat-label {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa2a9;
}

/* A fixed column count, used by widgets that want a tidy grid rather than a
   single stretched row. Three per row gives two rows of three for six tiles. */
.dash-stat-row-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dash-stat-row-cols-3 .dash-stat {
    flex: none;
    min-width: 0;
}

/* Six tiles on one row, used where the whole strip should read as a single
   band rather than a grid. Steps down on narrow screens so the values stay
   legible. */
.dash-stat-row-cols-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.dash-stat-row-cols-6 .dash-stat {
    flex: none;
    min-width: 0;
}

@media (max-width: 992px) {
    .dash-stat-row-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .dash-stat-row-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Iconed tiles: a grey square holding the icon, with the amount beneath it. */
.dash-stat-iconed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
}

.dash-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background-color: #e9edf1;
    color: #6b7783;
    font-size: 18px;
    line-height: 1;
}

.dash-stat-iconed .dash-stat-value {
    font-size: 18px;
    line-height: 1.2;
}

.dash-stat-iconed .dash-stat-label {
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

.dash-table {
    margin-bottom: 0;
}

.dash-table > thead > tr > th {
    border-bottom: 1px solid #e6eaee;
    font-size: 16px;
    text-transform: uppercase;
    color: #9aa2a9;
}

/* Two half-width notes on one line, e.g. status left and timestamp right. */
.dash-note-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dash-note-row>p {
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
}

.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 130px;
}

.dash-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.dash-bar-value {
    font-size: 16px;
    color: #676a6d;
}

.dash-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background-color: #f3f5f8;
    border-radius: 2px;
}

.dash-bar-fill {
    width: 100%;
    background-color: #3287b2;
    border-radius: 2px;
}

.dash-bar-label {
    margin-top: 4px;
    font-size: 16px;
    color: #9aa2a9;
}

.dash-feed {
    margin: 0;
    max-height: 190px;
    overflow-y: auto;
    background-color: #eef3f7;
}

.dash-feed > li {
    padding: 6px 6px;
    border-bottom: 1px solid #dddddd;
    font-size: 16px;
}

.dash-feed > li:last-child {
    border-bottom: 0;
}

.dash-feed-type {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 2px;
    background-color: #eef3f7;
    font-size: 16px;
    color: #3287b2;
}

.dash-feed-text {
    padding-left: 5px;
    color: #676a6d;
}

.dash-feed-meta {
    display: block;
    padding-left: 5px;
    font-size: 16px;
    color: #9aa2a9;
}

/* A whole panel used as a link, e.g. the Support dashboard cards. */
a.dash-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

a.dash-card-link:hover,
a.dash-card-link:focus {
    color: inherit;
    text-decoration: none;
    background-color: #eef3f7;
}

a.dash-card-link h6 {
    font-size: 16px;
}

/* A stat tile that links somewhere: the whole tile is the hit area. */
.dash-stat-link {
    position: relative;
    transition: background-color .15s ease;
}

.dash-stat-link:hover {
    background-color: #eef3f7;
}

.dash-stat-hit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.dash-feed-text a,
.dash-table a {
    color: #3287b2;
}

/* Drill-down links in a widget footer. */
.dash-links {
    margin: 0;
    font-size: 16px;
}

.dash-links a {
    display: inline-block;
    margin-right: 14px;
    color: #3287b2;
}

.dash-links a:last-child {
    margin-right: 0;
}

.dash-links a .fa {
    margin-left: 4px;
    font-size: 16px;
}

/* Panel spacing, applied admin-wide. */
.panel .panel-heading {
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
}

.panel .panel-body,
.panel .panel-footer,
.panel .panel-heading {
    padding-left: 15px;
    padding-right: 15px;
}

/* The theme indents the first and last cell of every panel table by 25px.
   Panel bodies are already padded, so drop that indent. */
.panel .table>tbody>tr>td:first-child,
.panel .table>tbody>tr>td:last-child,
.panel .table>tbody>tr>th:first-child,
.panel .table>tbody>tr>th:last-child,
.panel .table>tfoot>tr>td:first-child,
.panel .table>tfoot>tr>td:last-child,
.panel .table>tfoot>tr>th:first-child,
.panel .table>tfoot>tr>th:last-child,
.panel .table>thead>tr>td:first-child,
.panel .table>thead>tr>td:last-child,
.panel .table>thead>tr>th:first-child,
.panel .table>thead>tr>th:last-child {
    padding-left: 0;
}

/* Dashboard panel header controls (collapse / close) */
.panel .panel-heading .panel-title {
    padding-right: 0;
}

.panel .panel-heading .panel-subtitle {
    padding-right: 60px;
    margin-bottom: 0;
}

.panel .panel-heading .right {
    top: 10px;
    right: 15px;
}

.panel .panel-heading .right button {
    color: #9aa2a9;
    cursor: pointer;
}

.panel .panel-heading .right button:hover {
    color: #3287b2;
}

/* Install action: white with black text, so it reads as neutral rather than
   as a primary action. */
.label-install {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

.label-install:hover,
a:hover .label-install {
    background-color: #f5f5f5;
    color: #000;
}

/* Status labels: a touch more horizontal room than Bootstrap's default.
.label {
    padding: .2em .75em .3em .6em;
} */

/* Action badges are clickable controls, so they always show a pointer.
   A disabled badge is still a badge, so it keeps the pointer too; only the
   colour and the missing handler tell the user it does nothing. */
.label.label-warning,
.label.label-danger,
.label.label-info,
.label.label-success,
.label.label-primary,
.label.label-default {
    cursor: pointer;
}

/* A disabled badge must not look or behave like a live one. The wrapping
   anchor is removed in the markup, so this only has to stop the hover lift
   and dim the colour. */
.label.disabled,
.label[disabled] {
    cursor: pointer;
    opacity: .55;
    box-shadow: none;
}

.label.disabled:hover,
.label[disabled]:hover {
    opacity: .55;
}

/* Trash and Module share one column, so they share one width.
   An inline element paints its background over the font's content area, but an
   inline-block paints it over line-height. The base .label sets line-height: 1,
   so switching to inline-block would make these two shorter than Edit and View.
   line-height: normal restores the font metrics and the heights match again. */
table#contents-table .bp-action-fixed {
    display: inline-block;
    min-width: 62px;
    line-height: normal;
    text-align: center;
}

/* The theme strips padding, background and border from every button inside a
   panel heading, because that rule was written for the collapse toggle. Real
   buttons in a panel heading (Add Term, Edit, Delete) need their own styling
   back. Specificity has to beat `.panel .panel-heading button`. */
.panel .panel-heading .btn {
    padding: 5px 14px;
    margin-left: 0;
    border: 1px solid transparent;
    outline: 0;
}

/* A 14px icon inside a 12px button makes the button 2px taller than its
   neighbours, so the icon is matched to the button's own line box. */
.panel .panel-heading .btn > i {
    font-size: 12px;
    line-height: 12px;
    vertical-align: baseline;
}

.panel .panel-heading .btn-primary {
    color: #fff;
    background-color: #0af;
    border-color: #00a0f0;
}

.panel .panel-heading .btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.panel .panel-heading .btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}

.panel .panel-heading .btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.panel .panel-heading .btn-info {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.panel .panel-heading .btn-warning {
    color: #fff;
    background-color: #e4cb10;
    border-color: #d6be0f;
}

/* Collapsible panels: collapse only, no remove. */
.panel .panel-title .btn-toggle-collapse {
    padding: 0;
    margin-left: 8px;
    border: 0;
    background: none;
    color: #9aa2a9;
    cursor: pointer;
    line-height: 1;
}

.panel .panel-title .btn-toggle-collapse:hover {
    color: #3287b2;
}

/* Dashboard-only panel spacing overrides */
.dashboard-panels .panel .panel-body {
    padding: 0px 15px 6px;
}

/* Every widget reads at 16px or larger. */
.dashboard-panels .panel .panel-body,
.dashboard-panels .panel .panel-footer,
.dashboard-panels .panel .panel-subtitle {
    font-size: 16px;
}

/* Widget bodies are tight; drop the default paragraph bottom margin. */
.dashboard-widgets p,
.dash-lane .panel-body p {
    margin-bottom: 0;
}

/* Dashboard widget layout: drag handle, toolbar, placeholder */
.dash-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dash-toolbar-hint {
    font-size: 12px;
    color: #9aa2a9;
}

.dash-toolbar-hint .fa {
    margin-right: 4px;
}

.dash-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-widget-placeholder {
    border: 2px dashed #b9c6d1;
    border-radius: 3px;
    background-color: #f7f9fb;
    margin-bottom: 20px;
}

.dash-widget-col.ui-sortable-helper .panel {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Dashboard header controls sit beside the floated page title */
.dash-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nudge the reset icon left and keep a small gap before its label. */
.dash-reset-layout {
    padding-left: 9px;
    margin-left: 6px;
}

.dash-reset-layout>i,
.dash-toggle-all>i {
    margin-right: 4px;
    position: relative;
    top: 1px;
}

.dash-toggle-all {
    margin-left: 0;
}

.dash-edit-widgets {
    margin-left: 6px;
}

.dash-edit-widgets>i {
    margin-right: 4px;
    position: relative;
    top: 1px;
}

/* Roles screen: dashboard widget toggles, three columns like the dashboard */
.widget-toggle-grid {
    margin-bottom: 10px;
}

.widget-toggle {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    font-weight: normal;
    cursor: pointer;
}

.widget-toggle input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.widget-toggle-name {
    color: #676a6d;
}

/* Roles screen: one heading per widget group (Core, then each module) */
.widget-group-title {
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa2a9;
    padding-bottom: 6px;
    border-bottom: 1px solid #d3d3d3;
}

.widget-group-title:first-of-type {
    margin-top: 0;
}

/* Dashboard widget progress bar */
.dash-progress {
    margin-bottom: 10px;
}

.dash-progress-label {
    display: block;
    font-size: 16px;
    color: #9aa2a9;
    margin-bottom: 4px;
}

.dash-progress-track {
    height: 8px;
    border-radius: 4px;
    background-color: #f3f5f8;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    background-color: #3287b2;
    border-radius: 4px;
}

.dash-progress-fill.dash-progress-over {
    background-color: #d9534f;
}

.dash-progress-meta {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #9aa2a9;
}

/* Edit Widgets modal */
.dash-widgets-group-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa2a9;
}

.dash-widgets-list {
    margin-bottom: 18px;
}

.dash-widgets-list>li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f2f5;
}

.dash-widgets-list>li:last-child {
    border-bottom: 0;
}

.dash-widgets-list label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.dash-widgets-list input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.dash-widgets-name {
    font-weight: 600;
    color: #676a6d;
}

/* The Edit Widgets modal reads at the same size as the widgets themselves. */
#dash-widgets-modal .modal-body,
#dash-widgets-modal .dash-widgets-name,
#dash-widgets-modal .btn {
    font-size: 16px;
}

.dash-widgets-desc {
    font-size: 16px;
    color: #9aa2a9;
}

/* Dashboard lanes: three independent columns, widgets keep their own height. */
.dashboard-panels {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-left: -15px;
    margin-right: -15px;
}

.dashboard-panels .dash-lane {
    flex: 1 1 0;
    min-width: 0;
    min-height: 60px;
    padding: 0 15px;
}

.dashboard-panels .dash-widget-col {
    float: none;
    width: auto;
    padding: 0;
}

.dashboard-panels .dash-lane .panel {
    margin-bottom: 15px;
}

.dash-lane.ui-sortable-over {
    background-color: #f7f9fb;
    border-radius: 3px;
}

/* The widget title is the drag handle */
.dashboard-panels .panel .panel-title {
    cursor: move;
}

.dashboard-panels .panel .panel-title:hover {
    color: #3287b2;
}

/* Sidebar top-level menu icons.
   The leading icon sits before the label, so give it a fixed box and centre
   the glyph inside it. Without this each icon is only as wide as its own
   glyph and the labels start at a different x on every row. */
.sidebar .nav>li>a>i:first-child {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Button icons always lead the label, so guarantee the gap between the glyph
   and the text. The label is wrapped in .btn-label by the view markup so that
   icon-only buttons are not shifted. */
.btn>.btn-label {
    margin-left: 6px;
}
/* Font Awesome 5.9 ships the solid style under .fas only, but the ported
   livestock views use the Font Awesome 6 name .fa-solid. Without this alias
   those icons have no font-family and render as zero-width invisible glyphs. */
.fa-solid {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-regular {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
/* A panel heading that carries its own action button needs room for the
   DataTables toolbar underneath, otherwise the Export button overlaps it. */
.panel .panel-heading .btn.pull-right {
    margin-left: 8px;
}

.panel .panel-heading:has(.btn.pull-right) {
    padding-bottom: 10px;
}

/* DataTables toolbar sits below any heading action, never on top of it. */
.panel .panel-heading + .panel-body .dt-buttons {
    margin-bottom: 6px;
}

.docs-min-height-panel {
    min-height: 105px;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 5px 8px;
}

.table>tbody>tr>td img.img-circle {
    height: 24px;
    width: auto;
}
/* Avatar flyover: hovering a listing avatar shows it at 250x250. The panel
   follows the cursor, so it must sit above the admin chrome. */
.bp-avatar-flyover {
    position: absolute;
    z-index: 20000;
    width: 250px;
    height: 250px;
    padding: 4px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease;
}

.bp-avatar-flyover.is-visible {
    opacity: 1;
    visibility: visible;
}

.bp-avatar-flyover img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

/* The listing avatar is a control, so it gets a pointer and a subtle ring. */
img.bp-avatar-zoom {
    cursor: pointer;
    transition: box-shadow .12s ease;
}

img.bp-avatar-zoom:hover {
    box-shadow: 0 0 0 2px #0af;
}

.panel-body .apexcharts-toolbar {
    top: -45px !important;
}

/* Pages Edit Main Panels */
#page-editor-form {
    width: 84%;
}

#page-editor-revisions {
    width: 16%;
}
@media (max-width: 1699px) {
    #page-editor-form {
        width: 80%;
    }

    #page-editor-revisions {
        width: 20%;
    }
}
@media (max-width: 1399px) {
    #page-editor-form {
        width: 75%;
    }

    #page-editor-revisions {
        width: 25%;
    }
}
@media (max-width: 1199px) {
    #page-editor-form {
        width: unset;
    }

    #page-editor-revisions {
        width: unset;
    }
}