/* Theme overrides for whole UI.
   Activated by server-side <body class="theme-*"> when:
   - ?theme=dark|light|red|green|blue  (SESSION + cookie dovis_theme)
   - cookie dovis_theme obnovi volbu po nove session / prihlaseni
   - ?theme=auto  vymaze SESSION i cookie
*/

body.theme-dark {
  color-scheme: dark;
}

body.theme-dark,
body.theme-dark #wrapper,
body.theme-dark .content-main,
body.theme-dark .content-top-1,
body.theme-dark .content-graph,
body.theme-dark .middle-content,
body.theme-dark .weather,
body.theme-dark .post,
body.theme-dark .blank-page,
body.theme-dark .grid_3,
body.theme-dark .grid-1,
body.theme-dark .grid-form1,
body.theme-dark .validation-form,
body.theme-dark nav.nav-sidebar,
body.theme-dark .content-box,
body.theme-dark .inbox-right {
  background-color: #0f141b !important;
  color: #e5e7eb !important;
  border-color: #2b3440 !important;
}

body.theme-dark #page-wrapper.gray-bg,
body.theme-dark #page-wrapper,
body.theme-dark .banner,
body.theme-dark .border-bottom,
body.theme-dark .navbar-default.sidebar,
body.theme-dark nav.navbar-default.navbar-static-top,
body.theme-dark .drop-men {
  background-color: #0b1017 !important;
  border-color: #2b3440 !important;
}

body.theme-dark .border-bottom .full-left a {
  color: #cbd5e1 !important;
}

body.theme-dark .border-bottom .full-left a:hover,
body.theme-dark .border-bottom .full-left a:focus {
  color: #93c5fd !important;
}

body.theme-dark .drop-men .dropdown-at,
body.theme-dark .drop-men .name-caret {
  color: #e5e7eb !important;
}

body.theme-dark a,
body.theme-dark a:visited {
  color: #93c5fd;
}
body.theme-dark a:hover,
body.theme-dark a:focus {
  color: #bfdbfe;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark .banner h2 span,
body.theme-dark .banner h2 a,
body.theme-dark .navbar .navbar-nav li .dropdown-menu li a div {
  color: #e5e7eb !important;
}
body.theme-dark .banner h2 span a i.fa {
  color: #94a3b8 !important;
}
body.theme-dark .banner h2 span a:hover i.fa {
  color: #60a5fa !important;
}
/* akce.asp seznam — ikonky akcí v řádcích (AkceSeznam2.asp) */
body.theme-dark .horz-grid .show-grid a i.fa {
  color: inherit;
  opacity: 0.92;
}
body.theme-dark .horz-grid .show-grid a:hover i.fa {
  opacity: 1;
}

body.theme-dark .nav > li > a,
body.theme-dark .sidebar ul li a,
body.theme-dark i.nav_icon,
body.theme-dark i.nav_icon2 {
  color: #cbd5e1 !important;
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .dropdown-menu,
body.theme-dark .navbar .navbar-nav li .dropdown-menu,
body.theme-dark .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-dark .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
}
body.theme-dark .navbar .navbar-nav li .dropdown-menu li,
body.theme-dark .dropdown-menu li {
  border-bottom-color: #253040 !important;
}
body.theme-dark .dropdown-menu>li>a:focus,
body.theme-dark .dropdown-menu>li>a:hover {
  background-color: #162133 !important;
}

body.theme-dark .table,
body.theme-dark .table > thead > tr > th,
body.theme-dark .table > tbody > tr > th,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tfoot > tr > td {
  color: #e5e7eb !important;
  border-color: #2b3440 !important;
}
body.theme-dark tr.table-row:hover {
  background: #121a24 !important;
}

body.theme-dark input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .form-control,
body.theme-dark .form-control1,
body.theme-dark .form-control2,
body.theme-dark .form-control-hledej {
  background-color: #0b1017 !important;
  color: #e5e7eb !important;
  border-color: #2b3440 !important;
}
body.theme-dark select option {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
}
body.theme-dark .input-icon > i,
body.theme-dark .input-icon .icon {
  color: #9ca3af !important;
}

/* Bootstrap tlačítka — akce.asp vyhledávání (AkceHledej.asp: Hledej, Infosheet, …) */
body.theme-dark .btn-default,
body.theme-dark input.btn-default.btn,
body.theme-dark button.btn-default.btn,
body.theme-dark div.btn-default.btn {
  color: #e5e7eb !important;
  background-color: #334155 !important;
  border-color: #475569 !important;
}
body.theme-dark .btn-default:hover,
body.theme-dark .btn-default:focus,
body.theme-dark .btn-default:active,
body.theme-dark input.btn-default.btn:hover,
body.theme-dark input.btn-default.btn:focus,
body.theme-dark button.btn-default.btn:hover,
body.theme-dark button.btn-default.btn:focus,
body.theme-dark div.btn-default.btn:hover {
  color: #f8fafc !important;
  background-color: #3f5266 !important;
  border-color: #1ab394 !important;
}
body.theme-dark .btn-default a,
body.theme-dark div.btn-default.btn a {
  color: #e5e7eb !important;
  text-decoration: none !important;
}
body.theme-dark .btn-default a:hover,
body.theme-dark .btn-default a:focus,
body.theme-dark div.btn-default.btn:hover a,
body.theme-dark div.btn-default.btn a:hover {
  color: #4ade80 !important;
}
body.theme-dark .profile-btn-action {
  color: #fff !important;
  font-weight: 600;
}
body.theme-dark .profile-btn-edit {
  background-color: #0891b2 !important;
  border-color: #0e7490 !important;
}
body.theme-dark .profile-btn-edit:hover,
body.theme-dark .profile-btn-edit:focus {
  background-color: #0e7490 !important;
  border-color: #22d3ee !important;
}
body.theme-dark .profile-btn-reset {
  background-color: #d97706 !important;
  border-color: #b45309 !important;
}
body.theme-dark .profile-btn-reset:hover,
body.theme-dark .profile-btn-reset:focus {
  background-color: #b45309 !important;
  border-color: #fbbf24 !important;
}
body.theme-dark .profile-btn-mfa {
  background-color: #7c3aed !important;
  border-color: #6d28d9 !important;
}
body.theme-dark .profile-btn-mfa:hover,
body.theme-dark .profile-btn-mfa:focus {
  background-color: #6d28d9 !important;
  border-color: #a78bfa !important;
}

/* ----- users.asp?action=profil — karta profilu ----- */
body.theme-dark .profile-bottom {
  background-color: #121a24 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
body.theme-dark .profile-bottom h3 {
  color: #e5e7eb !important;
  border-bottom-color: #334155 !important;
}
body.theme-dark .profile-bottom h3 i {
  background: #1e293b !important;
  color: #94a3b8 !important;
}
body.theme-dark .profile-text h6 {
  color: #f3f4f6 !important;
}
body.theme-dark .profile-text td {
  color: #cbd5e1 !important;
}
body.theme-dark .profile-text td a {
  color: #93c5fd !important;
}
body.theme-dark .profile-text td a:hover,
body.theme-dark .profile-text td a:focus {
  color: #bfdbfe !important;
}
body.theme-dark .profile-text font[color="#FF0000"],
body.theme-dark .profile font[color="#FF0000"] {
  color: #fca5a5 !important;
}
body.theme-dark .profile-fo h4 {
  color: #e5e7eb !important;
}
body.theme-dark .profile-fo p {
  color: #94a3b8 !important;
}
body.theme-dark .profile-name {
  color: #f3f4f6 !important;
}
body.theme-dark .profile-subtitle {
  color: #94a3b8 !important;
}
body.theme-dark .profile-label {
  color: #94a3b8 !important;
}
body.theme-dark .profile-value {
  color: #e5e7eb !important;
}
body.theme-dark .profile-value a {
  color: #93c5fd !important;
}
body.theme-dark .profile-row {
  border-bottom-color: #1e293b !important;
}
body.theme-dark .profile-row-role {
  border-top-color: #334155 !important;
}
body.theme-dark .profile-btn {
  border-top-color: #334155 !important;
}
body.theme-dark .profile-role-badge {
  background: #1e3a5f !important;
  color: #93c5fd !important;
}
body.theme-dark .profile-role-badge-muted {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
body.theme-dark .profile-role-code {
  background: rgba(255,255,255,0.08) !important;
  color: #e5e7eb !important;
}
body.theme-dark .profile-role-desc {
  color: #94a3b8 !important;
}
body.theme-dark .profile-role-note {
  color: #64748b !important;
}
body.theme-dark .profile-photo,
body.theme-dark .profile-photo-fallback {
  border-color: #334155 !important;
}
body.theme-dark .profile-photo-edit {
  color: #67e8f9 !important;
}
body.theme-dark .profile-theme-box.profile-theme {
  background-color: #1a2330 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
body.theme-dark .profile-theme-desc {
  border-bottom-color: #334155 !important;
}
body.theme-dark .profile-theme-title {
  color: #e5e7eb !important;
}
body.theme-dark .profile-theme-title i {
  background: #1e293b !important;
  color: #94a3b8 !important;
}
body.theme-dark .profile-theme-desc {
  color: #94a3b8 !important;
}
body.theme-dark .profile-theme-opt {
  background: #1a2330 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .profile-theme-opt:hover,
body.theme-dark .profile-theme-opt:focus {
  border-color: #475569 !important;
  color: #f8fafc !important;
}
body.theme-dark .profile-theme-opt.is-active {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px #38bdf8 !important;
  background: #0f2744 !important;
}

/* ----- reset hesla / info stránky (chyba.asp layout) ----- */
body.theme-dark .four,
body.theme-dark .four h2 {
  color: #e5e7eb !important;
}
body.theme-dark .four h2 {
  font-size: 1.8em !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  padding: 0 1em 0.5em !important;
}
body.theme-dark .four p {
  color: #cbd5e1 !important;
}
body.theme-dark .four a,
body.theme-dark .four a.hvr-shutter-in-horizontal {
  color: #fff !important;
  background: #1ab394 !important;
  border: 1px solid #18a689 !important;
}
body.theme-dark .four a:hover,
body.theme-dark .four a:focus {
  background: #18a689 !important;
  border-color: #4ade80 !important;
}

body.theme-dark .btn-primary {
  color: #fff !important;
  background-color: #1ab394 !important;
  border-color: #18a689 !important;
}
body.theme-dark .btn-primary:hover,
body.theme-dark .btn-primary:focus {
  color: #fff !important;
  background-color: #18a689 !important;
  border-color: #4ade80 !important;
}
body.theme-dark .btn-success {
  color: #fff !important;
  background-color: #15803d !important;
  border-color: #166534 !important;
}
body.theme-dark .btn-success:hover,
body.theme-dark .btn-success:focus {
  color: #fff !important;
  background-color: #166534 !important;
  border-color: #4ade80 !important;
}
body.theme-dark .btn-info {
  color: #e5e7eb !important;
  background-color: #1e3a5f !important;
  border-color: #1d4ed8 !important;
}
body.theme-dark .btn-info:hover,
body.theme-dark .btn-info:focus {
  color: #fff !important;
  background-color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
body.theme-dark .btn-warning {
  color: #1a1208 !important;
  background-color: #fbbf24 !important;
  border-color: #d97706 !important;
}
body.theme-dark .btn-warning:hover,
body.theme-dark .btn-warning:focus {
  color: #1a1208 !important;
  background-color: #f59e0b !important;
  border-color: #fde68a !important;
}
body.theme-dark .btn-danger {
  color: #fff !important;
  background-color: #991b1b !important;
  border-color: #7f1d1d !important;
}
body.theme-dark .btn-danger:hover,
body.theme-dark .btn-danger:focus {
  color: #fff !important;
  background-color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

/* CKEditor 4 — step01.asp popisakce a další .ckeditor textareas */
body.theme-dark .cke_chrome {
  border-color: #334155 !important;
}
body.theme-dark .cke_inner {
  background: #1a2330 !important;
}
body.theme-dark .cke_top,
body.theme-dark .cke_bottom {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.theme-dark .cke_reset_all,
body.theme-dark .cke_reset_all .cke_combo_text,
body.theme-dark .cke_reset_all .cke_button_label,
body.theme-dark .cke_reset_all a.cke_path_item,
body.theme-dark .cke_reset_all span.cke_path_empty {
  color: #cbd5e1 !important;
}
body.theme-dark .cke_wysiwyg_frame,
body.theme-dark .cke_wysiwyg_div {
  background-color: #1a2330 !important;
}
body.theme-dark textarea.cke_source {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
}
body.theme-dark a.cke_button_off:hover,
body.theme-dark a.cke_button_off:focus,
body.theme-dark a.cke_button_off:active,
body.theme-dark .cke_combo_off a.cke_combo_button:hover,
body.theme-dark .cke_combo_off a.cke_combo_button:focus,
body.theme-dark .cke_combo_off a.cke_combo_button:active,
body.theme-dark a.cke_path_item:hover,
body.theme-dark a.cke_path_item:focus,
body.theme-dark a.cke_path_item:active {
  background: #334155 !important;
  border-color: #475569 !important;
}
body.theme-dark a.cke_button_on,
body.theme-dark .cke_combo_on a.cke_combo_button {
  background: #334155 !important;
  border-color: #1ab394 !important;
}
body.theme-dark .cke_toolbar_separator,
body.theme-dark .cke_combo:after {
  background-color: #475569 !important;
  border-color: #475569 !important;
}
body.theme-dark .cke_button_arrow,
body.theme-dark .cke_combo_arrow {
  border-top-color: #94a3b8 !important;
}
body.theme-dark .cke_panel,
body.theme-dark .cke_menu_panel {
  background-color: #1a2330 !important;
  border-color: #334155 !important;
}
body.theme-dark .cke_panel_grouptitle {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-bottom-color: #334155 !important;
}
body.theme-dark .cke_panel_listItem a {
  color: #e5e7eb !important;
}
body.theme-dark .cke_panel_listItem.cke_selected a,
body.theme-dark .cke_panel_listItem a:hover,
body.theme-dark .cke_panel_listItem a:focus,
body.theme-dark .cke_panel_listItem a:active,
body.theme-dark .cke_menubutton:hover,
body.theme-dark .cke_menubutton:focus,
body.theme-dark .cke_menubutton:active {
  background-color: #334155 !important;
}
body.theme-dark .cke_menubutton_icon {
  background-color: #1e293b !important;
}
body.theme-dark .cke_menubutton:hover .cke_menubutton_icon,
body.theme-dark .cke_menubutton:focus .cke_menubutton_icon,
body.theme-dark .cke_menubutton:active .cke_menubutton_icon {
  background-color: #334155 !important;
}
body.theme-dark .cke_resizer {
  border-right-color: #64748b !important;
}

body.theme-dark .select2-container--default .select2-selection--single {
  background-color: #0b1017 !important;
  border-color: #2b3440 !important;
}
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #e5e7eb !important;
  line-height: 32px !important;
}
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
}
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: #94a3b8 !important;
}
body.theme-dark .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-bottom-color: #94a3b8 !important;
  border-top-color: transparent !important;
}
body.theme-dark .select2-container--default.select2-container--focus .select2-selection--single,
body.theme-dark .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #1ab394 !important;
  box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.22) !important;
}
body.theme-dark .select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #121a24 !important;
  color: #64748b !important;
}
body.theme-dark .select2-dropdown {
  background-color: #1a2330 !important;
  border-color: #334155 !important;
}
body.theme-dark .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #0b1017 !important;
  color: #e5e7eb !important;
  border-color: #334155 !important;
}
body.theme-dark .select2-container--default .select2-results__option {
  color: #cbd5e1 !important;
}
body.theme-dark .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #1e293b !important;
  color: #e5e7eb !important;
}
body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #1ab394 !important;
  color: #fff !important;
}
body.theme-dark .select2-container--default .select2-selection--multiple {
  background-color: #0b1017 !important;
  border-color: #2b3440 !important;
}
body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #e5e7eb !important;
}
body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #94a3b8 !important;
}
body.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fca5a5 !important;
}

