/*
 * EPTE dark theme
 * ---------------
 * Dark mode overrides for the Core UI theme.
 *
 * This file is loaded (after epte.css) only when the active color theme
 * is 'dark'. All rules are scoped under `body.theme-dark` so they never
 * affect the light theme.
 *
 * Palette:
 *   page background   #111315
 *   surface (panels)  #232629
 *   surface raised    #292d31
 *   borders           #34383d
 *   text              #d8dce1
 *   muted text        #8d949c
 *   input background  #2a2a2a
 *   links             #3b82f6
 *   primary accent    #3b82f6
 */

/*
 * Base
 */
body.theme-dark {
    background-color: #111315;
    color: #d8dce1;
}

body.theme-dark a {
    color: #3b82f6;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #60a5fa;
}

body.theme-dark hr {
    border-color: #34383d;
}

body.theme-dark ::selection {
    background-color: #3b82f6;
    color: #fff;
}

body.theme-dark ::placeholder {
    color: #757575;
    opacity: 1;
}

body.theme-dark .text-muted {
    color: #8d949c !important;
}

/* Brighten semantic text colors for readability on dark backgrounds */
body.theme-dark .text-primary,
body.theme-dark .text-primary:hover,
body.theme-dark .text-primary:focus {
    color: #3b82f6 !important;
}

body.theme-dark .text-success,
body.theme-dark .text-success:hover,
body.theme-dark .text-success:focus {
    color: #81c784 !important;
}

body.theme-dark .text-info,
body.theme-dark .text-info:hover,
body.theme-dark .text-info:focus {
    color: #4dd0e1 !important;
}

body.theme-dark .text-warning,
body.theme-dark .text-warning:hover,
body.theme-dark .text-warning:focus {
    color: #ffb74d !important;
}

body.theme-dark .text-danger,
body.theme-dark .text-danger:hover,
body.theme-dark .text-danger:focus {
    color: #e57373 !important;
}

/*
 * Layout
 */
body.theme-dark .page-header-default {
    background-color: #232629;
    -webkit-box-shadow: 0 1px 0 0 #34383d;
    box-shadow: 0 1px 0 0 #34383d;
}

body.theme-dark .page-header .page-title h4 {
    color: #d8dce1;
}

body.theme-dark .footer {
    color: #8d949c;
}

body.theme-dark .footer a {
    color: #3b82f6;
}

/* Main navigation bar */
body.theme-dark .navbar-inverse {
    background-color: #181a1f;
    border-color: #30343b;
}

body.theme-dark .navbar-inverse .navbar-brand,
body.theme-dark .navbar-inverse .navbar-nav > li > a,
body.theme-dark .navbar-inverse .navbar-text {
    color: #d7dce2;
}

body.theme-dark .navbar-inverse .navbar-brand:hover,
body.theme-dark .navbar-inverse .navbar-brand:focus,
body.theme-dark .navbar-inverse .navbar-nav > li > a:hover,
body.theme-dark .navbar-inverse .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: #23272d;
}

body.theme-dark .navbar-inverse .navbar-toggle {
    border-color: #34383d;
}

body.theme-dark .navbar-inverse .navbar-toggle:hover,
body.theme-dark .navbar-inverse .navbar-toggle:focus {
    background-color: #23272d;
}

body.theme-dark .navbar-inverse .navbar-toggle .icon-bar {
    background-color: #d7dce2;
}

/* Footer rendered as a default (white) navbar in the public layout */
body.theme-dark .navbar-default {
    background-color: #181a1f;
    border-color: #30343b;
}

body.theme-dark .navbar-default .navbar-brand {
    color: #d7dce2;
}

body.theme-dark .navbar-default .navbar-text {
    color: #8d949c;
}

body.theme-dark .navbar-default .navbar-nav > li > a {
    color: #d7dce2;
}

body.theme-dark .navbar-default .navbar-nav > li > a:hover,
body.theme-dark .navbar-default .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: #23272d;
}

