@media {
    :root {
        --primary: #04508d;
        --golden: #04508d;
        --blue-secondary: #04508d;
        --blue: #04508d;
        --secondary: #04508d;
        --black: #222d32;
        --red: #b22715;
    }
}

.tooltip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.breadcrumb > li + li::before {
    padding: 0 5px;
    color: gray;
    content: "/";
}

.sidebar {
    overflow-y: auto;
    max-height: 700px;
    margin-top: -10pt;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #04508d;
}

li.nav-item.has-tree-view ul.nav.nav-treeview {
    background-color: #2c3b41;
    border-radius: 0.3rem;
}

li.nav-item.has-tree-view ul.nav.nav-treeview a.nav-link.active {
    color: #04508d;
}

.text-primary {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.text-white {
    color: #ffffff !important;
}

.main-header .navbar {
    background-color: var(--black) !important;
}

.main-header .logo {
    background-color: var(--black) !important;
}

.sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
    border-left-color: var(--blue);
}

.sidebar-menu > li:hover > a:hover,
.sidebar-menu > li > a:hover {
    border-left-color: var(--primary);
}

.box.box-primary {
    border-top-color: var(--blue-secondary);
}

.skin-blue .main-header li.user-header {
    background-color: var(--primary) !important;
}

div.breadcrumbs {
    background: var(--blue);
}

.button.default,
input[type=submit].default,
.submit-row input.default {
    background: var(--blue);
}

.sidebar-toggle:hover {
    background: var(--blue) !important;
}

a {
    color: var(--primary);
}

.mr-2 {
    margin-right: 2px;
}

.module h2,
.module caption,
.inline-group h2 {
    background: var(--primary) !important;
}

.selector .selector-available h2 {
    color: white !important;
}

.help,
p.help,
form p.help,
div.help,
form div.help,
div.help li {
    color: white !important;
}

.bg-green {
    background-color: var(--primary) !important;
}

.bg-green,
.bg-green > a {
    color: #ffffff !important;
}

.bg-green.btn:hover {
    border-color: #063a64;
    background-color: #063a64 !important;
    color: #ececec;
}

.bg-green.btn:not(:disabled):not(.disabled):active,
.bg-green.btn:not(:disabled):not(.disabled).active,
.bg-green.btn:active,
.bg-green.btn.active {
    background-color: #052d4e !important;
    border-color: var(--primary);
    color: #ffffff;
}

.bg-red {
    background: var(--red) !important;
}

.bg-red,
.bg-red > a {
    color: #ffffff !important;
}

.bg-red.btn:hover {
    background-color: #be1021 !important;
    border-color: #bd2130;
    color: #ececec;
}

.bg-red.btn:not(:disabled):not(.disabled):active,
.bg-red.btn:not(:disabled):not(.disabled).active,
.bg-red.btn:active,
.bg-red.btn.active {
    background-color: #a0111f !important;
    border-color: #b21f2d;
    color: #ffffff;
}

.breadcrumb a:link,
.breadcrumb a:visited {
    color: var(--primary) !important;
}

.table a:link,
.table a:visited {
    color: var(--primary) !important;
}