/* Module list (ESP32 WebSpinani) */
body.theme-dark .expoBox_sekce {
  border-color: #2b3440 !important;
}
body.theme-dark .expoBox_polozka {
  background-color: #121a24 !important;
  box-shadow: 0 0 0 transparent !important;
}
body.theme-dark h4.name_expo,
body.theme-dark .state_expo {
  color: #cbd5e1 !important;
}
body.theme-dark h3.name_section {
  color: #e5e7eb !important;
}
body.theme-dark .expoBox_polozka.online_box {
  background-color: #0f231a !important;
  border-color: #1f6f4b !important;
}
body.theme-dark .expoBox_polozka.offline_box {
  background-color: #2a1416 !important;
  border-color: #8f2d3a !important;
}

/* Minor: reduce bright outlines/shadows */
body.theme-dark .nav>li>a:focus,
body.theme-dark .nav>li>a:hover {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ----- Content panels (kategorie, formuláře v .horz-grid) ----- */
body.theme-dark .horz-grid {
  background: #121a24 !important;
  border-color: #2b3440 !important;
  box-shadow: none !important;
}
body.theme-dark .grid-form1 {
  background: #121a24 !important;
  border-color: #2b3440 !important;
}
body.theme-dark td[bgcolor="#dadada"],
body.theme-dark tr[bgcolor="#dadada"] td,
body.theme-dark tr[bgcolor="#DADADA"] td {
  background-color: #1e293b !important;
  color: #e5e7eb !important;
}
body.theme-dark .blank-page p {
  color: #cbd5e1 !important;
}
body.theme-dark .grid-hor h2 {
  color: #e5e7eb !important;
}
body.theme-dark .grid-hor p {
  color: #94a3b8 !important;
}

/* ----- Bootstrap-ish surfaces ----- */
body.theme-dark .panel,
body.theme-dark .panel-default > .panel-heading,
body.theme-dark .panel-body,
body.theme-dark .panel-footer {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
  color: #e5e7eb !important;
}
body.theme-dark .panel-default > .panel-heading {
  color: #e5e7eb !important;
}
body.theme-dark .well {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
  color: #e5e7eb !important;
}
body.theme-dark .list-group-item {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
  color: #e5e7eb !important;
}
body.theme-dark .modal-content {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
  color: #e5e7eb !important;
}
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
  border-color: #2b3440 !important;
}
body.theme-dark .text-muted {
  color: #94a3b8 !important;
}
body.theme-dark .close {
  color: #e5e7eb !important;
  opacity: 0.85;
}

/* ----- Mřížka řádků (KategorieSeznam, kalendář, akce.asp detail) ----- */
body.theme-dark .show-grid [class^="col-"],
body.theme-dark .show-red [class^="col-"],
body.theme-dark .show-yelow [class^="col-"],
body.theme-dark .show-green [class^="col-"],
body.theme-dark .show-blue [class^="col-"] {
  border-color: #2b3440 !important;
}
/* Výchozí buňky bez teestZ/teestX (Popis, popisky sloupců, …) */
body.theme-dark .horz-grid .show-grid [class^="col-"]:not([class*="teestZ"]):not([class*="teestX"]):not([class*="teestVlastni"]):not([class*="teestred"]):not([class*="teestorange"]):not([class*="teestWhite"]):not([class*="teestZBila"]):not([class*="teestBlack"]) {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
}
body.theme-dark .horz-grid .show-grid .teest:not([class*="teestZ"]):not([class*="teestX"]):not([class*="teestVlastni"]) {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
}

/* Graf historie cen — akce.asp?action=view (AkceHistorieCenGraf.asp) */
body.theme-dark #line_chart_div {
  background-color: #1a2330 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
body.theme-dark #line_chart_div p {
  color: #94a3b8 !important;
}
/* Řádky s teestZ/teestX na .row (prostory, personál) */
body.theme-dark .horz-grid .show-grid.teestX [class^="col-"] {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}
body.theme-dark .horz-grid .show-grid.teestZ2 [class^="col-"] {
  background-color: #1e293b !important;
  color: #e5e7eb !important;
}
body.theme-dark .horz-grid .show-grid.teestZ:not(.teestZ2):not(.teestZred):not(.teestZyellow):not(.teestERR) [class^="col-"] {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
}
body.theme-dark .horz-grid .show-grid.teestZred [class^="col-"],
body.theme-dark .horz-grid .show-grid.teestERR [class^="col-"] {
  background-color: #451a1a !important;
  color: #fecaca !important;
}
body.theme-dark .horz-grid .show-grid.teestZyellow [class^="col-"] {
  background-color: #422006 !important;
  color: #fde68a !important;
}