/* Login page */
body.theme-dark .login-container .page-container .nav-tabs.nav-justified > li > a {
    background-color: #232629;
    color: #8d949c;
}

body.theme-dark .login-container .page-container .nav-tabs.nav-justified > li.active > a {
    background-color: #292d31;
    color: #d8dce1;
}

/*
 * Sidebar (light by default in this theme)
 */
body.theme-dark .sidebar-default {
    background-color: #1b1d20;
    color: #d8dce1;
    border-color: #34383d;
}

body.theme-dark .sidebar-default .category-title {
    color: #8d949c;
    border-bottom-color: #34383d;
}

body.theme-dark .sidebar-default .navigation li > a {
    color: #d7dce2;
}

body.theme-dark .sidebar-default .navigation li > a:hover,
body.theme-dark .sidebar-default .navigation li > a:focus {
    background-color: #23272d;
    color: #ffffff;
}

body.theme-dark .sidebar-default .navigation li.active > a,
body.theme-dark .sidebar-default .navigation li.active > a:hover,
body.theme-dark .sidebar-default .navigation li.active > a:focus {
    background-color: #3b82f6;
    color: #ffffff;
}

body.theme-dark .sidebar-default .navigation .navigation-header,
body.theme-dark .sidebar-default .navigation .navigation-header a {
    color: #8d949c;
}

body.theme-dark .sidebar-default .navigation-bordered > li.navigation-header {
    background-color: #1b1d20;
    border-top-color: #34383d;
    border-bottom-color: #34383d;
}

body.theme-dark .sidebar-default .navigation .navigation-header a:hover,
body.theme-dark .sidebar-default .navigation .navigation-header a:focus {
    color: #d8dce1;
}

body.theme-dark .sidebar-default .navigation li.navigation-divider {
    background-color: #34383d;
}

body.theme-dark .sidebar-default .navigation li > ul {
    background-color: #181a1f;
}

body.theme-dark .sidebar-default .navigation li > ul > li > a {
    color: #b6bdc5;
}

/*
 * Panels
 */
body.theme-dark .panel {
    background-color: #232629;
    border-color: #34383d;
    color: #d8dce1;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.theme-dark .panel-heading {
    background-color: #292d31;
    border-bottom-color: #34383d;
}

body.theme-dark .panel-title {
    color: #d8dce1;
}

body.theme-dark .panel-title > a,
body.theme-dark .panel-title > small > a,
body.theme-dark .panel-title > .small > a {
    color: #3b82f6;
}

body.theme-dark .panel-title > a:hover,
body.theme-dark .panel-title > a:focus,
body.theme-dark .panel-title > small > a:hover,
body.theme-dark .panel-title > small > a:focus,
body.theme-dark .panel-title > .small > a:hover,
body.theme-dark .panel-title > .small > a:focus {
    color: #60a5fa;
}

body.theme-dark .panel-body a {
    color: #3b82f6;
}

body.theme-dark .panel-body a:hover,
body.theme-dark .panel-body a:focus {
    color: #60a5fa;
}

body.theme-dark .panel-footer {
    background-color: #292d31;
    border-top-color: #34383d;
}

body.theme-dark .panel-contrast {
    background-color: #111315;
}

/* Legacy blue utility surfaces become dark surfaces in dark mode. */
body.theme-dark .bg-blue {
    background-color: #232629;
    border-color: #34383d;
    color: #d8dce1;
}

body.theme-dark .bg-blue a,
body.theme-dark .bg-blue .text-primary {
    color: #3b82f6;
}

body.theme-dark .bg-blue a:hover,
body.theme-dark .bg-blue a:focus,
body.theme-dark .bg-blue .text-primary:hover,
body.theme-dark .bg-blue .text-primary:focus {
    color: #60a5fa;
}

/*
 * Tables
 */