[disabled]:hover {
    cursor: no-drop !important;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.box.box-primary.box-bottom {
    border-bottom: 3px solid var(--blue-secondary);
    border-top: none;
}

.content-header h1 {
    color: var(--blue-secondary) !important;
    font-size: 18px;
    font-weight: bold;
    font-family: "Roboto", "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
}

.form_image_preview {
    width: 150px !important;
    float: left !important;
    margin-right: 20px !important;
    border: 1px solid grey !important;
    padding: 5px !important;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #04508d;
        --blue-secondary: #04508d;
        --blue: #04508d;
        --secondary: #04508d;
        --accent: #04508d;
        --primary-fg: #fff;

        --body-fg: #333;
        --body-bg: #fff;
        --body-quiet-color: #666;
        --body-loud-color: #000;

        --header-color: #ffc;
        --header-branding-color: var(--accent);
        --header-bg: var(--secondary);
        --header-link-color: var(--primary-fg);

        --breadcrumbs-fg: #c4dce8;
        --breadcrumbs-link-fg: var(--body-bg);
        --breadcrumbs-bg: var(--primary);

        --link-fg: #447e9b;
        --link-hover-color: #036;
        --link-selected-fg: #5b80b2;

        --hairline-color: #e8e8e8;
        --border-color: #ccc;

        --error-fg: #ba2121;

        --message-success-bg: #dfd;
        --message-warning-bg: #ffc;
        --message-error-bg: #ffefef;

        --darkened-bg: #f8f8f8;
        /* A bit darker than --body-bg */
        --selected-bg: #e4e4e4;
        /* E.g. selected table cells */
        --selected-row: #ffc;

        --button-fg: #fff;
        --button-bg: var(--primary);
        --button-hover-bg: #04508d;
        --default-button-bg: var(--secondary);
        --default-button-hover-bg: #205067;
        --close-button-bg: #888;
        /* Previously #bbb, contrast 1.92 */
        --close-button-hover-bg: #747474;
        --delete-button-bg: #ba2121;
        --delete-button-hover-bg: #a41515;

        --object-tools-fg: var(--button-fg);
        --object-tools-bg: var(--close-button-bg);
        --object-tools-hover-bg: var(--close-button-hover-bg);
    }
}

@media (max-width: 990px) {
    .btn-add {
        margin-top: 10px;
    }

    .error-code {
        text-align: center;
    }

    .error-description {
        text-align: center;
    }

    .error-contact {
        text-align: center;
    }
}

th.column-slider_type {
    width: 50% !important;
}

.field-element .inline-deletelink {
    display: none !important;
}

.vDateField {
    width: 100% !important;
}

.vTimeField {
    width: 100% !important;
}

.error-code {
    font-size: 120px;
    margin-left: 20px;
    font-weight: bold;
}

.error-description {
    font-size: 30px;
}

input.datetime[readonly] {
    background: white !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: black !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 31px !important;
}

.select2-container .select2-selection--single {
    height: 36px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px !important;
}

.item_rate {
    cursor: pointer;
    display: inline-block
}

.bg-primary {
    background: var(--primary) !important;
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top-color: var(--golden) !important;
}