body.theme-dark .teest:hover {
  background: #253040 !important;
  box-shadow: none !important;
}
body.theme-dark .teest-red:hover {
  background: #7f1d1d !important;
  color: #fecaca !important;
  box-shadow: none !important;
}
body.theme-dark .teest-yelow:hover {
  background: #713f12 !important;
  color: #fef3c7 !important;
  box-shadow: none !important;
}
body.theme-dark .teest-green:hover {
  background: #14532d !important;
  color: #bbf7d0 !important;
  box-shadow: none !important;
}
body.theme-dark .teest-blue:hover {
  background: #1e3a5f !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}

/* kalendar.css přepisuje .teest:hover — ztlumit */
body.theme-dark .teest2:hover,
body.theme-dark .teest3:hover,
body.theme-dark .teest4:hover,
body.theme-dark .teest5:hover,
body.theme-dark .teest6:hover,
body.theme-dark .teest7:hover {
  box-shadow: none !important;
}
body.theme-dark .teest2:hover {
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .teest3:hover {
  background: #14532d !important;
  color: #bbf7d0 !important;
}
body.theme-dark .teest4:hover {
  background: #713f12 !important;
  color: #fde68a !important;
}
body.theme-dark .teest5:hover {
  background: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .teest6:hover {
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .teest7:hover {
  background: #312e81 !important;
  color: #e0e7ff !important;
}

body.theme-dark .teestERR:hover {
  background: #7f1d1d !important;
  box-shadow: none !important;
}
body.theme-dark .teestERR2:hover {
  background: #5c2020 !important;
  box-shadow: none !important;
}
body.theme-dark .teestERR3:hover {
  background: #3f4f2e !important;
  box-shadow: none !important;
}
body.theme-dark .teest-grid:hover {
  background: #3f2d2d !important;
  box-shadow: none !important;
}
body.theme-dark .teest-white:hover,
body.theme-dark .teest-silver:hover,
body.theme-dark .teest-brown:hover {
  box-shadow: none !important;
}
body.theme-dark .teest-white:hover {
  background: #334155 !important;
}
body.theme-dark .teest-silver:hover {
  background: #475569 !important;
}

/* Buňky / zvýraznění řádků (kalendar.css) */
body.theme-dark .teestWhite,
body.theme-dark .teestZBila {
  background: #121a24 !important;
  color: #e5e7eb !important;
}
body.theme-dark .teestZ,
body.theme-dark .teestZ2 {
  background: #1a2330 !important;
  color: #e5e7eb !important;
}
body.theme-dark .teestX {
  background: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .teestX2 {
  background: #475569 !important;
  color: #f1f5f9 !important;
}
body.theme-dark .teestred {
  background: #991b1b !important;
  color: #fecaca !important;
}
body.theme-dark .teestZred {
  background: #451a1a !important;
  color: #fecaca !important;
}
body.theme-dark .teestZred2 {
  background: #7f1d1d !important;
  color: #fff !important;
}
body.theme-dark .teestZgreen,
body.theme-dark .teestZgreen3 {
  background: #0f231a !important;
  color: #a7f3d0 !important;
}
body.theme-dark .teestZgreen1,
body.theme-dark .teestZgreen2 {
  background: #1a2e1f !important;
  color: #bbf7d0 !important;
}
body.theme-dark .teestZyellow,
body.theme-dark .teestZyellow2 {
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .teestZorange {
  background: #5c3112 !important;
  color: #fed7aa !important;
}
body.theme-dark .teestZhneda {
  background: #5c2d2d !important;
  color: #fecaca !important;
}
body.theme-dark .teestZblue {
  background: #1e3a5f !important;
  color: #dbeafe !important;
}
body.theme-dark .teestZblue2 {
  background: #1e40af !important;
  color: #e0e7ff !important;
}
body.theme-dark .teestorange {
  background: #713f12 !important;
  color: #fde68a !important;
}
body.theme-dark .teestBlack {
  background: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .teestVlastni {
  background: #14532d !important;
  color: #bbf7d0 !important;
}

body.theme-dark .znakred {
  color: #f87171 !important;
}
body.theme-dark .znakgreen {
  color: #4ade80 !important;
}
body.theme-dark .znakmangeta {
  color: #d8b4fe !important;
}

/* Celé řádky kalendáře */
body.theme-dark .show-red {
  background-color: #3f1f23 !important;
}
body.theme-dark .show-red a {
  color: #fecaca !important;
}
body.theme-dark .show-orange {
  background-color: #422006 !important;
}
body.theme-dark .show-orange a {
  color: #fde68a !important;
}
body.theme-dark .show-green {
  background-color: #0f231a !important;
}
body.theme-dark .show-green a {
  color: #bbf7d0 !important;
}
body.theme-dark .show-ext {
  background-color: #365314 !important;
}
body.theme-dark .show-ext a {
  color: #d9f99d !important;
}

body.theme-dark .cdateinfoshow-grid {
  background-color: #121a24 !important;
}
body.theme-dark .cdateinfoshow-grid a {
  color: #cbd5e1 !important;
}
body.theme-dark .cdateinfoshow-white {
  background-color: #121a24 !important;
}
body.theme-dark .cdateinfoshow-white a {
  color: #cbd5e1 !important;
}
body.theme-dark .cdateinfoshow-silver {
  background-color: #334155 !important;
}
body.theme-dark .cdateinfoshow-silver a {
  color: #e5e7eb !important;
}
body.theme-dark .cdateinfoshow-red {
  background-color: #3f1f23 !important;
}
body.theme-dark .cdateinfoshow-red a {
  color: #fecaca !important;
}
body.theme-dark .cdateinfoshow-yelow {
  background-color: #422006 !important;
}
body.theme-dark .cdateinfoshow-yelow a {
  color: #fde68a !important;
}
body.theme-dark .cdateinfoshow-green {
  background-color: #0f231a !important;
}
body.theme-dark .cdateinfoshow-green a {
  color: #bbf7d0 !important;
}
body.theme-dark .cdateinfoshow-brown {
  background-color: #5c2d2d !important;
}
body.theme-dark .cdateinfoshow-brown a {
  color: #fecaca !important;
}
body.theme-dark .cdateinfoshow-blue {
  background-color: #1e3a5f !important;
  color: #dbeafe !important;
}
body.theme-dark .cdateinfoshow-blue a {
  color: #dbeafe !important;
}
body.theme-dark .cdateinfoshow-orange {
  background-color: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .cdateinfoshow-orange a {
  color: #fde68a !important;
}
body.theme-dark .cdateinfoshow-ext {
  background-color: #365314 !important;
}
body.theme-dark .cdateinfoshow-ext a {
  color: #d9f99d !important;
}
body.theme-dark .cdateinfoshow-priprava {
  background-color: #134e4a !important;
}
body.theme-dark .cdateinfoshow-priprava a {
  color: #ccfbf1 !important;
}
body.theme-dark .cdateinfoshow-info {
  background-color: #581c87 !important;
  color: #f3e8ff !important;
}
body.theme-dark .cdateinfoshow-info a {
  color: #f3e8ff !important;
}
body.theme-dark .cdateinfoshow-vlastni {
  background-color: #14532d !important;
  color: #bbf7d0 !important;
}
body.theme-dark .cdateinfoshow-vlastni a {
  color: #bbf7d0 !important;
}

body.theme-dark .technika1 {
  background: #1a2e32 !important;
  color: #e5e7eb !important;
}
body.theme-dark .technika2 {
  background: #1e2936 !important;
  color: #e5e7eb !important;
}

/* Průvodce kroků (akce.css) */
body.theme-dark ul.nav-wizard {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
}
body.theme-dark ul.nav-wizard:before,
body.theme-dark ul.nav-wizard:after {
  border-color: #2b3440 !important;
}
body.theme-dark ul.nav-wizard li:after {
  border-left-color: #121a24 !important;
}
body.theme-dark ul.nav-wizard li:before {
  border-left-color: #475569 !important;
}
body.theme-dark ul.nav-wizard li a {
  color: #cbd5e1 !important;
}
body.theme-dark ul.nav-wizard li.active {
  color: #93c5fd !important;
  background: #1e3a5f !important;
}
body.theme-dark ul.nav-wizard li.active:after {
  border-left-color: #1e3a5f !important;
}
body.theme-dark ul.nav-wizard li.activeX {
  background: #7f1d1d !important;
  color: #fecaca !important;
}
body.theme-dark ul.nav-wizard li.activeX:after {
  border-left-color: #7f1d1d !important;
}
body.theme-dark ul.nav-wizard li.activeO {
  background: #14532d !important;
  color: #bbf7d0 !important;
}
body.theme-dark ul.nav-wizard li.activeO:after {
  border-left-color: #14532d !important;
}

/* Akční řádky ve style.css */
body.theme-dark .row.akce-nova {
  background-color: #5c3112 !important;
}
body.theme-dark .akce-nova a {
  color: #fde68a !important;
}
body.theme-dark .row.akce-prosla {
  background-color: #4c1d95 !important;
}
body.theme-dark .akce-prosla a {
  color: #e9d5ff !important;
}
body.theme-dark .xakce-bezmista {
  background: #334155 !important;
  color: #fecaca !important;
}
body.theme-dark .row.akce-bezmobiliar {
  background-color: #312e81 !important;
}
body.theme-dark .akce-bezmobiliar a {
  color: #e0e7ff !important;
}

/* Přihlášení (signin.asp — světlý box) */
body.theme-dark .login-bottom,
body.theme-dark .login-bottom2 {
  background-color: #121a24 !important;
  border-color: #2b3440 !important;
  box-shadow: none !important;
}
body.theme-dark .login-bottom h2,
body.theme-dark .login-bottom2 h2 {
  color: #e5e7eb !important;
}
body.theme-dark .login-mail {
  border-color: #2b3440 !important;
  background-color: #0b1017 !important;
}
body.theme-dark .login-mail i {
  color: #94a3b8 !important;
}
body.theme-dark .login-mail input[type="text"],
body.theme-dark .login-mail input[type="email"],
body.theme-dark .login-mail input[type="password"] {
  color: #e5e7eb !important;
  background: transparent !important;
}
body.theme-dark .login-do p {
  color: #94a3b8 !important;
}

/* UserResetHeslo.asp — stejný layout jako signin.asp (col-md-6 + login-do) */
.reset-heslo-form {
  position: relative;
}
.reset-heslo-pwd {
  text-transform: none;
}
.reset-heslo-decoy-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.reset-heslo-pravidla-box {
  width: 100%;
  box-sizing: border-box;
  margin: 1.25em 0 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.reset-heslo-popis {
  margin: 0.75em 0 0;
  padding: 0;
  border: none;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  text-align: left;
}
.reset-heslo-chyba {
  margin: 0 0.9em 1em;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 13px;
}
.reset-heslo-nahled {
  font-size: 11px;
  font-weight: normal;
  color: #64748b;
  white-space: nowrap;
}
.reset-heslo-pravidla {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
  width: 100%;
  column-count: 2;
  column-gap: 1.5em;
}
.reset-heslo-pravidla li {
  margin: 0 0 6px;
  color: #64748b;
  break-inside: avoid;
}
.reset-heslo-ikona {
  display: inline-block;
  width: 1.2em;
  font-weight: bold;
}
.reset-heslo-pravidla li.reset-heslo-ok {
  color: #15803d;
}
.reset-heslo-pravidla li.reset-heslo-ok .reset-heslo-ikona {
  color: #16a34a;
}
.reset-heslo-pravidla li.reset-heslo-fail {
  color: #b91c1c;
}
.reset-heslo-pravidla li.reset-heslo-fail .reset-heslo-ikona {
  color: #dc2626;
}
#resetHesloSubmit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.reset-heslo-ucet {
  margin: 0 0 10px;
  font-size: 13px;
  color: #475569;
  text-align: left;
}
.reset-heslo-login-pm,
.reset-heslo-decoy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.theme-dark .reset-heslo-ucet {
  color: #cbd5e1;
}
body.theme-dark .reset-heslo-mail {
  border-color: #2b3440 !important;
  background-color: #0b1017 !important;
}
body.theme-dark .reset-heslo-mail i {
  color: #94a3b8 !important;
}
body.theme-dark .reset-heslo-mail input[type="text"],
body.theme-dark .reset-heslo-mail input[type="password"] {
  color: #e5e7eb !important;
}
body.theme-dark .reset-heslo-pravidla-box {
  background: #0b1017;
  border-color: #2b3440;
}
body.theme-dark .reset-heslo-popis {
  color: #94a3b8;
}
body.theme-dark .reset-heslo-chyba {
  background: #3f1d1d;
  border-color: #7f1d1d;
  color: #fecaca;
}
body.theme-dark .reset-heslo-pravidla li {
  color: #94a3b8;
}
body.theme-dark .reset-heslo-pravidla li.reset-heslo-ok {
  color: #86efac;
}
body.theme-dark .reset-heslo-pravidla li.reset-heslo-fail {
  color: #fca5a5;
}

.dovis-browser-info {
  margin: 0;
  padding: 12px 16px;
  background: #fffbeb;
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.dovis-browser-info p {
  margin: 6px 0 0;
}
.dovis-browser-info-steps {
  margin: 8px 0 0;
  padding-left: 1.25em;
}
.dovis-browser-info-steps li {
  margin: 4px 0;
}
body.theme-dark .dovis-browser-info {
  background: #422006;
  border-color: #b45309;
  color: #fde68a;
}

.signin-chyba {
  margin: 0 0.9em 1em;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
body.theme-dark .signin-chyba {
  background: #3f1d1d;
  border-color: #7f1d1d;
  color: #fecaca;
}

.signin-reset {
  margin: 0 0.9em 1.2em;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  text-align: left;
}
.signin-reset-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #166534;
}
.signin-reset-btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1ab394;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.signin-reset-btn:hover {
  background: #15967d;
}
body.theme-dark .signin-reset {
  background: #14291f;
  border-color: #1e4d38;
}
body.theme-dark .signin-reset-text {
  color: #86efac;
}

.signin-mfa-zapnuto {
  margin: 0.8em 0.9em 0.35em;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  color: #166534;
}
.signin-mfa-zapnuto .fa-shield {
  color: #16a34a;
  margin-right: 6px;
}
.signin-mfa-zapnuto strong {
  color: #b45309;
}
body.theme-dark .signin-mfa-zapnuto {
  background: #422006;
  border-color: #b45309;
  color: #bbf7d0;
}
body.theme-dark .signin-mfa-zapnuto strong {
  color: #fdba74;
}
body.theme-dark .signin-mfa-zapnuto .fa-shield {
  color: #4ade80;
}

.heslo-zmenit-upozorneni {
  margin: 0;
  padding: 12px 18px;
  background: #fee2e2;
  border-bottom: 2px solid #ef4444;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.heslo-zmenit-upozorneni strong {
  color: #7f1d1d;
}
.heslo-zmenit-upozorneni-link {
  margin-left: 10px;
  font-weight: 700;
  color: #b91c1c;
  text-decoration: underline;
}
.heslo-zmenit-upozorneni-link:hover {
  color: #7f1d1d;
}
body.theme-dark .heslo-zmenit-upozorneni {
  background: #450a0a;
  border-bottom-color: #dc2626;
  color: #fecaca;
}
body.theme-dark .heslo-zmenit-upozorneni strong {
  color: #fca5a5;
}
body.theme-dark .heslo-zmenit-upozorneni-link {
  color: #f87171;
}
body.theme-dark .heslo-zmenit-upozorneni-link:hover {
  color: #fecaca;
}

.heslo-zmena-box {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.heslo-proc-zmenit {
  max-width: 520px;
}
.heslo-proc-zmenit-nadpis {
  margin: 1rem 0 0.35rem;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
body.theme-dark .heslo-proc-zmenit-nadpis {
  color: #e5e7eb;
}
.heslo-zmena-box p {
  margin: 0 0 12px;
}
.heslo-zmena-akce {
  margin: 16px 0;
}
.heslo-zmena-nebo {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.heslo-zmena-popis-odkaz {
  margin: 0 0 1rem;
  font-size: 13px;
  text-align: center;
}
.heslo-zmena-popis-odkaz a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}
.heslo-zmena-pokracovat {
  display: block;
  text-align: center;
  margin: 8px 0 16px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
}
body.theme-dark .heslo-zmena-popis-odkaz a {
  color: #93c5fd;
}
.heslo-zmena-zbyva {
  padding: 0.75rem 0.85rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.heslo-zmena-zbyva strong {
  color: #b45309;
}
.heslo-zmena-pozn {
  font-size: 12px;
  color: #6b7280;
}
.heslo-zmena-pozn-blok {
  color: #b45309;
  font-weight: 600;
}
body.theme-dark .heslo-zmena-zbyva {
  background: #422006;
  border-color: #b45309;
  color: #fde68a;
}
body.theme-dark .heslo-zmena-zbyva strong {
  color: #fdba74;
}
body.theme-dark .heslo-zmena-pozn-blok {
  color: #fdba74;
}
body.theme-dark .heslo-zmena-nebo,
body.theme-dark .heslo-zmena-pozn {
  color: #9ca3af;
}
body.theme-dark .heslo-zmena-pokracovat {
  color: #93c5fd;
}

@media (max-width: 640px) {
  .reset-heslo-pravidla {
    column-count: 1;
  }
}

/* moduly.asp — ModulySeznam.asp (barva ikony ping před / mimo inline JS) */
.moduly-seznam-ping {
  color: #7b7d7d;
}
body.theme-dark .moduly-seznam-ping {
  color: #94a3b8;
}

/* ----- ModulyHlavniSeznam2.asp (textový seznam / tabulka modulů) ----- */
.moduly_empty_state {
  color: #7b7d7d;
  padding: 12px;
}
body.theme-dark .moduly_empty_state {
  color: #94a3b8;
}

body.theme-dark .moduly_txt_wrap {
  color: #e5e7eb !important;
}

body.theme-dark .moduly_main_badge {
  background: #1e3a5f !important;
  color: #f1f5f9 !important;
}

body.theme-dark .moduly_row_main_expo td {
  background: linear-gradient(165deg, #152536 0%, #1a2838 55%, #1e293b 100%) !important;
  border-bottom-color: #2b3440 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .moduly_grid tbody tr.moduly_row_main_expo + tr.moduly_tbl_modwrap td {
  border-top-color: #2b3440 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_row_main_expo + tr.moduly_row_relay_hdr.moduly_row_first_relay td,
body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap + tr.moduly_row_relay_hdr.moduly_row_first_relay td {
  border-top-color: rgba(147, 197, 253, 0.35) !important;
}

body.theme-dark .moduly_row_relay_hdr td {
  background: #151f2e !important;
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .moduly_row_relay_hdr:not(.moduly_row_first_relay) td {
  border-top-color: #2b3440 !important;
}

body.theme-dark .moduly_subexpo_name {
  color: #93c5fd !important;
}

body.theme-dark .moduly_hw_cards_cell {
  background: #121a24 !important;
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .moduly_hw_card {
  border-color: #2b3440 !important;
  background: #121a24 !important;
  box-shadow: none !important;
}

body.theme-dark .moduly_hw_card:hover {
  background: #1a2330 !important;
  border-color: #3b4a5c !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .moduly_hw_card_online:hover {
  background: #0f231a !important;
  border-color: #1f6f4b !important;
}

body.theme-dark .moduly_hw_card_offline:hover {
  background: #2a1416 !important;
  border-color: #8f2d3a !important;
}

body.theme-dark .moduly_hw_card_empty:hover {
  background: #1a2330 !important;
  border-color: #3b4a5c !important;
}

body.theme-dark .moduly_hw_card_title {
  color: #e5e7eb !important;
}

body.theme-dark .moduly_hw_card_title .moduly_hw_title_link {
  color: #93c5fd !important;
}

body.theme-dark .moduly_hw_os_online {
  color: #4ade80 !important;
}

body.theme-dark .moduly_hw_os_offline {
  color: #f87171 !important;
}

body.theme-dark .moduly_hw_card_online .moduly_hw_card_title,
body.theme-dark .moduly_hw_card_online .moduly_hw_card_title .moduly_hw_title_link {
  color: #86efac !important;
}

body.theme-dark .moduly_hw_card_offline .moduly_hw_card_title,
body.theme-dark .moduly_hw_card_offline .moduly_hw_card_title .moduly_hw_title_link {
  color: #fca5a5 !important;
}

body.theme-dark .moduly_hw_akce_na {
  color: #94a3b8 !important;
}

body.theme-dark .moduly_grid {
  background: #121a24 !important;
  border-color: #2b3440 !important;
  box-shadow: none !important;
}

body.theme-dark .moduly_row_colhead th {
  color: #93c5fd !important;
  background: #151f2e !important;
  border-bottom-color: #334155 !important;
}

body.theme-dark .moduly_grid tbody td {
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_row_main_expo:last-child td {
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap td {
  background: #121a24 !important;
  border-bottom-color: #2b3440 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap.online_box td {
  background: #0f231a !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap.offline_box td {
  background: #2a1416 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_row_main_expo:hover td {
  background: linear-gradient(165deg, #1e3a5f 0%, #243247 52%, #2d3748 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap:hover td {
  background: #1a2330 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap.online_box:hover td {
  background: #14532d !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap.offline_box:hover td {
  background: #7f1d1d !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_row_relay_hdr:hover td {
  background: #1e293b !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra:hover td {
  background: linear-gradient(165deg, #1e3a5f 0%, #253548 52%, #2d3b4e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra.online_box:hover td {
  background: linear-gradient(165deg, #14532d 0%, #166534 50%, #1a3d2e 100%) !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra.offline_box:hover td {
  background: linear-gradient(165deg, #7f1d1d 0%, #991b1b 50%, #451a1a 100%) !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_relay_strip_extra:hover td {
  background: #1e3a5f !important;
}

body.theme-dark .moduly_grid thead tr.moduly_row_colhead:hover th {
  background: #1e293b !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra td {
  border-color: #3b82f6 !important;
  background: linear-gradient(165deg, #1a2740 0%, #1e293b 55%, #243045 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra.online_box td {
  background: linear-gradient(165deg, #0f2918 0%, #14532d 50%, #1a2e1f 100%) !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_tbl_modwrap_extra.offline_box td {
  background: linear-gradient(165deg, #3f1b1f 0%, #450a0a 50%, #2a1416 100%) !important;
}

body.theme-dark .moduly_tbl_mod_extra_rail {
  background: rgba(15, 20, 27, 0.72) !important;
}

body.theme-dark .moduly_mod_extra_hint {
  color: #94a3b8 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_relay_strip_extra td {
  background: #151f2e !important;
  border-bottom-color: #334155 !important;
}

body.theme-dark .moduly_grid tbody tr.moduly_relay_strip_extra + tr.moduly_tbl_modwrap_extra td {
  border-top: 8px solid #121a24 !important;
}

body.theme-dark .moduly_tbl_mod_inner .moduly_txt_kod a {
  color: #93c5fd !important;
}

body.theme-dark .moduly_txt_kod {
  color: #cbd5e1 !important;
}

body.theme-dark .moduly_txt_rele {
  color: #fbbf24 !important;
}

/* .moduly_txt_ping — barvu po ping dokončení nastavuje JS (inline), bez !important */
body.theme-dark .moduly_txt_ping {
  color: #94a3b8;
}

body.theme-dark .moduly_txt_ip a {
  color: #93c5fd !important;
}

@media screen and (max-width: 640px) {
  body.theme-dark .moduly_tbl_mod_extra_rail {
    border-bottom-color: rgba(147, 197, 253, 0.28) !important;
  }
}

/* ----- HardwareVse.asp ----- */
.hw_test_result_ping {
  font-size: 11px;
  margin-left: 6px;
  color: #7b7d7d;
}
body.theme-dark .hw_test_result_ping {
  color: #94a3b8;
}
body.theme-dark .hw_mobile_label,
body.theme-dark .hw_bulk_status {
  color: #94a3b8;
}
body.theme-dark .hw_cpk_missing {
  color: #f87171 !important;
}
body.theme-dark .hw_mac_missing_hint {
  color: #94a3b8;
}

/* ----- mapa.asp (org chart, hromadné akce) ----- */
.mapa_empty_msg {
  color: #a6acaf;
  font-size: 13px;
}
body.theme-dark .mapa_empty_msg {
  color: #94a3b8;
}

body.theme-dark .mapa_org_title {
  color: #93c5fd !important;
}
body.theme-dark .mapa_org_meta {
  color: #94a3b8 !important;
}
body.theme-dark .mapa_org_node.state_text_on,
body.theme-dark .mapa_org_node.state_text_on .mapa_org_title,
body.theme-dark .mapa_org_node.state_text_on .mapa_org_meta {
  color: #86efac !important;
}
body.theme-dark .mapa_org_node.state_text_off,
body.theme-dark .mapa_org_node.state_text_off .mapa_org_title,
body.theme-dark .mapa_org_node.state_text_off .mapa_org_meta {
  color: #fca5a5 !important;
}
body.theme-dark .mapa_hw_state_on {
  color: #4ade80 !important;
}
body.theme-dark .mapa_hw_state_off {
  color: #f87171 !important;
}
body.theme-dark .mapa_bulk_link.mapa_bulk_off,
body.theme-dark .mapa_bulk_link.mapa_bulk_off i {
  color: #f87171 !important;
}
body.theme-dark .mapa_bulk_link.mapa_bulk_on,
body.theme-dark .mapa_bulk_link.mapa_bulk_on i {
  color: #4ade80 !important;
}
body.theme-dark .mapa_bulk_link.mapa_bulk_restart,
body.theme-dark .mapa_bulk_link.mapa_bulk_restart i {
  color: #fbbf24 !important;
}
body.theme-dark .mapa_bulk_link.mapa_bulk_reset,
body.theme-dark .mapa_bulk_link.mapa_bulk_reset i {
  color: #94a3b8 !important;
}

/* Google OrgChart — tmavé uzly a spoje */
body.theme-dark #mapa_orgcharts_wrap table.google-visualization-orgchart-table {
  background: transparent;
}
body.theme-dark #mapa_orgcharts_wrap .google-visualization-orgchart-node,
body.theme-dark #mapa_orgcharts_wrap td.google-visualization-orgchart-node {
  background: #121a24 !important;
  background-color: #121a24 !important;
  border: 1px solid #334155 !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}
body.theme-dark #mapa_orgcharts_wrap .google-visualization-orgchart-node:hover,
body.theme-dark #mapa_orgcharts_wrap td.google-visualization-orgchart-node:hover {
  background: #1a2330 !important;
  background-color: #1a2330 !important;
}
body.theme-dark #mapa_orgcharts_wrap path {
  stroke: #64748b !important;
}
body.theme-dark #mapa_orgcharts_wrap .google-visualization-orgchart-linenode {
  border-color: #64748b !important;
}

/* default.asp / hardware.asp — hromadné akce v záhlaví */
body.theme-dark .default_bulk_link.default_bulk_off,
body.theme-dark .default_bulk_link.default_bulk_off i {
  color: #f87171 !important;
}
body.theme-dark .default_bulk_link.default_bulk_on,
body.theme-dark .default_bulk_link.default_bulk_on i {
  color: #4ade80 !important;
}
body.theme-dark .default_bulk_link.default_bulk_restart,
body.theme-dark .default_bulk_link.default_bulk_restart i {
  color: #fbbf24 !important;
}

/* ----- !moduly/OnOffBulkPreview.asp ----- */
body.theme-dark .onoff_prev_box {
  background: #121a24 !important;
  border-color: #2b3440 !important;
  box-shadow: none !important;
}
body.theme-dark .onoff_prev_box h3 {
  color: #93c5fd !important;
}
body.theme-dark .onoff_prev_ol {
  color: #cbd5e1 !important;
}
body.theme-dark .onoff_prev_meta {
  color: #94a3b8 !important;
}
body.theme-dark .onoff_prev_meta code {
  background: #1a2330 !important;
  color: #93c5fd !important;
  padding: 1px 6px;
  border-radius: 4px;
}
body.theme-dark .onoff_prev_btn_light {
  background: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .onoff_prev_btn_light:hover {
  filter: brightness(1.08);
}
body.theme-dark .onoff_prev_note {
  color: #94a3b8 !important;
}
body.theme-dark .onoff_prev_safe {
  border-color: #334155 !important;
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
body.theme-dark .onoff_prev_safe strong {
  color: #e5e7eb !important;
}
body.theme-dark .onoff_prev_test {
  border-color: #b45309 !important;
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .onoff_prev_accesswarn {
  border-color: #b45309 !important;
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .onoff_prev_accesswarn strong {
  color: #fef3c7 !important;
}
body.theme-dark .onoff_prev_accesswarn code {
  color: #fcd34d !important;
}
body.theme-dark .onoff_prev_chip_rel {
  color: #fde68a !important;
  background: linear-gradient(180deg, #713f12 0%, #854d0e 100%) !important;
  border-color: #ca8a04 !important;
}
body.theme-dark .onoff_prev_hwico {
  color: #94a3b8 !important;
}
body.theme-dark .onoff_prev_hwname {
  color: #e5e7eb !important;
}
body.theme-dark .onoff_prev_subexpo {
  color: #93c5fd !important;
  background: #1e3a5f !important;
}
body.theme-dark .onoff_prev_modcode {
  color: #cbd5e1 !important;
}
body.theme-dark .onoff_prev_rel_state {
  color: #94a3b8 !important;
  font-weight: 700 !important;
}
body.theme-dark .onoff_prev_hlavni_inline {
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #cbd5e1 !important;
}
body.theme-dark .onoff_prev_rowcard {
  border-color: #2b3440 !important;
  background: #151f2e !important;
}
body.theme-dark .onoff_prev_sep {
  color: #475569 !important;
}
body.theme-dark .onoff_prev_rowcard .onoff_prev_detail {
  color: #94a3b8 !important;
  border-top-color: #334155 !important;
}
body.theme-dark .onoff_prev_st_short {
  color: #94a3b8 !important;
}
body.theme-dark .onoff_prev_sec_title {
  color: #93c5fd !important;
}
body.theme-dark .onoff_prev_lead {
  color: #94a3b8 !important;
}
body.theme-dark details.onoff_prev_more {
  color: #94a3b8 !important;
}
body.theme-dark details.onoff_prev_more summary {
  color: #93c5fd !important;
}
body.theme-dark .onoff_prev_mainpill {
  color: #bfdbfe !important;
  background: #1e3a5f !important;
}

/* ----- default.asp — kalendář .zz-kal-* (inline CSS v default.asp přebíjí theme.css → !important) ----- */
body.theme-dark .zz-kal {
  color: #cbd5e1 !important;
}

/* Horní lišta filtrů */
body.theme-dark .zz-kal-topbar .form-group h2 {
  color: #93c5fd !important;
  background: linear-gradient(180deg, #1e293b 0%, #151f2e 100%) !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
body.theme-dark .zz-kal-topbar .form-group h2:hover {
  color: #4ade80 !important;
  border-color: #1ab394 !important;
  box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.25) !important;
}
body.theme-dark .zz-kal-topbar select.form-control,
body.theme-dark .zz-kal-topbar select.form-control1 {
  border-color: #334155 !important;
  background: linear-gradient(180deg, #1e293b 0%, #151f2e 100%) !important;
  color: #cbd5e1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
body.theme-dark .zz-kal-topbar select.form-control:focus,
body.theme-dark .zz-kal-topbar select.form-control1:focus {
  border-color: #1ab394 !important;
  box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.28) !important;
}
body.theme-dark .zz-kal-topbar .select2-container .select2-selection--single {
  border-color: #334155 !important;
  background: linear-gradient(180deg, #1e293b 0%, #151f2e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
body.theme-dark .zz-kal-topbar .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #cbd5e1 !important;
}
body.theme-dark .zz-kal-topbar .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #1ab394 !important;
  box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.28) !important;
}

/* Legenda */
body.theme-dark .zz-kal-legend-wrap {
  border-top-color: #334155 !important;
}
body.theme-dark .zz-kal-legend,
body.theme-dark .zz-kal-legend-akce {
  color: #94a3b8 !important;
}

/* Záhlaví dnů v týdnu */
body.theme-dark .zz-kal-dow-wkno {
  color: #64748b !important;
}
body.theme-dark .zz-kal-dow--wd {
  color: #93c5fd !important;
  background: linear-gradient(180deg, #1e293b 0%, #151f2e 100%) !important;
  border-color: #334155 !important;
}
body.theme-dark .zz-kal-dow--we {
  color: #fca5a5 !important;
  background: linear-gradient(180deg, #2a1a1a 0%, #231515 100%) !important;
  border-color: #5c3030 !important;
}

/* Blok týdne */
body.theme-dark .zz-kal-week {
  background: #121a24 !important;
  border-color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}
body.theme-dark .zz-kal-week-inner {
  background: #1a2330 !important;
  border-color: #334155 !important;
}
body.theme-dark .zz-kal-week-wkno {
  background: linear-gradient(180deg, #1e293b 0%, #151f2e 100%) !important;
  border-right-color: #334155 !important;
}
body.theme-dark .zz-kal-week-wkno__link {
  color: #94a3b8 !important;
}
body.theme-dark .zz-kal-week-wkno__link:hover {
  color: #4ade80 !important;
}

/* Buňka dne — základ */
body.theme-dark .zz-kal-day {
  background: #1a2330 !important;
}
body.theme-dark .zz-kal-week-grid > .zz-kal-day:not(:nth-child(7n + 1)) {
  border-left-color: #334155 !important;
}
body.theme-dark .zz-kal-day__head {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
body.theme-dark .zz-kal-day__headrow {
  background: linear-gradient(180deg, #1e293b 0%, #1a2330 100%) !important;
}
body.theme-dark .zz-kal-day__names {
  color: #94a3b8 !important;
}
body.theme-dark .zz-kal-day__num {
  color: #e5e7eb !important;
}
body.theme-dark .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(26, 35, 48, 0.6) 55%, #1a2330 100%) !important;
}

/* Státní svátek */
body.theme-dark .zz-kal-day__names--statni {
  color: #fca5a5 !important;
  background: rgba(127, 29, 29, 0.35) !important;
}
body.theme-dark .zz-kal-day--statni .zz-kal-day__headrow {
  background: linear-gradient(180deg, #2a1a1a 0%, #1a2330 100%) !important;
}
body.theme-dark .zz-kal-day--statni.zz-kal-day--today:not(.zz-kal-day--muted) .zz-kal-day__headrow {
  background: linear-gradient(180deg, #2a1f1f 0%, #1a2e28 100%) !important;
}

/* Mimo měsíc (muted) */
body.theme-dark .zz-kal-day--muted {
  background: #141c26 !important;
  border-color: #2b3440 !important;
}
body.theme-dark .zz-kal-day--muted .zz-kal-day__headrow {
  background: #121a24 !important;
}
body.theme-dark .zz-kal-day--muted .zz-kal-day__num {
  color: #475569 !important;
}
body.theme-dark .zz-kal-day--muted .zz-kal-day__body {
  background: #141c26 !important;
}
body.theme-dark .zz-kal-day--muted .zz-kal-day__names {
  color: #475569 !important;
}
body.theme-dark .zz-kal-day--muted .zz-kal-day__names--statni {
  color: #b87171 !important;
  background: rgba(92, 48, 48, 0.25) !important;
}

/* Víkend */
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted) {
  background: #1f1818 !important;
}
body.theme-dark .zz-kal-week-grid > .zz-kal-day--weekend:not(.zz-kal-day--muted):not(:nth-child(7n + 1)) {
  border-left-color: #4a3030 !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted) .zz-kal-day__headrow {
  background: linear-gradient(180deg, #261818 0%, #1f1818 100%) !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted) .zz-kal-day__names {
  color: #d4a0a0 !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted) .zz-kal-day__num {
  color: #f0a0a0 !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted) .zz-kal-day__names--statni {
  color: #fca5a5 !important;
}
body.theme-dark .zz-kal-day--muted.zz-kal-day--weekend .zz-kal-day__num {
  color: #475569 !important;
}

/* Dnes */
body.theme-dark .zz-kal-day--today {
  outline-color: #1ab394 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted) {
  background: #152822 !important;
}
body.theme-dark .zz-kal-week-grid > .zz-kal-day--today:not(.zz-kal-day--muted):not(:nth-child(7n + 1)) {
  border-left-color: #2d6b58 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted) .zz-kal-day__headrow {
  background: linear-gradient(180deg, #1a3d32 0%, #152822 100%) !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted) .zz-kal-day__names {
  color: #6ee7b7 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted) .zz-kal-day__num {
  color: #4ade80 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted) .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(26, 61, 50, 0.92) 0%, rgba(21, 40, 34, 0.55) 58%, #152822 100%) !important;
}

/* Hover buňky */
body.theme-dark .zz-kal-day:hover {
  background-color: #1e3a32 !important;
}
body.theme-dark .zz-kal-day:hover .zz-kal-day__headrow {
  background: linear-gradient(180deg, #1f4538 0%, #1e3a32 100%) !important;
}
body.theme-dark .zz-kal-day:hover .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(31, 69, 56, 0.92) 0%, rgba(26, 35, 48, 0.75) 60%, #1a2330 100%) !important;
}
body.theme-dark .zz-kal-day--muted:hover {
  background-color: #182028 !important;
}
body.theme-dark .zz-kal-day--muted:hover .zz-kal-day__headrow {
  background: linear-gradient(180deg, #161e28 0%, #182028 100%) !important;
}
body.theme-dark .zz-kal-day--muted:hover .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(22, 30, 40, 0.95) 0%, rgba(20, 28, 38, 0.9) 55%, #141c26 100%) !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted):hover {
  background-color: #2a1c1c !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted):hover .zz-kal-day__headrow {
  background: linear-gradient(180deg, #301f1f 0%, #2a1c1c 100%) !important;
}
body.theme-dark .zz-kal-day--weekend:not(.zz-kal-day--muted):hover .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(48, 31, 31, 0.9) 0%, rgba(31, 24, 24, 0.85) 55%, #1f1818 100%) !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted):hover {
  background-color: #1a4538 !important;
  outline-color: #4ade80 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted):hover .zz-kal-day__headrow {
  background: linear-gradient(180deg, #1f5242 0%, #1a4538 100%) !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted):hover .zz-kal-day__names {
  color: #6ee7b7 !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted):hover .zz-kal-day__num {
  color: #86efac !important;
}
body.theme-dark .zz-kal-day--today:not(.zz-kal-day--muted):hover .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(31, 82, 66, 0.95) 0%, rgba(26, 69, 56, 0.9) 52%, #1a4538 100%) !important;
}
body.theme-dark .zz-kal-day--today.zz-kal-day--muted:hover {
  background-color: #182420 !important;
  outline-color: #18a589 !important;
}
body.theme-dark .zz-kal-day--today.zz-kal-day--muted:hover .zz-kal-day__headrow {
  background: linear-gradient(180deg, #1a2e28 0%, #182420 100%) !important;
}
body.theme-dark .zz-kal-day--today.zz-kal-day--muted:hover .zz-kal-day__body {
  background: linear-gradient(180deg, rgba(26, 46, 40, 0.95) 0%, rgba(24, 36, 32, 0.88) 55%, #182420 100%) !important;
}

/* Výchozí čip / pruh (bez barvy stavu) */
body.theme-dark .zz-kal-chip {
  background: #134e4a !important;
  color: #ccfbf1 !important;
  border-color: #0f766e !important;
}
body.theme-dark .zz-kal-md-bar {
  background: #134e4a !important;
  color: #ccfbf1 !important;
  border-color: #0f766e !important;
}

/* Barvy akcí — sladěno s body.theme-dark .cdateinfoshow-* */
body.theme-dark .zz-kal-chip--red,
body.theme-dark .zz-kal-md-bar--red {
  background: #3f1f23 !important;
  color: #fecaca !important;
  border-color: #7f1d1d !important;
}
body.theme-dark .zz-kal-chip--grid,
body.theme-dark .zz-kal-md-bar--grid {
  background: #334155 !important;
  color: #e5e7eb !important;
  border-color: #475569 !important;
}
body.theme-dark .zz-kal-chip--yelow,
body.theme-dark .zz-kal-md-bar--yelow {
  background: #422006 !important;
  color: #fde68a !important;
  border-color: #854d0e !important;
}
body.theme-dark .zz-kal-chip--green,
body.theme-dark .zz-kal-md-bar--green {
  background: #0f231a !important;
  color: #bbf7d0 !important;
  border-color: #166534 !important;
}
body.theme-dark .zz-kal-chip--brown,
body.theme-dark .zz-kal-md-bar--brown {
  background: #5c2d2d !important;
  color: #fecaca !important;
  border-color: #7a3d3d !important;
}
body.theme-dark .zz-kal-chip--blue,
body.theme-dark .zz-kal-md-bar--blue {
  background: #1e3a5f !important;
  color: #dbeafe !important;
  border-color: #1d4ed8 !important;
}
body.theme-dark .zz-kal-chip--orange,
body.theme-dark .zz-kal-md-bar--orange {
  background: #422006 !important;
  color: #fde68a !important;
  border-color: #b45309 !important;
}
body.theme-dark .zz-kal-chip--info,
body.theme-dark .zz-kal-md-bar--info {
  background: #581c87 !important;
  color: #f3e8ff !important;
  border-color: #7e22ce !important;
}
body.theme-dark .zz-kal-chip--ext,
body.theme-dark .zz-kal-md-bar--ext {
  background: #365314 !important;
  color: #d9f99d !important;
  border-color: #4d7c0f !important;
}
body.theme-dark .zz-kal-chip--priprava,
body.theme-dark .zz-kal-md-bar--priprava {
  background: #134e4a !important;
  color: #ccfbf1 !important;
  border-color: #0f766e !important;
}
body.theme-dark .zz-kal-chip--vlastni,
body.theme-dark .zz-kal-md-bar--vlastni {
  background: #14532d !important;
  color: #bbf7d0 !important;
  border-color: #15803d !important;
}

/* Odznaky střediska na čipech */
body.theme-dark .zz-kal-chip__bdg,
body.theme-dark .zz-kal-md-bar__bdg {
  color: #e5e7eb !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Zoom ovládání */
body.theme-dark .zz-kal-zoom {
  background: #151f2e !important;
  border-color: #334155 !important;
}
body.theme-dark .zz-kal-zoom-label {
  color: #94a3b8 !important;
}
body.theme-dark .zz-kal-zoom-btn,
body.theme-dark .zz-kal-zoom-reset {
  border-color: #334155 !important;
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
body.theme-dark .zz-kal-zoom-btn:hover,
body.theme-dark .zz-kal-zoom-reset:hover {
  background: #263548 !important;
  border-color: #1ab394 !important;
  color: #4ade80 !important;
}

/* Vlastní akce -N-…-L- v hlavičce dne (css/kalendar.css .cdatevlastni) */
body.theme-dark .zz-kal-day__head-actions a.zz-kal-day__vlastni.cdatevlastni,
body.theme-dark .cdatevlastni {
  background-color: #14532d !important;
  color: #bbf7d0 !important;
  border-color: #15803d !important;
}
body.theme-dark .zz-kal-day__head-actions a.zz-kal-day__vlastni.cdatevlastni:hover,
body.theme-dark .cdatevlastni:hover {
  background-color: #166534 !important;
  color: #dcfce7 !important;
}

/* ----- Horizontální formuláře — popisky (step09, step40, nabídky, …) ----- */
body.theme-dark .grid-form1 h3,
body.theme-dark label.control-label,
body.theme-dark .form-horizontal .control-label,
body.theme-dark .grid-form1 .control-label {
  color: #e5e7eb !important;
}
body.theme-dark .has-error .control-label,
body.theme-dark .grid-form1 .has-error .control-label {
  color: #fca5a5 !important;
}
body.theme-dark .has-success .control-label,
body.theme-dark .has-success2 .control-label {
  color: #86efac !important;
}
body.theme-dark .has-warning .control-label {
  color: #fcd34d !important;
}
body.theme-dark .grid-form1 .form-group a {
  color: #93c5fd !important;
}
body.theme-dark .grid-form1 .has-error font[color="#FF0000"],
body.theme-dark .grid-form1 font[color="#FF0000"] {
  color: #fca5a5 !important;
}
body.theme-dark .grid-form1 .teest {
  background-color: transparent !important;
  color: #e5e7eb !important;
}

/* Multi tabulky — společný kontejner */
body.theme-dark .step03-inventar-multi,
body.theme-dark .step04-personal-multi,
body.theme-dark .step07-sluzby-multi {
  border-color: #334155 !important;
  background: #121a24 !important;
}
body.theme-dark .step03-inventar-multi .table > thead > tr > th,
body.theme-dark .step04-personal-multi .table > thead > tr > th,
body.theme-dark .step07-sluzby-multi .table > thead > tr > th,
body.theme-dark .step03-inventar-multi .table > tbody > tr > td,
body.theme-dark .step04-personal-multi .table > tbody > tr > td,
body.theme-dark .step07-sluzby-multi .table > tbody > tr > td {
  background-color: #1a2330 !important;
  color: #e5e7eb !important;
  border-color: #2b3440 !important;
}
body.theme-dark .step03-inventar-multi .table-striped > tbody > tr:nth-of-type(odd):not(.step03-multi-parent-sklad) > td,
body.theme-dark .step04-personal-multi .table-striped > tbody > tr:nth-of-type(odd):not(.step04-multi-parent-sklad) > td,
body.theme-dark .step07-sluzby-multi .table-striped > tbody > tr:nth-of-type(odd):not(.step07-multi-parent-sklad) > td {
  background-color: #1e293b !important;
  color: #e5e7eb !important;
}

/* Sklad — nadřazený řádek (místo bílé) */
body.theme-dark .step03-inventar-multi tr.step03-multi-parent-sklad,
body.theme-dark .step03-inventar-multi tr.step03-multi-parent-sklad td,
body.theme-dark .step04-personal-multi tr.step04-multi-parent-sklad,
body.theme-dark .step04-personal-multi tr.step04-multi-parent-sklad td,
body.theme-dark .step07-sluzby-multi tr.step07-multi-parent-sklad,
body.theme-dark .step07-sluzby-multi tr.step07-multi-parent-sklad td {
  background: #243044 !important;
  background-color: #243044 !important;
  color: #cbd5e1 !important;
}
body.theme-dark .step03-inventar-multi tr.step03-multi-parent-sklad .step03-multi-sklad-info,
body.theme-dark .step04-personal-multi tr.step04-multi-parent-sklad .step04-multi-sklad-info,
body.theme-dark .step07-sluzby-multi tr.step07-multi-parent-sklad .step07-multi-sklad-info {
  color: #94a3b8 !important;
}
body.theme-dark .step03-inventar-multi tr.step03-multi-parent-sklad.step03-multi-vlozeno td,
body.theme-dark .step03-inventar-multi tr.step03-multi-parent-sklad.step03-multi-selected td,
body.theme-dark .step04-personal-multi tr.step04-multi-parent-sklad.step04-multi-vlozeno td,
body.theme-dark .step04-personal-multi tr.step04-multi-parent-sklad.step04-multi-selected td,
body.theme-dark .step07-sluzby-multi tr.step07-multi-parent-sklad.step07-multi-vlozeno td,
body.theme-dark .step07-sluzby-multi tr.step07-multi-parent-sklad.step07-multi-selected td {
  background: #243044 !important;
  color: #cbd5e1 !important;
}

/* Hover */
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-row:not(.step03-multi-parent-sklad):hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-row:not(.step04-multi-parent-sklad):hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-row:not(.step07-multi-parent-sklad):hover td {
  background: #263548 !important;
  color: #f1f5f9 !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-row.step03-multi-ext:not(.step03-multi-parent-sklad):hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-row.step04-multi-ext:not(.step04-multi-parent-sklad):hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-row.step07-multi-ext:not(.step07-multi-parent-sklad):hover td {
  background: #2d3a50 !important;
}

/* Již vloženo — zeleně */
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-vlozeno td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-vlozeno td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-vlozeno td {
  background: #0f231a !important;
  color: #a7f3d0 !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-vlozeno:hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-vlozeno:hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-vlozeno:hover td {
  background: #14532d !important;
  color: #bbf7d0 !important;
}

/* Vybráno k vložení — žlutě */
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-selected td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-selected td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-selected td {
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-selected:hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-selected:hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-selected:hover td {
  background: #713f12 !important;
  color: #fef3c7 !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-vlozeno.step03-multi-selected td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-vlozeno.step04-multi-selected td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-vlozeno.step07-multi-selected td {
  background: #365314 !important;
  color: #d9f99d !important;
  box-shadow: inset 3px 0 0 #ca8a04 !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-vlozeno.step03-multi-selected:hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-vlozeno.step04-multi-selected:hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-vlozeno.step07-multi-selected:hover td {
  background: #3f6212 !important;
}

/* Chyba zásoby — červeně */
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-selected.step03-multi-chyba-zasoba td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-selected.step04-multi-chyba-zasoba td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-selected.step07-multi-chyba-zasoba td {
  background: #450a0a !important;
  color: #fecaca !important;
  box-shadow: inset 3px 0 0 #dc2626 !important;
}
body.theme-dark .step03-inventar-multi tbody tr.step03-multi-selected.step03-multi-chyba-zasoba:hover td,
body.theme-dark .step04-personal-multi tbody tr.step04-multi-selected.step04-multi-chyba-zasoba:hover td,
body.theme-dark .step07-sluzby-multi tbody tr.step07-multi-selected.step07-multi-chyba-zasoba:hover td {
  background: #7f1d1d !important;
}
body.theme-dark .step03-inventar-multi span.step03-multi-celkem.is-chyba,
body.theme-dark .step04-personal-multi span.step04-multi-celkem.is-chyba,
body.theme-dark .step07-sluzby-multi span.step07-multi-celkem.is-chyba {
  color: #fca5a5 !important;
}
body.theme-dark .step03-inventar-multi .step03-multi-kusu.step03-multi-kusu-chyba,
body.theme-dark .step04-personal-multi .step04-multi-kusu.step04-multi-kusu-chyba,
body.theme-dark .step07-sluzby-multi .step07-multi-kusu.step07-multi-kusu-chyba {
  border-color: #dc2626 !important;
  background: #450a0a !important;
  color: #fecaca !important;
}

/* Sloupec Celk. a hint */
body.theme-dark .step03-inventar-multi .step03-multi-col-celkem,
body.theme-dark .step04-personal-multi .step04-multi-col-celkem,
body.theme-dark .step07-sluzby-multi .step07-multi-col-celkem {
  color: #93c5fd !important;
}
body.theme-dark .step03-inventar-multi-hint,
body.theme-dark .step04-personal-multi-hint,
body.theme-dark .step07-sluzby-multi-hint {
  color: #94a3b8 !important;
}

/* Součet vybraných */
body.theme-dark .step03-multi-soucet-wrap,
body.theme-dark .step04-multi-soucet-wrap,
body.theme-dark .step07-multi-soucet-wrap {
  background: #1e3a5f !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .step03-multi-soucet-wrap.is-empty,
body.theme-dark .step04-multi-soucet-wrap.is-empty,
body.theme-dark .step07-multi-soucet-wrap.is-empty {
  background: #1a2330 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.theme-dark .step03-multi-soucet-wrap.is-empty .step03-multi-soucet-castka,
body.theme-dark .step04-multi-soucet-wrap.is-empty .step04-multi-soucet-castka,
body.theme-dark .step07-multi-soucet-wrap.is-empty .step07-multi-soucet-castka {
  color: #94a3b8 !important;
}
body.theme-dark .step03-multi-soucet-castka,
body.theme-dark .step04-multi-soucet-castka,
body.theme-dark .step07-multi-soucet-castka {
  color: #93c5fd !important;
}
body.theme-dark .step03-multi-soucet-pocet,
body.theme-dark .step04-multi-soucet-pocet,
body.theme-dark .step07-multi-soucet-pocet {
  color: #94a3b8 !important;
}
body.theme-dark .step03-multi-soucet-chyba,
body.theme-dark .step04-multi-soucet-chyba,
body.theme-dark .step07-multi-soucet-chyba {
  color: #fca5a5 !important;
}

/* Legenda žlutě / zeleně v hintu */
body.theme-dark .step03-inventar-multi-hint span[style*="#fff3cd"],
body.theme-dark .step04-personal-multi-hint span[style*="#fff3cd"],
body.theme-dark .step07-sluzby-multi-hint span[style*="#fff3cd"] {
  background: #422006 !important;
  color: #fde68a !important;
}
body.theme-dark .step03-inventar-multi-hint span[style*="#dff0d8"],
body.theme-dark .step04-personal-multi-hint span[style*="#dff0d8"],
body.theme-dark .step07-sluzby-multi-hint span[style*="#dff0d8"] {
  background: #0f231a !important;
  color: #a7f3d0 !important;
}

/* Datepicker / timepicker v multi tabulkách */
body.theme-dark .step03-inventar-multi .datepicker-dropdown,
body.theme-dark .step04-personal-multi .datepicker-dropdown,
body.theme-dark .step07-sluzby-multi .datepicker-dropdown,
body.theme-dark .datepicker-dropdown {
  background: #121a24 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .datepicker table tr td,
body.theme-dark .datepicker table tr th {
  color: #e5e7eb !important;
}
body.theme-dark .datepicker table tr td.day:hover,
body.theme-dark .datepicker table tr td.focused {
  background: #1e3a5f !important;
  color: #f1f5f9 !important;
}
body.theme-dark .datepicker table tr td.active,
body.theme-dark .datepicker table tr td.active:hover {
  background: #1ab394 !important;
  color: #fff !important;
}
body.theme-dark .ui-timepicker-wrapper {
  background: #121a24 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}
body.theme-dark .ui-timepicker-list li {
  color: #e5e7eb !important;
}
body.theme-dark .ui-timepicker-list li:hover,
body.theme-dark .ui-timepicker-list .ui-timepicker-selected {
  background: #1e3a5f !important;
  color: #f1f5f9 !important;
}

/* ----- Color themes (whole page): ?theme=red|green|blue|pink|brown ----- */

body.theme-red {
  --d-accent: #c62828;
  --d-accent-dark: #b71c1c;
  --d-accent-darker: #7f0000;
  --d-accent-light: #e57373;
  --d-accent-pale: #ffebee;
  --d-accent-surface: #ffcdd2;
  --d-accent-sidebar: #f0c4c8;
  --d-bg-page: #f5e4e4;
  --d-bg-content: #faf0f0;
  --d-bg-card: #fdf6f6;
  --d-border: #e57373;
  --d-border-light: #f0b4b4;
  --d-menu-text: #4a1515;
  --d-topbar: #c62828;
}

body.theme-green {
  --d-accent: #2e7d32;
  --d-accent-dark: #1b5e20;
  --d-accent-darker: #0d3d12;
  --d-accent-light: #66bb6a;
  --d-accent-pale: #e8f5e9;
  --d-accent-surface: #c8e6c9;
  --d-accent-sidebar: #c5e1c5;
  --d-bg-page: #e5f0e5;
  --d-bg-content: #f0f8f0;
  --d-bg-card: #f6fcf6;
  --d-border: #66bb6a;
  --d-border-light: #a5d6a7;
  --d-menu-text: #1b3d1f;
  --d-topbar: #2e7d32;
}

body.theme-blue {
  --d-accent: #1565c0;
  --d-accent-dark: #0d47a1;
  --d-accent-darker: #0a3d7a;
  --d-accent-light: #42a5f5;
  --d-accent-pale: #e3f2fd;
  --d-accent-surface: #bbdefb;
  --d-accent-sidebar: #b8d4f0;
  --d-bg-page: #e0ecf8;
  --d-bg-content: #edf5fc;
  --d-bg-card: #f4f9fe;
  --d-border: #42a5f5;
  --d-border-light: #90caf9;
  --d-menu-text: #0d3058;
  --d-topbar: #1565c0;
}

body.theme-pink {
  --d-accent: #c2185b;
  --d-accent-dark: #880e4f;
  --d-accent-darker: #560027;
  --d-accent-light: #f48fb1;
  --d-accent-pale: #fce4ec;
  --d-accent-surface: #f8bbd0;
  --d-accent-sidebar: #f8bbd0;
  --d-bg-page: #fae8f0;
  --d-bg-content: #fdf2f7;
  --d-bg-card: #fef7fa;
  --d-border: #f48fb1;
  --d-border-light: #f8bbd0;
  --d-menu-text: #4a1028;
  --d-topbar: #c2185b;
}

body.theme-brown {
  --d-accent: #5d4037;
  --d-accent-dark: #3e2723;
  --d-accent-darker: #2a1a16;
  --d-accent-light: #8d6e63;
  --d-accent-pale: #efebe9;
  --d-accent-surface: #d7ccc8;
  --d-accent-sidebar: #d7ccc8;
  --d-bg-page: #efebe9;
  --d-bg-content: #f5f3f1;
  --d-bg-card: #faf8f6;
  --d-border: #8d6e63;
  --d-border-light: #bcaaa4;
  --d-menu-text: #3e2723;
  --d-topbar: #5d4037;
}

/* Pozadí stránky a hlavních oblastí */
body.theme-red,
body.theme-green,
body.theme-blue,
body.theme-pink,
body.theme-brown {
  background-color: var(--d-bg-page) !important;
}

body.theme-red,
body.theme-green,
body.theme-blue,
body.theme-red #wrapper,
body.theme-green #wrapper,
body.theme-blue #wrapper,
body.theme-pink #wrapper,
body.theme-brown #wrapper,
body.theme-red #page-wrapper.gray-bg,
body.theme-green #page-wrapper.gray-bg,
body.theme-blue #page-wrapper.gray-bg,
body.theme-pink #page-wrapper.gray-bg,
body.theme-brown #page-wrapper.gray-bg,
body.theme-red #page-wrapper,
body.theme-green #page-wrapper,
body.theme-blue #page-wrapper,
body.theme-pink #page-wrapper,
body.theme-brown #page-wrapper,
body.theme-red .content-top-1,
body.theme-green .content-top-1,
body.theme-blue .content-top-1,
body.theme-pink .content-top-1,
body.theme-brown .content-top-1,
body.theme-red .content-graph,
body.theme-green .content-graph,
body.theme-blue .content-graph,
body.theme-pink .content-graph,
body.theme-brown .content-graph,
body.theme-red .middle-content,
body.theme-green .middle-content,
body.theme-blue .middle-content,
body.theme-pink .middle-content,
body.theme-brown .middle-content,
body.theme-red .weather,
body.theme-green .weather,
body.theme-blue .weather,
body.theme-pink .weather,
body.theme-brown .weather,
body.theme-red .post,
body.theme-green .post,
body.theme-blue .post,
body.theme-pink .post,
body.theme-brown .post,
body.theme-red .blank-page,
body.theme-green .blank-page,
body.theme-blue .blank-page,
body.theme-pink .blank-page,
body.theme-brown .blank-page,
body.theme-red .validation-form,
body.theme-green .validation-form,
body.theme-blue .validation-form,
body.theme-pink .validation-form,
body.theme-brown .validation-form,
body.theme-red nav.nav-sidebar,
body.theme-green nav.nav-sidebar,
body.theme-blue nav.nav-sidebar,
body.theme-pink nav.nav-sidebar,
body.theme-brown nav.nav-sidebar  {
  background-color: var(--d-bg-page) !important;
  color: var(--d-menu-text) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .content-main,
body.theme-green .content-main,
body.theme-blue .content-main,
body.theme-pink .content-main,
body.theme-brown .content-main,
body.theme-red .grid_3,
body.theme-green .grid_3,
body.theme-blue .grid_3,
body.theme-pink .grid_3,
body.theme-brown .grid_3,
body.theme-red .grid-1,
body.theme-green .grid-1,
body.theme-blue .grid-1,
body.theme-pink .grid-1,
body.theme-brown .grid-1,
body.theme-red .grid-form1,
body.theme-green .grid-form1,
body.theme-blue .grid-form1,
body.theme-pink .grid-form1,
body.theme-brown .grid-form1,
body.theme-red .content-box,
body.theme-green .content-box,
body.theme-blue .content-box,
body.theme-pink .content-box,
body.theme-brown .content-box,
body.theme-red .inbox-right,
body.theme-green .inbox-right,
body.theme-blue .inbox-right,
body.theme-pink .inbox-right,
body.theme-brown .inbox-right,
body.theme-red .grid-system,
body.theme-green .grid-system,
body.theme-blue .grid-system,
body.theme-pink .grid-system,
body.theme-brown .grid-system,
body.theme-red .horz-grid,
body.theme-green .horz-grid,
body.theme-blue .horz-grid,
body.theme-pink .horz-grid,
body.theme-brown .horz-grid,
body.theme-red .blank,
body.theme-green .blank,
body.theme-blue .blank,
body.theme-pink .blank,
body.theme-brown .blank,
body.theme-red .profile,
body.theme-green .profile,
body.theme-blue .profile ,
body.theme-pink .profile ,
body.theme-brown .profile  {
  background-color: var(--d-bg-content) !important;
  color: var(--d-menu-text) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .profile-bottom,
body.theme-green .profile-bottom,
body.theme-blue .profile-bottom,
body.theme-pink .profile-bottom,
body.theme-brown .profile-bottom,
body.theme-red .blank-page,
body.theme-green .blank-page,
body.theme-blue .blank-page ,
body.theme-pink .blank-page ,
body.theme-brown .blank-page  {
  background-color: var(--d-bg-card) !important;
  border-color: var(--d-border-light) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.theme-red .profile-theme-box.profile-theme,
body.theme-green .profile-theme-box.profile-theme,
body.theme-blue .profile-theme-box.profile-theme ,
body.theme-pink .profile-theme-box.profile-theme ,
body.theme-brown .profile-theme-box.profile-theme  {
  background-color: var(--d-bg-content) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .profile-theme-desc,
body.theme-green .profile-theme-desc,
body.theme-blue .profile-theme-desc ,
body.theme-pink .profile-theme-desc ,
body.theme-brown .profile-theme-desc  {
  border-bottom-color: var(--d-border-light) !important;
}

body.theme-red nav.navbar-default.navbar-static-top,
body.theme-green nav.navbar-default.navbar-static-top,
body.theme-blue nav.navbar-default.navbar-static-top ,
body.theme-pink nav.navbar-default.navbar-static-top ,
body.theme-brown nav.navbar-default.navbar-static-top  {
  background-color: var(--d-accent-sidebar) !important;
}

body.theme-red .navbar-default.sidebar,
body.theme-green .navbar-default.sidebar,
body.theme-blue .navbar-default.sidebar,
body.theme-pink .navbar-default.sidebar,
body.theme-brown .navbar-default.sidebar,
body.theme-red .border-bottom,
body.theme-green .border-bottom,
body.theme-blue .border-bottom,
body.theme-pink .border-bottom,
body.theme-brown .border-bottom,
body.theme-red .drop-men,
body.theme-green .drop-men,
body.theme-blue .drop-men ,
body.theme-pink .drop-men ,
body.theme-brown .drop-men  {
  background-color: var(--d-accent-sidebar) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .border-bottom .full-left a,
body.theme-green .border-bottom .full-left a,
body.theme-blue .border-bottom .full-left a ,
body.theme-pink .border-bottom .full-left a ,
body.theme-brown .border-bottom .full-left a  {
  color: var(--d-menu-text) !important;
}

body.theme-red .border-bottom .full-left a:hover,
body.theme-red .border-bottom .full-left a:focus,
body.theme-green .border-bottom .full-left a:hover,
body.theme-green .border-bottom .full-left a:focus,
body.theme-blue .border-bottom .full-left a:hover,
body.theme-pink .border-bottom .full-left a:hover,
body.theme-brown .border-bottom .full-left a:hover,
body.theme-blue .border-bottom .full-left a:focus ,
body.theme-pink .border-bottom .full-left a:focus ,
body.theme-brown .border-bottom .full-left a:focus  {
  color: var(--d-accent-dark) !important;
}

body.theme-red .drop-men .dropdown-at,
body.theme-green .drop-men .dropdown-at,
body.theme-blue .drop-men .dropdown-at,
body.theme-pink .drop-men .dropdown-at,
body.theme-brown .drop-men .dropdown-at,
body.theme-red .drop-men .name-caret,
body.theme-green .drop-men .name-caret,
body.theme-blue .drop-men .name-caret ,
body.theme-pink .drop-men .name-caret ,
body.theme-brown .drop-men .name-caret  {
  color: var(--d-menu-text) !important;
}

body.theme-red .banner,
body.theme-green .banner,
body.theme-blue .banner ,
body.theme-pink .banner ,
body.theme-brown .banner  {
  background-color: var(--d-accent-pale) !important;
  border-color: var(--d-border-light) !important;
}

/* Horní lišta a logo */
body.theme-red nav.top1.navbar.navbar-default.navbar-static-top,
body.theme-green nav.top1.navbar.navbar-default.navbar-static-top,
body.theme-blue nav.top1.navbar.navbar-default.navbar-static-top,
body.theme-pink nav.top1.navbar.navbar-default.navbar-static-top,
body.theme-brown nav.top1.navbar.navbar-default.navbar-static-top,
body.theme-red .navbar-header,
body.theme-green .navbar-header,
body.theme-blue .navbar-header ,
body.theme-pink .navbar-header ,
body.theme-brown .navbar-header  {
  background-color: var(--d-topbar) !important;
}

body.theme-red h1 a.navbar-brand,
body.theme-green h1 a.navbar-brand,
body.theme-blue h1 a.navbar-brand,
body.theme-pink h1 a.navbar-brand,
body.theme-brown h1 a.navbar-brand,
body.theme-red .navbar-default .navbar-brand:hover,
body.theme-green .navbar-default .navbar-brand:hover,
body.theme-blue .navbar-default .navbar-brand:hover ,
body.theme-pink .navbar-default .navbar-brand:hover ,
body.theme-brown .navbar-default .navbar-brand:hover  {
  background-color: var(--d-accent-darker) !important;
  color: #fff !important;
}

body.theme-red .navbar-top-links li a,
body.theme-green .navbar-top-links li a,
body.theme-blue .navbar-top-links li a,
body.theme-pink .navbar-top-links li a,
body.theme-brown .navbar-top-links li a,
body.theme-red .navbar .navbar-nav li.m_2 a,
body.theme-green .navbar .navbar-nav li.m_2 a,
body.theme-blue .navbar .navbar-nav li.m_2 a ,
body.theme-pink .navbar .navbar-nav li.m_2 a ,
body.theme-brown .navbar .navbar-nav li.m_2 a  {
  color: #fff !important;
}

body.theme-red .navbar-default .navbar-toggle,
body.theme-green .navbar-default .navbar-toggle,
body.theme-blue .navbar-default .navbar-toggle ,
body.theme-pink .navbar-default .navbar-toggle ,
body.theme-brown .navbar-default .navbar-toggle  {
  background-color: var(--d-accent-darker) !important;
  border-color: var(--d-accent-darker) !important;
}

/* Boční menu */
body.theme-red .sidebar ul li a,
body.theme-green .sidebar ul li a,
body.theme-blue .sidebar ul li a,
body.theme-pink .sidebar ul li a,
body.theme-brown .sidebar ul li a,
body.theme-red .nav > li > a,
body.theme-green .nav > li > a,
body.theme-blue .nav > li > a ,
body.theme-pink .nav > li > a ,
body.theme-brown .nav > li > a  {
  color: var(--d-menu-text) !important;
  border-bottom-color: var(--d-border) !important;
}

body.theme-red i.nav_icon,
body.theme-green i.nav_icon,
body.theme-blue i.nav_icon,
body.theme-pink i.nav_icon,
body.theme-brown i.nav_icon,
body.theme-red i.nav_icon2,
body.theme-green i.nav_icon2,
body.theme-blue i.nav_icon2 ,
body.theme-pink i.nav_icon2 ,
body.theme-brown i.nav_icon2  {
  color: var(--d-accent-dark) !important;
}

body.theme-red .hvr-bounce-to-right:before,
body.theme-green .hvr-bounce-to-right:before,
body.theme-blue .hvr-bounce-to-right:before ,
body.theme-pink .hvr-bounce-to-right:before ,
body.theme-brown .hvr-bounce-to-right:before  {
  background: var(--d-accent-light) !important;
}

body.theme-red .hvr-bounce-to-right:hover i.nav_icon,
body.theme-red .hvr-bounce-to-right:focus i.nav_icon,
body.theme-red .hvr-bounce-to-right:active i.nav_icon,
body.theme-red .hvr-bounce-to-right:hover i.nav_icon2,
body.theme-red .hvr-bounce-to-right:focus i.nav_icon2,
body.theme-red .hvr-bounce-to-right:active i.nav_icon2,
body.theme-green .hvr-bounce-to-right:hover i.nav_icon,
body.theme-green .hvr-bounce-to-right:focus i.nav_icon,
body.theme-green .hvr-bounce-to-right:active i.nav_icon,
body.theme-green .hvr-bounce-to-right:hover i.nav_icon2,
body.theme-green .hvr-bounce-to-right:focus i.nav_icon2,
body.theme-green .hvr-bounce-to-right:active i.nav_icon2,
body.theme-blue .hvr-bounce-to-right:hover i.nav_icon,
body.theme-pink .hvr-bounce-to-right:hover i.nav_icon,
body.theme-brown .hvr-bounce-to-right:hover i.nav_icon,
body.theme-blue .hvr-bounce-to-right:focus i.nav_icon,
body.theme-pink .hvr-bounce-to-right:focus i.nav_icon,
body.theme-brown .hvr-bounce-to-right:focus i.nav_icon,
body.theme-blue .hvr-bounce-to-right:active i.nav_icon,
body.theme-pink .hvr-bounce-to-right:active i.nav_icon,
body.theme-brown .hvr-bounce-to-right:active i.nav_icon,
body.theme-blue .hvr-bounce-to-right:hover i.nav_icon2,
body.theme-pink .hvr-bounce-to-right:hover i.nav_icon2,
body.theme-brown .hvr-bounce-to-right:hover i.nav_icon2,
body.theme-blue .hvr-bounce-to-right:focus i.nav_icon2,
body.theme-pink .hvr-bounce-to-right:focus i.nav_icon2,
body.theme-brown .hvr-bounce-to-right:focus i.nav_icon2,
body.theme-blue .hvr-bounce-to-right:active i.nav_icon2 ,
body.theme-pink .hvr-bounce-to-right:active i.nav_icon2 ,
body.theme-brown .hvr-bounce-to-right:active i.nav_icon2  {
  color: #fff !important;
}

body.theme-red .sidebar .nav-second-level li a,
body.theme-green .sidebar .nav-second-level li a,
body.theme-blue .sidebar .nav-second-level li a ,
body.theme-pink .sidebar .nav-second-level li a ,
body.theme-brown .sidebar .nav-second-level li a,
body.theme-red .sidebar .nav-third-level li a,
body.theme-green .sidebar .nav-third-level li a,
body.theme-blue .sidebar .nav-third-level li a,
body.theme-pink .sidebar .nav-third-level li a,
body.theme-brown .sidebar .nav-third-level li a  {
  background-color: var(--d-accent-pale) !important;
  color: var(--d-menu-text) !important;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible;
  min-height: 28px;
  line-height: 1.25;
  box-sizing: border-box;
}

body.theme-red .sidebar .nav-second-level li a i,
body.theme-green .sidebar .nav-second-level li a i,
body.theme-blue .sidebar .nav-second-level li a i,
body.theme-pink .sidebar .nav-second-level li a i,
body.theme-brown .sidebar .nav-second-level li a i,
body.theme-red .sidebar .nav-third-level li a i,
body.theme-green .sidebar .nav-third-level li a i,
body.theme-blue .sidebar .nav-third-level li a i,
body.theme-pink .sidebar .nav-third-level li a i,
body.theme-brown .sidebar .nav-third-level li a i {
  box-sizing: border-box;
}

/* Odkazy */
body.theme-red a,
body.theme-green a,
body.theme-blue a,
body.theme-pink a,
body.theme-brown a,
body.theme-red a:visited,
body.theme-green a:visited,
body.theme-blue a:visited ,
body.theme-pink a:visited ,
body.theme-brown a:visited  {
  color: var(--d-accent);
}

body.theme-red a:hover,
body.theme-green a:hover,
body.theme-blue a:hover,
body.theme-pink a:hover,
body.theme-brown a:hover,
body.theme-red a:focus,
body.theme-green a:focus,
body.theme-blue a:focus ,
body.theme-pink a:focus ,
body.theme-brown a:focus  {
  color: var(--d-accent-dark);
}

body.theme-red .navbar-brand,
body.theme-green .navbar-brand,
body.theme-blue .navbar-brand,
body.theme-pink .navbar-brand,
body.theme-brown .navbar-brand,
body.theme-red .navbar-top-links li a,
body.theme-green .navbar-top-links li a,
body.theme-blue .navbar-top-links li a,
body.theme-pink .navbar-top-links li a,
body.theme-brown .navbar-top-links li a,
body.theme-red .btn,
body.theme-green .btn,
body.theme-blue .btn ,
body.theme-pink .btn ,
body.theme-brown .btn  {
  color: inherit;
}

body.theme-red .banner h2 a,
body.theme-green .banner h2 a,
body.theme-blue .banner h2 a,
body.theme-pink .banner h2 a,
body.theme-brown .banner h2 a,
body.theme-red .banner h2 span,
body.theme-green .banner h2 span,
body.theme-blue .banner h2 span ,
body.theme-pink .banner h2 span ,
body.theme-brown .banner h2 span  {
  color: var(--d-menu-text) !important;
}

body.theme-red .banner h2 span a i.fa,
body.theme-green .banner h2 span a i.fa,
body.theme-blue .banner h2 span a i.fa ,
body.theme-pink .banner h2 span a i.fa ,
body.theme-brown .banner h2 span a i.fa  {
  color: var(--d-accent) !important;
}

body.theme-red .banner h2 span a:hover i.fa,
body.theme-green .banner h2 span a:hover i.fa,
body.theme-blue .banner h2 span a:hover i.fa ,
body.theme-pink .banner h2 span a:hover i.fa ,
body.theme-brown .banner h2 span a:hover i.fa  {
  color: var(--d-accent-dark) !important;
}

/* Dropdown menu v horní liště */
body.theme-red .dropdown-menu,
body.theme-green .dropdown-menu,
body.theme-blue .dropdown-menu,
body.theme-pink .dropdown-menu,
body.theme-brown .dropdown-menu,
body.theme-red .navbar .navbar-nav li .dropdown-menu,
body.theme-green .navbar .navbar-nav li .dropdown-menu,
body.theme-blue .navbar .navbar-nav li .dropdown-menu,
body.theme-pink .navbar .navbar-nav li .dropdown-menu,
body.theme-brown .navbar .navbar-nav li .dropdown-menu,
body.theme-red .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-green .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-blue .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-pink .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-brown .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-header,
body.theme-red .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer,
body.theme-green .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer,
body.theme-blue .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer ,
body.theme-pink .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer ,
body.theme-brown .navbar .navbar-nav li .dropdown-menu li.dropdown-menu-footer  {
  background-color: var(--d-accent-pale) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .navbar .navbar-nav li .dropdown-menu li,
body.theme-green .navbar .navbar-nav li .dropdown-menu li,
body.theme-blue .navbar .navbar-nav li .dropdown-menu li ,
body.theme-pink .navbar .navbar-nav li .dropdown-menu li ,
body.theme-brown .navbar .navbar-nav li .dropdown-menu li  {
  border-bottom-color: var(--d-border-light) !important;
}

body.theme-red .dropdown-menu > li > a:focus,
body.theme-red .dropdown-menu > li > a:hover,
body.theme-green .dropdown-menu > li > a:focus,
body.theme-green .dropdown-menu > li > a:hover,
body.theme-blue .dropdown-menu > li > a:focus,
body.theme-pink .dropdown-menu > li > a:focus,
body.theme-brown .dropdown-menu > li > a:focus,
body.theme-blue .dropdown-menu > li > a:hover ,
body.theme-pink .dropdown-menu > li > a:hover ,
body.theme-brown .dropdown-menu > li > a:hover  {
  background-color: var(--d-accent-surface) !important;
  color: var(--d-menu-text) !important;
}

body.theme-red .navbar .navbar-nav li .dropdown-menu li a i,
body.theme-green .navbar .navbar-nav li .dropdown-menu li a i,
body.theme-blue .navbar .navbar-nav li .dropdown-menu li a i ,
body.theme-pink .navbar .navbar-nav li .dropdown-menu li a i ,
body.theme-brown .navbar .navbar-nav li .dropdown-menu li a i  {
  color: var(--d-accent) !important;
}

body.theme-red .navbar .navbar-nav li .dropdown-menu:before,
body.theme-green .navbar .navbar-nav li .dropdown-menu:before,
body.theme-blue .navbar .navbar-nav li .dropdown-menu:before ,
body.theme-pink .navbar .navbar-nav li .dropdown-menu:before ,
body.theme-brown .navbar .navbar-nav li .dropdown-menu:before  {
  border-bottom-color: var(--d-border-light) !important;
}

/* Tabulky */
body.theme-red .table,
body.theme-green .table,
body.theme-blue .table,
body.theme-pink .table,
body.theme-brown .table,
body.theme-red .table > thead > tr > th,
body.theme-green .table > thead > tr > th,
body.theme-blue .table > thead > tr > th,
body.theme-pink .table > thead > tr > th,
body.theme-brown .table > thead > tr > th,
body.theme-red .table > tbody > tr > th,
body.theme-green .table > tbody > tr > th,
body.theme-blue .table > tbody > tr > th,
body.theme-pink .table > tbody > tr > th,
body.theme-brown .table > tbody > tr > th,
body.theme-red .table > tbody > tr > td,
body.theme-green .table > tbody > tr > td,
body.theme-blue .table > tbody > tr > td,
body.theme-pink .table > tbody > tr > td,
body.theme-brown .table > tbody > tr > td,
body.theme-red .table > tfoot > tr > td,
body.theme-green .table > tfoot > tr > td,
body.theme-blue .table > tfoot > tr > td ,
body.theme-pink .table > tfoot > tr > td ,
body.theme-brown .table > tfoot > tr > td  {
  color: var(--d-menu-text) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red tr.table-row:hover,
body.theme-green tr.table-row:hover,
body.theme-blue tr.table-row:hover ,
body.theme-pink tr.table-row:hover ,
body.theme-brown tr.table-row:hover  {
  background-color: var(--d-accent-pale) !important;
}

/* Formuláře */
body.theme-red input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-green input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-blue input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-pink input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-brown input:not([type="submit"]):not([type="button"]):not([type="reset"]):not(.btn),
body.theme-red select,
body.theme-green select,
body.theme-blue select,
body.theme-pink select,
body.theme-brown select,
body.theme-red textarea,
body.theme-green textarea,
body.theme-blue textarea,
body.theme-pink textarea,
body.theme-brown textarea,
body.theme-red .form-control,
body.theme-green .form-control,
body.theme-blue .form-control,
body.theme-pink .form-control,
body.theme-brown .form-control,
body.theme-red .form-control1,
body.theme-green .form-control1,
body.theme-blue .form-control1,
body.theme-pink .form-control1,
body.theme-brown .form-control1,
body.theme-red .form-control2,
body.theme-green .form-control2,
body.theme-blue .form-control2,
body.theme-pink .form-control2,
body.theme-brown .form-control2,
body.theme-red .form-control-hledej,
body.theme-green .form-control-hledej,
body.theme-blue .form-control-hledej ,
body.theme-pink .form-control-hledej ,
body.theme-brown .form-control-hledej  {
  background-color: var(--d-bg-content) !important;
  color: var(--d-menu-text) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red input:focus,
body.theme-green input:focus,
body.theme-blue input:focus,
body.theme-pink input:focus,
body.theme-brown input:focus,
body.theme-red select:focus,
body.theme-green select:focus,
body.theme-blue select:focus,
body.theme-pink select:focus,
body.theme-brown select:focus,
body.theme-red textarea:focus,
body.theme-green textarea:focus,
body.theme-blue textarea:focus,
body.theme-pink textarea:focus,
body.theme-brown textarea:focus,
body.theme-red .form-control:focus,
body.theme-green .form-control:focus,
body.theme-blue .form-control:focus ,
body.theme-pink .form-control:focus ,
body.theme-brown .form-control:focus  {
  border-color: var(--d-accent) !important;
  box-shadow: 0 0 0 1px var(--d-accent-light) !important;
}

/* Tlačítka */
body.theme-red .btn-primary,
body.theme-green .btn-primary,
body.theme-blue .btn-primary,
body.theme-pink .btn-primary,
body.theme-brown .btn-primary,
body.theme-red .form-btn,
body.theme-green .form-btn,
body.theme-blue .form-btn ,
body.theme-pink .form-btn ,
body.theme-brown .form-btn  {
  background-color: var(--d-accent) !important;
  border-color: var(--d-accent-dark) !important;
  color: #fff !important;
}

body.theme-red .btn-primary:hover,
body.theme-red .btn-primary:focus,
body.theme-green .btn-primary:hover,
body.theme-green .btn-primary:focus,
body.theme-blue .btn-primary:hover,
body.theme-pink .btn-primary:hover,
body.theme-brown .btn-primary:hover,
body.theme-blue .btn-primary:focus,
body.theme-pink .btn-primary:focus,
body.theme-brown .btn-primary:focus,
body.theme-red .form-btn:hover,
body.theme-red .form-btn:focus,
body.theme-green .form-btn:hover,
body.theme-green .form-btn:focus,
body.theme-blue .form-btn:hover,
body.theme-pink .form-btn:hover,
body.theme-brown .form-btn:hover,
body.theme-blue .form-btn:focus ,
body.theme-pink .form-btn:focus ,
body.theme-brown .form-btn:focus  {
  background-color: var(--d-accent-dark) !important;
  border-color: var(--d-accent-darker) !important;
  color: #fff !important;
}

body.theme-red .btn-default:hover,
body.theme-red .btn-default:focus,
body.theme-green .btn-default:hover,
body.theme-green .btn-default:focus,
body.theme-blue .btn-default:hover,
body.theme-pink .btn-default:hover,
body.theme-brown .btn-default:hover,
body.theme-blue .btn-default:focus ,
body.theme-pink .btn-default:focus ,
body.theme-brown .btn-default:focus  {
  background-color: var(--d-accent-pale) !important;
  border-color: var(--d-accent-light) !important;
  color: var(--d-accent-dark) !important;
}

/* Stránkování */
body.theme-red .dovis-pagination > li > a,
body.theme-red .dovis-pagination > li > span,
body.theme-green .dovis-pagination > li > a,
body.theme-green .dovis-pagination > li > span,
body.theme-blue .dovis-pagination > li > a,
body.theme-pink .dovis-pagination > li > a,
body.theme-brown .dovis-pagination > li > a,
body.theme-blue .dovis-pagination > li > span,
body.theme-pink .dovis-pagination > li > span,
body.theme-brown .dovis-pagination > li > span,
body.theme-red .pagination:not(.dovis-pagination) > li > a,
body.theme-green .pagination:not(.dovis-pagination) > li > a,
body.theme-blue .pagination:not(.dovis-pagination) > li > a ,
body.theme-pink .pagination:not(.dovis-pagination) > li > a ,
body.theme-brown .pagination:not(.dovis-pagination) > li > a  {
  color: var(--d-accent) !important;
  border-color: var(--d-border-light) !important;
}

body.theme-red .dovis-pagination > li.active > span,
body.theme-green .dovis-pagination > li.active > span,
body.theme-blue .dovis-pagination > li.active > span,
body.theme-pink .dovis-pagination > li.active > span,
body.theme-brown .dovis-pagination > li.active > span,
body.theme-red .pagination:not(.dovis-pagination) > .active > a,
body.theme-green .pagination:not(.dovis-pagination) > .active > a,
body.theme-blue .pagination:not(.dovis-pagination) > .active > a,
body.theme-pink .pagination:not(.dovis-pagination) > .active > a,
body.theme-brown .pagination:not(.dovis-pagination) > .active > a,
body.theme-red .pagination:not(.dovis-pagination) > .active > span,
body.theme-green .pagination:not(.dovis-pagination) > .active > span,
body.theme-blue .pagination:not(.dovis-pagination) > .active > span ,
body.theme-pink .pagination:not(.dovis-pagination) > .active > span ,
body.theme-brown .pagination:not(.dovis-pagination) > .active > span  {
  background-color: var(--d-accent) !important;
  border-color: var(--d-accent) !important;
  color: #fff !important;
}

/* Nadpisy a panely */
body.theme-red h1,
body.theme-red h2,
body.theme-red h3,
body.theme-red h4,
body.theme-red h5,
body.theme-red h6,
body.theme-green h1,
body.theme-green h2,
body.theme-green h3,
body.theme-green h4,
body.theme-green h5,
body.theme-green h6,
body.theme-blue h1,
body.theme-pink h1,
body.theme-brown h1,
body.theme-blue h2,
body.theme-pink h2,
body.theme-brown h2,
body.theme-blue h3,
body.theme-pink h3,
body.theme-brown h3,
body.theme-blue h4,
body.theme-pink h4,
body.theme-brown h4,
body.theme-blue h5,
body.theme-pink h5,
body.theme-brown h5,
body.theme-blue h6 ,
body.theme-pink h6 ,
body.theme-brown h6  {
  color: var(--d-menu-text) !important;
}

body.theme-red .progress,
body.theme-green .progress,
body.theme-blue .progress ,
body.theme-pink .progress ,
body.theme-brown .progress  {
  background-color: var(--d-accent-pale) !important;
}

body.theme-red .horz-grid .show-grid a i.fa,
body.theme-green .horz-grid .show-grid a i.fa,
body.theme-blue .horz-grid .show-grid a i.fa ,
body.theme-pink .horz-grid .show-grid a i.fa ,
body.theme-brown .horz-grid .show-grid a i.fa  {
  color: var(--d-accent) !important;
}