body.theme-dark .table > thead > tr > th,
body.theme-dark .table > tbody > tr > th,
body.theme-dark .table > tfoot > tr > th,
body.theme-dark .table > thead > tr > td,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tfoot > tr > td {
    border-color: #333333;
}

body.theme-dark .table > thead > tr > th {
    background-color: #262626;
    color: #e0e0e0;
    border-bottom-color: #3a3a3a;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th {
    color: #e0e0e0;
}

body.theme-dark .table > caption {
    color: #9e9e9e;
}

body.theme-dark .table-bordered {
    border-color: #333333;
}

body.theme-dark .table-hover > tbody > tr:hover > td,
body.theme-dark .table-hover > tbody > tr:hover > th,
body.theme-dark .table-hover > tbody > tr:hover {
    background-color: #2a2a2a;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > td,
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > th,
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #1a1a1a;
}

body.theme-dark .table-condensed > thead > tr > th,
body.theme-dark .table-condensed > tbody > tr > th,
body.theme-dark .table-condensed > tfoot > tr > th,
body.theme-dark .table-condensed > thead > tr > td,
body.theme-dark .table-condensed > tbody > tr > td,
body.theme-dark .table-condensed > tfoot > tr > td {
    color: #e0e0e0;
}

/* Table header utility rows must not retain the bright legacy blue. */
body.theme-dark .table > thead > tr.bg-blue > th,
body.theme-dark table.dataTable > thead > tr.bg-blue > th {
    background-color: #232629;
    border-color: #34383d;
    color: #d8dce1;
}