.login-page,
.register-page {
    background: url("../images/login-background1.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

:not(.layout-fixed) .main-sidebar {
    position: fixed;
}

.skin-blue .wrapper,
.skin-blue .main-sidebar,
.skin-blue .left-side {
    background-color: #222d32;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
    color: #fff;
    background: var(--golden) !important;
}

.bootstrap-switch {
    text-transform: capitalize;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

legend {
    font-size: 18px;
}

.required {
    font-weight: bold;
    margin-left: 5px;
    color: red;
}

th,
td {
    vertical-align: middle !important;
}

.login-box-body,
.register-box-body {
    border-radius: 10px;
    background: rgba(15, 28, 46, 0.9);
    position: relative;
    top: 50px;
}

.input-group .input-group-addon {
    border-radius: 0;
    background-color: rgb(232, 240, 254);
}

.ml-20 {
    margin-left: 20px;
}

mr-1 {
    margin-right: 5px;
}

.skin-blue .treeview-menu > li.active > a {
    color: var(--golden);
}

a:link,
a:visited {
    color: var(--golden);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.add-row a {
    color: var(--primary);
    font-weight: bold;
}

.btn-golden {
    background: var(--golden);
    color: white !important;
}

label {
    color: var(--primary);
}

.showall {
    color: var(--primary);
    font-weight: bold;
}

.delete-image {
    width: 50px;
    height: 30px;
    background: white;
    position: absolute;
    top: -10px;
    right: 0;
    border-radius: 50%;
    font-size: 20px;
    padding-left: 12px;
    padding-top: 2px;
    cursor: pointer;
}

.edit-image {
    width: 50px;
    height: 30px;
    background: white;
    position: absolute;
    top: -10px;
    left: 0;
    border-radius: 50%;
    font-size: 16px;
    padding-left: 22px;
    padding-top: 4px;
    cursor: pointer;
}

.p-10 {
    padding: 10px;
}

.menu-letter-title {
    font-size: 25pt !important;
    text-align: center;
    color: var(--golden);
    margin-top: 20pt;
    font-weight: bold;
}

.menu-letter-subtitle {
    font-size: 15pt !important;
    margin-bottom: 30pt;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
}

#id_coordinates_admin_map {
    width: 100%;
}

.main-header {
    z-index: 20 !important;
}

.treeview-menu > li {
    list-style-type: none;
}

.bg-golden {
    background: var(--golden) !important;
    color: white;
}

.box-golden {
    border-top-color: var(--golden);
}

.chat-border {
    border: 2px solid var(--golden) !important;
}

.direct-chat-primary .right > .direct-chat-text {
    background: var(--golden) !important;
    color: white !important;
    border-color: var(--golden) !important;
}

.direct-chat-primary .right > .direct-chat-text::after,
.direct-chat-primary .right > .direct-chat-text::before {
    border-left-color: var(--golden);
}

.direct-chat-messages {
    height: 550px;
    overflow: auto;
}

.bootstrap-timepicker-widget table td input {
    width: 40px !important;
}

input[type="time"].form-control {
    line-height: 15px !important;
}

.disable-day {
    background: #ff8c8c !important;
    padding: 5px !important;
}



/* SORTABLE TABLES */

thead th {
    padding: 5px 10px;
    line-height: normal;
    text-transform: uppercase;
    background: var(--darkened-bg);
}

thead th a:link,
thead th a:visited {
    color: var(--body-quiet-color);
}

thead th.sorted {
    background: var(--selected-bg);
}

thead th.sorted .text {
    padding-right: 42px;
}

table thead th .text span {
    padding: 8px 10px;
    display: block;
}

table thead th .text a {
    display: block;
    cursor: pointer;
    padding: 8px 10px;
}

table thead th .text a:focus,
table thead th .text a:hover {
    background: var(--selected-bg);
}

thead th.sorted a.sortremove {
    visibility: hidden;
}

table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

table thead th.sorted .sortoptions {
    display: block;
    padding: 9px 5px 0 5px;
    float: right;
    text-align: right;
}

table thead th.sorted .sortpriority {
    font-size: .8em;
    min-width: 12px;
    text-align: center;
    vertical-align: 3px;
    margin-left: 2px;
    margin-right: 2px;
}

table thead th.sorted .sortoptions a {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url(../admin/img/sorting-icons.svg) 0 0 no-repeat;
    background-size: 14px auto;
}

table thead th.sorted .sortoptions a.sortremove {
    background-position: 0 0;
}

table thead th.sorted .sortoptions a.sortremove:after {
    content: '\\';
    position: absolute;
    top: -6px;
    left: 3px;
    font-weight: 200;
    font-size: 1.125rem;
    color: var(--body-quiet-color);
}

table thead th.sorted .sortoptions a.sortremove:focus:after,
table thead th.sorted .sortoptions a.sortremove:hover:after {
    color: var(--link-fg);
}

table thead th.sorted .sortoptions a.sortremove:focus,
table thead th.sorted .sortoptions a.sortremove:hover {
    background-position: 0 -14px;
}

table thead th.sorted .sortoptions a.ascending {
    background-position: 0 -28px;
}

table thead th.sorted .sortoptions a.ascending:focus,
table thead th.sorted .sortoptions a.ascending:hover {
    background-position: 0 -42px;
}

table thead th.sorted .sortoptions a.descending {
    top: 1px;
    background-position: 0 -56px;
}

table thead th.sorted .sortoptions a.descending:focus,
table thead th.sorted .sortoptions a.descending:hover {
    background-position: 0 -70px;
}

.modal-header {
    display: block;
}

#recent-actions-module ul {
    margin-left: 0em;
    padding-left: 0;
    padding-right: 0;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
}