/* Theme overrides (light/dark) for whole UI.
   Activated by server-side <body class="theme-dark"> when:
   - ?theme=dark  (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 {
  background-color: #0b1017 !important;
  border-color: #2b3440 !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;
}

/* ----- 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;
}

.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;
}