body.theme-dark .table > thead > tr.bg-blue > th a,
body.theme-dark table.dataTable > thead > tr.bg-blue > th a {
    color: #d8dce1;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th,
body.theme-dark table.dataTable tbody > tr > td,
body.theme-dark table.dataTable tbody > tr > th {
    background-color: #232629;
    color: #d8dce1;
    border-color: #34383d;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > td,
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > th,
body.theme-dark table.dataTable tbody > tr.odd > td,
body.theme-dark table.dataTable tbody > tr.odd > th {
    background-color: #1d2023;
}

body.theme-dark .table-hover > tbody > tr:hover > td,
body.theme-dark .table-hover > tbody > tr:hover > th,
body.theme-dark table.dataTable tbody > tr:hover > td,
body.theme-dark table.dataTable tbody > tr:hover > th {
    background-color: #292d31;
    color: #ffffff;
}

/*
 * Forms
 */
body.theme-dark label {
    color: #d8dce1;
}

body.theme-dark .control-label {
    color: #d8dce1;
}

body.theme-dark .form-control {
    color: #d8dce1;
    background-color: #292d31;
    border-color: #41464d;
}

body.theme-dark .form-control:focus {
    border-color: #3b82f6;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(33, 150, 243, 0.4);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(33, 150, 243, 0.4);
}

body.theme-dark .form-control[disabled],
body.theme-dark .form-control[readonly],
body.theme-dark fieldset[disabled] .form-control {
    background-color: #1b1d20;
    opacity: 1;
}

body.theme-dark .input-group-addon {
    color: #d8dce1;
    background-color: #292d31;
    border-color: #41464d;
}

body.theme-dark .input-group-btn > .btn {
    border-color: #41464d;
}

body.theme-dark .help-block {
    color: #8d949c;
}

body.theme-dark .checkbox label,
body.theme-dark .radio label {
    color: #d8dce1;
}

/* Validation states */
body.theme-dark .has-success .help-block,
body.theme-dark .has-success .control-label,
body.theme-dark .has-success .radio,
body.theme-dark .has-success .checkbox,
body.theme-dark .has-success .radio-inline,
body.theme-dark .has-success .checkbox-inline,
body.theme-dark .has-success input:focus,
body.theme-dark .has-success select:focus,
body.theme-dark .has-success textarea:focus {
    color: #81c784;
}

body.theme-dark .has-success .form-control {
    border-color: #81c784;
}

body.theme-dark .has-warning .help-block,
body.theme-dark .has-warning .control-label,
body.theme-dark .has-warning .radio,
body.theme-dark .has-warning .checkbox,
body.theme-dark .has-warning .radio-inline,
body.theme-dark .has-warning .checkbox-inline,
body.theme-dark .has-warning input:focus,
body.theme-dark .has-warning select:focus,
body.theme-dark .has-warning textarea:focus {
    color: #ffb74d;
}

body.theme-dark .has-warning .form-control {
    border-color: #ffb74d;
}

body.theme-dark .has-error .help-block,
body.theme-dark .has-error .control-label,
body.theme-dark .has-error .radio,
body.theme-dark .has-error .checkbox,
body.theme-dark .has-error .radio-inline,
body.theme-dark .has-error .checkbox-inline,
body.theme-dark .has-error input:focus,
body.theme-dark .has-error select:focus,
body.theme-dark .has-error textarea:focus {
    color: #e57373;
}

body.theme-dark .has-error .form-control {
    border-color: #e57373;
}

/*
 * Buttons
 */
body.theme-dark .btn-default {
    color: #e0e0e0;
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

body.theme-dark .btn-default:hover,
body.theme-dark .btn-default:focus,
body.theme-dark .btn-default:active,
body.theme-dark .btn-default.active,
body.theme-dark .open > .btn-default.dropdown-toggle {
    color: #fff;
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

body.theme-dark .btn-default:active,
body.theme-dark .btn-default.active,
body.theme-dark .open > .btn-default.dropdown-toggle {
    background-image: none;
}

body.theme-dark .btn-default[disabled],
body.theme-dark .btn-default.disabled,
body.theme-dark fieldset[disabled] .btn-default {
    background-color: #2e2e2e;
    border-color: #3a3a3a;
    color: #616161;
}

body.theme-dark .btn-link {
    color: #3b82f6;
}

body.theme-dark .btn-link:hover,
body.theme-dark .btn-link:focus {
    color: #60a5fa;
}

body.theme-dark .btn .caret {
    border-top-color: #e0e0e0;
}

body.theme-dark .btn-default .caret {
    border-top-color: #e0e0e0;
}

/*
 * Dropdowns
 */
body.theme-dark .dropdown-menu {
    background-color: #232629;
    border-color: #34383d;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.theme-dark .dropdown-menu > li > a {
    color: #d8dce1;
}

body.theme-dark .dropdown-menu > li > a:hover,
body.theme-dark .dropdown-menu > li > a:focus {
    color: #fff;
    background-color: #292d31;
}

body.theme-dark .dropdown-menu > .active > a,
body.theme-dark .dropdown-menu > .active > a:hover,
body.theme-dark .dropdown-menu > .active > a:focus {
    color: #fff;
    background-color: #3b82f6;
}

body.theme-dark .dropdown-menu .divider {
    background-color: #34383d;
}

body.theme-dark .dropdown-header {
    color: #8d949c;
}

body.theme-dark .dropdown-menu > .disabled > a,
body.theme-dark .dropdown-menu > .disabled > a:hover,
body.theme-dark .dropdown-menu > .disabled > a:focus {
    color: #616161;
}

/*
 * Navigation
 */
body.theme-dark .nav > li > a:hover,
body.theme-dark .nav > li > a:focus {
    background-color: #292d31;
}

body.theme-dark .nav-tabs {
    border-bottom-color: #34383d;
}

body.theme-dark .nav-tabs > li > a {
    color: #8d949c;
}

body.theme-dark .nav-tabs > li > a:hover,
body.theme-dark .nav-tabs > li > a:focus {
    color: #e0e0e0;
    border-color: transparent;
    background-color: transparent;
}

body.theme-dark .nav-tabs > li.active > a,
body.theme-dark .nav-tabs > li.active > a:hover,
body.theme-dark .nav-tabs > li.active > a:focus {
    color: #d8dce1;
    background-color: #292d31;
    border-color: #34383d #34383d #292d31;
}

body.theme-dark .nav-pills > li > a {
    color: #8d949c;
}

body.theme-dark .nav-pills > li > a:hover,
body.theme-dark .nav-pills > li > a:focus {
    color: #e0e0e0;
    background-color: #2a2a2a;
}

body.theme-dark .nav-pills > li.active > a,
body.theme-dark .nav-pills > li.active > a:hover,
body.theme-dark .nav-pills > li.active > a:focus {
    color: #fff;
    background-color: #3b82f6;
}

body.theme-dark .breadcrumb {
    background-color: transparent;
    border-color: #34383d;
}

body.theme-dark .breadcrumb > li {
    color: #8d949c;
}

body.theme-dark .breadcrumb > .active {
    color: #d8dce1;
}

body.theme-dark .breadcrumb a {
    color: #3b82f6;
}

body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span {
    color: #e0e0e0;
    background-color: #262626;
    border-color: #3a3a3a;
}

body.theme-dark .pagination > li > a:hover,
body.theme-dark .pagination > li > a:focus,
body.theme-dark .pagination > li > span:hover,
body.theme-dark .pagination > li > span:focus {
    color: #fff;
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

body.theme-dark .pagination > .active > a,
body.theme-dark .pagination > .active > a:hover,
body.theme-dark .pagination > .active > a:focus,
body.theme-dark .pagination > .active > span,
body.theme-dark .pagination > .active > span:hover,
body.theme-dark .pagination > .active > span:focus {
    color: #fff;
    background-color: #2196f3;
    border-color: #2196f3;
}

body.theme-dark .pagination > .disabled > a,
body.theme-dark .pagination > .disabled > a:hover,
body.theme-dark .pagination > .disabled > a:focus,
body.theme-dark .pagination > .disabled > span {
    color: #616161;
    background-color: #1e1e1e;
    border-color: #333333;
}

body.theme-dark .pager li > a,
body.theme-dark .pager li > span {
    color: #e0e0e0;
    background-color: #262626;
    border-color: #3a3a3a;
}

body.theme-dark .pager li > a:hover,
body.theme-dark .pager li > a:focus {
    color: #fff;
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

body.theme-dark .pager .disabled > a,
body.theme-dark .pager .disabled > a:hover,
body.theme-dark .pager .disabled > span {
    color: #616161;
    background-color: #1e1e1e;
}

/*
 * Modals
 */
body.theme-dark .modal-content {
    color: #e0e0e0;
    background-color: #1e1e1e;
    border-color: #3a3a3a;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.7);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.7);
}

body.theme-dark .modal-header {
    border-bottom-color: #333333;
}

body.theme-dark .modal-title {
    color: #e0e0e0;
}

body.theme-dark .modal-footer {
    border-top-color: #333333;
}

/*
 * Tooltips & popovers
 */
body.theme-dark .tooltip-inner {
    background-color: #424242;
    color: #fff;
}

body.theme-dark .tooltip.top .tooltip-arrow {
    border-top-color: #424242;
}

body.theme-dark .tooltip.right .tooltip-arrow {
    border-right-color: #424242;
}

body.theme-dark .tooltip.bottom .tooltip-arrow {
    border-bottom-color: #424242;
}

body.theme-dark .tooltip.left .tooltip-arrow {
    border-left-color: #424242;
}

body.theme-dark .popover {
    color: #e0e0e0;
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.theme-dark .popover-title {
    color: #fff;
    background-color: #333333;
    border-bottom-color: #3a3a3a;
}

/*
 * List groups, wells, thumbnails, progress
 */
body.theme-dark .list-group {
    background-color: transparent;
}

body.theme-dark .list-group-item {
    color: #e0e0e0;
    background-color: #1e1e1e;
    border-color: #333333;
}

body.theme-dark .list-group-item:hover,
body.theme-dark .list-group-item:focus {
    color: #fff;
    background-color: #2a2a2a;
}

body.theme-dark .list-group-item.active,
body.theme-dark .list-group-item.active:hover,
body.theme-dark .list-group-item.active:focus {
    color: #fff;
    background-color: #2196f3;
    border-color: #2196f3;
}

body.theme-dark .well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

body.theme-dark .thumbnail {
    background-color: #1e1e1e;
    border-color: #333333;
}

body.theme-dark .progress {
    background-color: #333333;
}

/*
 * Select2
 */
body.theme-dark .select2-container--default .select2-selection--single {
    background-color: #2a2a2a;
    border-color: #454545;
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e0e0;
    background-color: transparent;
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: #9e9e9e;
}

body.theme-dark .select2-container--default .select2-selection--multiple {
    background-color: #2a2a2a;
    border-color: #454545;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #9e9e9e;
    border-left-color: #4a4a4a;
}

body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

body.theme-dark .select2-container--default .select2-search--inline .select2-search__field {
    background-color: transparent;
    color: #e0e0e0;
}

body.theme-dark .select2-dropdown {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

body.theme-dark .select2-search--dropdown .select2-search__field {
    background-color: #2a2a2a;
    border-color: #454545;
    color: #e0e0e0;
}

body.theme-dark .select2-results__option {
    color: #e0e0e0;
}

body.theme-dark .select2-results__option--selectable {
    background-color: transparent;
}

body.theme-dark .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #2196f3;
    color: #fff;
}

body.theme-dark .select2-container--default .select2-results__option--selected {
    background-color: #3a3a3a;
    color: #fff;
}

body.theme-dark .select2-results__option[aria-selected="true"] {
    background-color: #3a3a3a;
    color: #fff;
}

body.theme-dark .select2-results__group {
    color: #9e9e9e;
}

body.theme-dark .select2-results__message {
    color: #9e9e9e;
}

body.theme-dark .select2-close-mask {
    background-color: rgba(0, 0, 0, 0.5);
}

/*
 * Date range picker
 */
body.theme-dark .daterangepicker {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.theme-dark .daterangepicker:before {
    border-bottom-color: #3a3a3a;
}

body.theme-dark .daterangepicker:after {
    border-bottom-color: #2a2a2a;
}

body.theme-dark .daterangepicker.drop-up:before {
    border-top-color: #3a3a3a;
}

body.theme-dark .daterangepicker.drop-up:after {
    border-top-color: #2a2a2a;
}

body.theme-dark .daterangepicker .calendar-table {
    background-color: #2a2a2a;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.theme-dark .daterangepicker .calendar-table th,
body.theme-dark .daterangepicker .calendar-table td {
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .calendar-table thead th {
    border-bottom-color: #3a3a3a;
}

body.theme-dark .daterangepicker td.available:hover,
body.theme-dark .daterangepicker th.available:hover {
    background-color: #3a3a3a;
    color: #fff;
}

body.theme-dark .daterangepicker td.off,
body.theme-dark .daterangepicker td.off.in-range,
body.theme-dark .daterangepicker td.off.start-date,
body.theme-dark .daterangepicker td.off.end-date {
    color: #616161;
}

body.theme-dark .daterangepicker td.in-range {
    background-color: #333333;
    color: #fff;
}

body.theme-dark .daterangepicker td.start-date,
body.theme-dark .daterangepicker td.end-date {
    background-color: #2196f3;
    color: #fff;
}

body.theme-dark .daterangepicker td.active,
body.theme-dark .daterangepicker td.active:hover {
    background-color: #2196f3;
    color: #fff;
}

body.theme-dark .daterangepicker td.today {
    background-color: #3a3a3a;
}

body.theme-dark .daterangepicker select.monthselect,
body.theme-dark .daterangepicker select.yearselect {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .input-mini {
    background-color: #2a2a2a;
    border-color: #454545;
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .input-mini:focus {
    border-color: #2196f3;
}

body.theme-dark .daterangepicker .range-label {
    background-color: #262626;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .range-label input {
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .drp-buttons {
    background-color: #262626;
    border-top-color: #3a3a3a;
}

body.theme-dark .daterangepicker .drp-buttons .btn {
    color: #e0e0e0;
}

body.theme-dark .daterangepicker .calendar-time {
    color: #e0e0e0;
    border-top-color: #3a3a3a;
}

body.theme-dark .daterangepicker .calendar-time select {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

/*
 * DataTables
 */
/*
 * jquery.dataTables.css (loaded from page templates, i.e. after this file)
 * sets explicit light backgrounds on the table rows and cells. These rules
 * are scoped with higher specificity so they win regardless of load order.
 */
body.theme-dark table.dataTable tbody tr {
    background-color: transparent;
}

body.theme-dark table.dataTable tbody tr.odd {
    background-color: #1d2023;
}

body.theme-dark table.dataTable tbody tr.even {
    background-color: transparent;
}

body.theme-dark table.dataTable tbody tr:hover {
    background-color: #292d31;
}

body.theme-dark table.dataTable tbody tr.selected,
body.theme-dark table.dataTable tbody tr.selected:hover {
    background-color: #3b82f6;
}

body.theme-dark table.dataTable tbody tr.selected td,
body.theme-dark table.dataTable tbody tr.selected th {
    color: #fff;
}

/* Per-column stripe/hover backgrounds (.sorting_1/2/3) */
body.theme-dark table.dataTable tbody tr > .sorting_1,
body.theme-dark table.dataTable tbody tr > .sorting_2,
body.theme-dark table.dataTable tbody tr > .sorting_3 {
    background-color: inherit;
}

body.theme-dark table.dataTable tbody tr.odd > .sorting_1,
body.theme-dark table.dataTable tbody tr.odd > .sorting_2,
body.theme-dark table.dataTable tbody tr.odd > .sorting_3 {
    background-color: #1d2023;
}

body.theme-dark table.dataTable tbody tr.even > .sorting_1,
body.theme-dark table.dataTable tbody tr.even > .sorting_2,
body.theme-dark table.dataTable tbody tr.even > .sorting_3 {
    background-color: transparent;
}

body.theme-dark table.dataTable tbody tr:hover > .sorting_1,
body.theme-dark table.dataTable tbody tr:hover > .sorting_2,
body.theme-dark table.dataTable tbody tr:hover > .sorting_3 {
    background-color: #292d31;
}

body.theme-dark table.dataTable tbody tr.selected > .sorting_1,
body.theme-dark table.dataTable tbody tr.selected > .sorting_2,
body.theme-dark table.dataTable tbody tr.selected > .sorting_3 {
    background-color: #3b82f6;
}

body.theme-dark table.dataTable thead th {
    background-color: #232629;
    color: #d8dce1;
    border-bottom-color: #34383d;
}

body.theme-dark table.dataTable.row-border tbody th,
body.theme-dark table.dataTable.row-border tbody td,
body.theme-dark table.dataTable.display tbody th,
body.theme-dark table.dataTable.display tbody td {
    border-top-color: #34383d;
}

body.theme-dark table.dataTable.cell-border tbody th,
body.theme-dark table.dataTable.cell-border tbody td {
    border-top-color: #34383d;
    border-right-color: #34383d;
}

body.theme-dark table.dataTable.cell-border tbody tr th:first-child,
body.theme-dark table.dataTable.cell-border tbody tr td:first-child {
    border-left-color: #34383d;
}

body.theme-dark .dataTables_wrapper .dataTables_length,
body.theme-dark .dataTables_wrapper .dataTables_filter,
body.theme-dark .dataTables_wrapper .dataTables_info,
body.theme-dark .dataTables_wrapper .dataTables_processing,
body.theme-dark .dataTables_wrapper .dataTables_paginate {
    color: #8d949c;
}

body.theme-dark .dataTables_wrapper .dataTables_filter input,
body.theme-dark .dataTables_wrapper .dataTables_length select {
    background-color: #292d31;
    border-color: #41464d;
    color: #d8dce1;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #d8dce1 !important;
    border: 1px solid #34383d;
    background-color: #232629;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    border-color: #41464d;
    background-color: #292d31;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border-color: #3b82f6;
    background-color: #3b82f6;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: #616161 !important;
    border-color: #34383d;
    background-color: #1b1d20;
}

/*
 * Summernote
 */
body.theme-dark .note-editor {
    border-color: #454545;
}

body.theme-dark .note-editor.note-frame {
    border-color: #454545;
}

body.theme-dark .note-editor .note-toolbar {
    background-color: #262626;
    border-bottom-color: #454545;
}

body.theme-dark .note-editor .note-toolbar .note-btn {
    color: #e0e0e0;
    background-color: transparent;
    border-color: transparent;
}

body.theme-dark .note-editor .note-toolbar .note-btn:hover,
body.theme-dark .note-editor .note-toolbar .note-btn:focus,
body.theme-dark .note-editor .note-toolbar .note-btn.active {
    color: #fff;
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

body.theme-dark .note-editor .note-editing-area {
    background-color: #1e1e1e;
}

body.theme-dark .note-editor .note-editable {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.theme-dark .note-editor .note-statusbar {
    background-color: #262626;
    border-top-color: #454545;
}

body.theme-dark .note-popover {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.theme-dark .note-popover .note-popover-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.theme-dark .note-dropdown-menu {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

body.theme-dark .note-dropdown-menu li a {
    color: #e0e0e0;
}

body.theme-dark .note-dropdown-menu li a:hover,
body.theme-dark .note-dropdown-menu li a:focus {
    color: #fff;
    background-color: #3a3a3a;
}

body.theme-dark .note-dropdown-menu .note-check a.checked {
    color: #fff;
}

body.theme-dark .note-modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #3a3a3a;
}

body.theme-dark .note-input {
    background-color: #2a2a2a;
    border-color: #454545;
    color: #e0e0e0;
}

body.theme-dark .note-color-palette {
    border-color: #3a3a3a;
}

body.theme-dark .note-color .note-dropdown-menu .note-color-reset,
body.theme-dark .note-color .note-dropdown-menu .note-color-select {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

body.theme-dark .note-table {
    border-color: #454545;
}

body.theme-dark .note-table td {
    background-color: #2a2a2a;
    border-color: #454545;
}

body.theme-dark .note-tooltip {
    background-color: #424242;
}

body.theme-dark .note-tooltip .note-tooltip-content {
    color: #fff;
}

/*
 * Misc
 */
body.theme-dark .img-thumbnail {
    border-color: #333333;
}

body.theme-dark .close {
    color: #e0e0e0;
    text-shadow: none;
}

body.theme-dark .close:hover,
body.theme-dark .close:focus {
    color: #fff;
}

body.theme-dark .caption {
    color: #e0e0e0;
}

body.theme-dark .dl-horizontal dt {
    color: #e0e0e0;
}

body.theme-dark .dl-horizontal dd {
    border-top-color: #333333;
}

body.theme-dark .jumbotron {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.theme-dark .code {
    color: #e0e0e0;
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

body.theme-dark pre {
    color: #e0e0e0;
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

body.theme-dark code {
    color: #e0e0e0;
    background-color: #2a2a2a;
    border-radius: 3px;
}

body.theme-dark kbd {
    color: #fff;
    background-color: #3a3a3a;
}

body.theme-dark .navbar-toggle {
    border-color: #4a4a4a;
}

body.theme-dark .navbar-toggle .icon-bar {
    background-color: #e0e0e0;
}

body.theme-dark .navbar-toggle:hover,
body.theme-dark .navbar-toggle:focus {
    background-color: #3a3a3a;
}
