body[data-theme="dark"] {
    background: #24282d;
    color: #e5e7eb;
}

body[data-theme="dark"] a {
    color: #e5e7eb;
}
body[data-theme="dark"] a:hover {
    color: #cbd5e1;
}

body[data-theme="dark"] .container {
    background: #1d2024;
    border: 1px solid #2b2f36;
}

body[data-theme="dark"] input[type=text],
body[data-theme="dark"] input[type=password],
body[data-theme="dark"] input[type=file],
body[data-theme="dark"] input[type=number],
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background: #1b1e22;
    color: #e5e7eb;
    border: 1px solid #30363d;
}

body[data-theme="dark"] select[disabled] {
    background: #23272e;
    color: #94a3b8;
}

body[data-theme="dark"] input[type=button],
body[data-theme="dark"] button {
    background: #2a2f36;
    color: #e5e7eb;
    border: 1px solid #3a414b;
}

body[data-theme="dark"] .top-bar {
    background-color: #1b1e22;
    color: #e5e7eb;
}
body[data-theme="dark"] .theme-toggle-track {
    background: #2b2f36;
    border-color: #3a414b;
}
body[data-theme="dark"] .theme-toggle-track::after {
    background: #e5e7eb;
}
body[data-theme="dark"] .theme-icon-sun {
    color: #fbbf24;
}
body[data-theme="dark"] .theme-icon-moon {
    color: #e2e8f0;
}

body[data-theme="dark"] .dropdown {
    background-color: #1b1e22;
    color: #e5e7eb;
    border: 1px solid #2b2f36;
}
body[data-theme="dark"] .dropdown li {
    border-bottom: 1px solid #2b2f36;
}
body[data-theme="dark"] .dropdown li a {
    color: #e5e7eb;
}
body[data-theme="dark"] #left_menu {
    background: #0f1216;
    border-right: 1px solid #1f2430;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
body[data-theme="dark"] #click_left_menu {
    background: #111827;
    border-color: #1f2937;
}
body[data-theme="dark"] #click_left_menu::before {
    background: #e2e8f0;
    box-shadow: 0 6px 0 #e2e8f0, 0 12px 0 #e2e8f0;
}
body[data-theme="dark"] #cssmenu {
    color: #e2e8f0;
}
body[data-theme="dark"] #cssmenu > ul > li > a {
    color: #e2e8f0;
}
body[data-theme="dark"] #cssmenu > ul > li > a > i {
    color: #94a3b8;
}
body[data-theme="dark"] #cssmenu > ul > li > a:hover {
    background: #1f2329;
    color: #f8fafc;
}
body[data-theme="dark"] #cssmenu > ul > li.open > a,
body[data-theme="dark"] #cssmenu > ul > li.active > a {
    background: #1e3a8a;
    color: #eff6ff;
}
body[data-theme="dark"] #cssmenu > ul > li.open > a > i,
body[data-theme="dark"] #cssmenu > ul > li.active > a > i {
    color: #bfdbfe;
}
body[data-theme="dark"] #cssmenu ul ul {
    border-left-color: #2b2f36;
}
body[data-theme="dark"] #cssmenu ul ul li a {
    color: #94a3b8;
}
body[data-theme="dark"] #cssmenu ul ul li a:hover {
    background: #1f2329;
    color: #f8fafc;
}
body[data-theme="dark"] #cssmenu ul ul li.has-sub > a::after {
    border-right-color: #64748b;
    border-bottom-color: #64748b;
}
body[data-theme="dark"] #cssmenu ul ul li.active > a {
    background: #1e40af;
    color: #dbeafe;
}
body[data-theme="dark"] #user-info {
    background: #111827;
    border-top-color: #1f2937;
    color: #e2e8f0;
}
body[data-theme="dark"] #user-info div {
    color: #94a3b8;
}

body[data-theme="dark"] #main_menu {
    background-color: #1b1e22;
}
body[data-theme="dark"] #left_menu {
    background-color: #1b1e22;
    border-right: 1px solid #2b2f36;
}
body[data-theme="dark"] #user-info {
    background-color: #23272e;
    color: #e5e7eb;
}
body[data-theme="dark"] #user-info div {
    color: #e5e7eb;
}
body[data-theme="dark"] #cssmenu {
    color: #e5e7eb;
}
body[data-theme="dark"] #cssmenu > ul > li > a {
    color: #e5e7eb;
}
body[data-theme="dark"] #cssmenu > ul > li > a:hover {
    background-color: #23272e;
    color: #f8fafc;
}
body[data-theme="dark"] #cssmenu > ul > li.open > a {
    background-color: #2a2f36;
}
body[data-theme="dark"] #cssmenu ul.otevrena li a {
    background-color: #1f2329;
    color: #e5e7eb;
}
body[data-theme="dark"] #cssmenu ul ul li a {
    background: #1f2329;
    color: #e5e7eb;
}
body[data-theme="dark"] #cssmenu ul ul li a:hover {
    background: #23272e;
    color: #f8fafc;
}
body[data-theme="dark"] #cssmenu > ul > li > a:hover > span::after,
body[data-theme="dark"] #cssmenu > ul > li.active > a > span::after,
body[data-theme="dark"] #cssmenu > ul > li.open > a > span::after {
    border-color: #cbd5e1;
}
body[data-theme="dark"] #cssmenu ul ul li.has-sub > a::after,
body[data-theme="dark"] #cssmenu ul ul li.active > a::after,
body[data-theme="dark"] #cssmenu ul ul li.open > a::after,
body[data-theme="dark"] #cssmenu ul ul li > a:hover::after {
    border-color: #cbd5e1;
}

body[data-theme="dark"] .toolbarBox {
    background-color: #1d2024;
    border-bottom: 1px solid #2b2f36;
}
body[data-theme="dark"] .toolbarBox .pageTitle h3 {
    color: #e5e7eb;
    text-shadow: none;
}
body[data-theme="dark"] .toolbarBox a.toolbar_btn {
    color: #e5e7eb;
    border-color: #2b2f36;
    background: #1f2329;
    text-shadow: none;
}
body[data-theme="dark"] .toolbarBox a.toolbar_btn:hover {
    background-color: #23272e;
    border-color: #3a414b;
}
body[data-theme="dark"] .toolbarBox .toolbar_btn .process-icon i {
    color: #e5e7eb;
}
body[data-theme="dark"] .toolbarBox a.toolbar_btn:hover .process-icon i {
    color: #f8fafc;
}
body[data-theme="dark"] div.toolbar-placeholder {
    background: #1b1e22;
    border-top: 1px solid #2b2f36;
    border-bottom: 1px solid #2b2f36;
}

body[data-theme="dark"] .table {
    background-color: #1d2024;
    border-color: #2b2f36;
}
body[data-theme="dark"] .table tr th {
    background: #23272e;
    color: #e5e7eb;
    text-shadow: none;
}
body[data-theme="dark"] .table tr td {
    border-bottom: 1px solid #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .table .alt_row {
    background-color: #20242a;
}
body[data-theme="dark"] .table tfoot th {
    background: #23272e;
    color: #e5e7eb;
}
body[data-theme="dark"] .table a {
    color: #e5e7eb;
}
body[data-theme="dark"] .table tr.row_hover:hover td {
    background: #2a2f36;
}
body[data-theme="dark"] .router {
    color: #e5e7eb;
}
body[data-theme="dark"] .router .head {
    background: linear-gradient(135deg, #1f2a33, #253645);
    border: 1px solid #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .router .head a {
    color: #e5e7eb;
}
body[data-theme="dark"] .router .head a:hover {
    color: #f8fafc;
}
body[data-theme="dark"] .router .rozhrani table {
    background: #1d2024;
    border: 1px solid #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .router .rozhrani table thead td {
    background: #23272e;
    color: #e5e7eb;
    border-bottom: 1px solid #2b2f36;
}
body[data-theme="dark"] .router .rozhrani table tbody tr {
    border-color: #2b2f36;
}
body[data-theme="dark"] .router .rozhrani table td {
    color: #e5e7eb;
}
body[data-theme="dark"] .router .rozhrani table a {
    color: #e5e7eb;
}
body[data-theme="dark"] .router .rozhrani table span[style*="color:black"] {
    color: #e5e7eb !important;
}
body[data-theme="dark"] .router .device,
body[data-theme="dark"] .router .info,
body[data-theme="dark"] .router .info_closest,
body[data-theme="dark"] .router .commands {
    background-color: #1d2024 !important;
    border-color: #2b2f36 !important;
    color: #e5e7eb;
}
body[data-theme="dark"] .button {
    background: #2a2f36;
    border-color: #3a414b;
    color: #e5e7eb;
    text-shadow: none;
}

body[data-theme="dark"] .tab_form tr td:first-child {
    color: #cbd5e1;
}
body[data-theme="dark"] #tab-container ul li {
    background-color: #1d2024;
    border-color: #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] #tab-container ul li a,
body[data-theme="dark"] #tab-container ul li a:visited {
    color: #cbd5e1;
}
body[data-theme="dark"] #tab-container ul li.selected,
body[data-theme="dark"] #tab-container ul li:hover {
    background-color: #23272e;
    border-color: #2b2f36;
}
body[data-theme="dark"] #tab-container ul li a:hover {
    color: #f8fafc;
}
body[data-theme="dark"] #content2 .main-container {
    background-color: #1d2024;
    border-color: #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] #content2 .main-container hr {
    border-top: 1px solid #2b2f36;
}

body[data-theme="dark"] .ui-widget-content {
    background: #1d2024;
    border-color: #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .ui-widget-header {
    background: #23272e;
    border-color: #2b2f36;
    color: #f8fafc;
    text-shadow: none;
}
body[data-theme="dark"] .portlet {
    background: #1d2024;
    border: 1px solid #2b2f36;
}
body[data-theme="dark"] .portlet-header {
    color: #f8fafc;
}
body[data-theme="dark"] .portlet-content {
    color: #e5e7eb;
}
body[data-theme="dark"] .portlet-placeholder {
    border: 1px dashed #3a414b;
    background: #1b1e22;
}
body[data-theme="dark"] .portlet .ui-icon {
    filter: invert(1);
}
body[data-theme="dark"] .highcharts-background,
body[data-theme="dark"] .highcharts-plot-background {
    fill: #1d2024 !important;
}
body[data-theme="dark"] .highcharts-title,
body[data-theme="dark"] .highcharts-subtitle,
body[data-theme="dark"] .highcharts-axis-labels text,
body[data-theme="dark"] .highcharts-legend-item text,
body[data-theme="dark"] .highcharts-data-label text {
    fill: #e5e7eb !important;
}
body[data-theme="dark"] .highcharts-axis-line,
body[data-theme="dark"] .highcharts-tick {
    stroke: #3a414b !important;
}
body[data-theme="dark"] .highcharts-grid-line {
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] .highcharts-legend-box {
    fill: #1d2024 !important;
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] .highcharts-tooltip-box {
    fill: #1f2329 !important;
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] .highcharts-label-box {
    fill: #1f2329 !important;
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] .highcharts-tooltip path,
body[data-theme="dark"] .highcharts-tooltip rect {
    fill: #1f2329 !important;
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] .highcharts-tooltip text {
    fill: #e5e7eb !important;
}
body[data-theme="dark"] .highcharts-tooltip text tspan {
    fill: #e5e7eb !important;
}
body[data-theme="dark"] .highcharts-tooltip span {
    background: #1f2329 !important;
    color: #e5e7eb !important;
    border: 1px solid #2b2f36 !important;
}
body[data-theme="dark"] #dialog_ont_graph,
body[data-theme="dark"] #ont_graph_content {
    background: #1d2024 !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-container,
body[data-theme="dark"] #dialog_ont_graph .highcharts-root {
    background: #1d2024 !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-box {
    fill: #1d2024 !important;
    stroke: #2b2f36 !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item text,
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item text tspan {
    fill: #e5e7eb !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item-hidden text,
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item-hidden text tspan {
    fill: #94a3b8 !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item:hover text,
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item:hover text tspan {
    fill: #f8fafc !important;
}
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item rect,
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item path,
body[data-theme="dark"] #dialog_ont_graph .highcharts-legend-item line {
    stroke: #64748b !important;
}
body[data-theme="dark"] .admin-profile-card,
body[data-theme="dark"] .admin-kv,
body[data-theme="dark"] .admin-section,
body[data-theme="dark"] .admin-device-card,
body[data-theme="dark"] .admin-theme-card,
body[data-theme="dark"] .google-status,
body[data-theme="dark"] .admin-toggle,
body[data-theme="dark"] .admin-kv,
body[data-theme="dark"] .admin-theme-preview {
    background: #1d2024;
    border-color: #2b2f36;
}
body[data-theme="dark"] .admin-smtp-group {
    background: #1d2024;
    border-color: #2b2f36;
}
body[data-theme="dark"] .admin-profile-title,
body[data-theme="dark"] .admin-section-title,
body[data-theme="dark"] .admin-kv strong,
body[data-theme="dark"] .admin-theme-title,
body[data-theme="dark"] .admin-device-title,
body[data-theme="dark"] .admin-smtp-group-title {
    color: #f8fafc;
}
body[data-theme="dark"] .admin-kv div,
body[data-theme="dark"] .admin-section-desc,
body[data-theme="dark"] .admin-device-meta,
body[data-theme="dark"] .admin-note,
body[data-theme="dark"] .admin-theme-card {
    color: #a1a1aa;
}
body[data-theme="dark"] .admin-chip {
    background: #23272e;
    color: #e5e7eb;
}
body[data-theme="dark"] .admin-btn {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .admin-btn:hover {
    background: #2a2f36;
}
body[data-theme="dark"] .admin-btn-primary {
    background: #3a3f46;
    border-color: #4b525c;
    color: #f8fafc;
}
body[data-theme="dark"] .admin-btn-primary:hover {
    background: #464d57;
}
body[data-theme="dark"] .admin-btn-ghost {
    background: #1d2024;
}
body[data-theme="dark"] .admin-tab {
    color: #9ca3af;
    background: transparent;
    border: 0;
}
body[data-theme="dark"] .admin-tab.is-active {
    color: #f8fafc;
}
body[data-theme="dark"] .admin-tab.is-active::after {
    background: #60a5fa;
}
body[data-theme="dark"] .admin-theme-card.is-selected {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
}
body[data-theme="dark"] .admin-theme-preview {
    background: #23272e;
}
body[data-theme="dark"] .admin-theme-light {
    background: #2b2f36;
}
body[data-theme="dark"] .admin-theme-light div {
    background: #3a4048;
    border: 1px solid #4b525c;
}
body[data-theme="dark"] .admin-theme-dark {
    background: #111315;
}
body[data-theme="dark"] .admin-theme-dark div {
    background: #1b1e22;
    border: 1px solid #2b2f36;
}
body[data-theme="dark"] .admin-toggle-slider {
    background: #3a414b;
}
body[data-theme="dark"] .admin-toggle input:checked + .admin-toggle-slider {
    background: #16a34a;
}
body[data-theme="dark"] .admin-device-status.is-ok {
    color: #86efac;
}

body[data-theme="dark"] .cn-row,
body[data-theme="dark"] .cn-kpi,
body[data-theme="dark"] .cn-chart {
    background: #1d2024 !important;
    border-color: #2b2f36 !important;
}
body[data-theme="dark"] .cn-chip {
    background: #23272e !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] .cn-btn {
    background: #23272e !important;
    border-color: #3a414b !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] .cn-btn:hover {
    background: #2a2f36;
}
body[data-theme="dark"] .cn-btn.cn-pdf {
    background: #3b2323 !important;
    border-color: #5b2a2a !important;
    color: #fca5a5 !important;
}
body[data-theme="dark"] .cn-title a {
    color: #f8fafc !important;
}
body[data-theme="dark"] .cn-meta,
body[data-theme="dark"] .cn-info span,
body[data-theme="dark"] .cn-info em,
body[data-theme="dark"] .cn-chart-label,
body[data-theme="dark"] .cn-chart-sub {
    color: #94a3b8 !important;
}
body[data-theme="dark"] .cn-info strong,
body[data-theme="dark"] .cn-kpi-value,
body[data-theme="dark"] .cn-chart-value {
    color: #f8fafc !important;
}
body[data-theme="dark"] .cn-kpi-label {
    color: #9ca3af !important;
}
body[data-theme="dark"] .cn-kpi-sub {
    color: #fbbf24 !important;
}
body[data-theme="dark"] .cn-chart-ring::after {
    background: #1b1e22 !important;
}
body[data-theme="dark"] .cn-sum-toggle {
    color: #e5e7eb !important;
    background: #23272e !important;
    border: 1px solid #3a414b !important;
    border-style: solid !important;
    border-radius: 8px;
    padding: 6px 8px;
}
body[data-theme="dark"] .cn-sum-toggle input {
    accent-color: #60a5fa !important;
}

/* Dialog overlay + dialog chrome */
body[data-theme="dark"] .ui-widget-overlay {
    background: rgba(0, 0, 0, 0.65) !important;
    background-image: none !important;
    opacity: 1 !important;
}
body[data-theme="dark"] .ui-dialog {
    background: #1d2024 !important;
    border: 1px solid #2b2f36 !important;
    color: #e5e7eb !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
body[data-theme="dark"] .ui-dialog .ui-dialog-titlebar {
    background: #23272e !important;
    border-bottom: 1px solid #2b2f36 !important;
    color: #f8fafc;
}
body[data-theme="dark"] .ui-dialog .ui-dialog-content {
    background: #1d2024 !important;
    color: #e5e7eb;
}
body[data-theme="dark"] .ui-dialog .ui-dialog-buttonpane {
    background: #1b1e22 !important;
    border-top: 1px solid #2b2f36 !important;
}
body[data-theme="dark"] .ui-dialog .ui-dialog-buttonpane .ui-button {
    background: #23272e !important;
    border-color: #3a414b !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] .ui-dialog .ui-dialog-buttonpane .ui-button.ui-state-hover {
    background: #2a2f36 !important;
}
body[data-theme="dark"] .ui-dialog .tab_form td:first-child{
    color: #cbd5e1;
}
body[data-theme="dark"] .ui-dialog input[type="text"],
body[data-theme="dark"] .ui-dialog input[type="date"],
body[data-theme="dark"] .ui-dialog input[type="time"],
body[data-theme="dark"] .ui-dialog select,
body[data-theme="dark"] .ui-dialog textarea{
    background: #1b1e22;
    color: #e5e7eb;
    border-color: #30363d;
}
body[data-theme="dark"] .ui-dialog input[type="text"]:focus,
body[data-theme="dark"] .ui-dialog input[type="date"]:focus,
body[data-theme="dark"] .ui-dialog input[type="time"]:focus,
body[data-theme="dark"] .ui-dialog select:focus,
body[data-theme="dark"] .ui-dialog textarea:focus{
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
body[data-theme="dark"] .plan-users__header {
    color: #e5e7eb;
}
body[data-theme="dark"] .plan-users__search input {
    background: #1b1e22;
    border-color: #30363d;
    color: #e5e7eb;
}
body[data-theme="dark"] .plan-users__search button {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .plan-time {
    background: #1b1e22;
    border-color: #2b2f36;
}
body[data-theme="dark"] .plan-time__title {
    color: #f8fafc;
}
body[data-theme="dark"] .plan-time__row label,
body[data-theme="dark"] .plan-time__label {
    color: #cbd5e1;
}
body[data-theme="dark"] .plan-time__summary {
    border-top-color: #2b2f36;
    color: #94a3b8;
}
body[data-theme="dark"] .plan-time__value {
    color: #f8fafc;
}
body[data-theme="dark"] .search-icon {
    color: #94a3b8;
}
body[data-theme="dark"] .plan-customer-link{
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .plan-customer-link:hover{
    background: #2a2f36;
}
body[data-theme="dark"] .plan-docs__title{
    color: #94a3b8;
}
body[data-theme="dark"] .plan-docs__btn{
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .plan-docs__btn:hover{
    background: #2a2f36;
}
body[data-theme="dark"] .plan-docs__btn--ghost{
    background: #1b1e22;
}
body[data-theme="dark"] .plan-docs__head{
    border-bottom: 1px solid #2b2f36;
}
body[data-theme="dark"] .plan-docs__btn--primary{
    background: #1b1e22;
    border-color: #2563eb;
    color: #93c5fd;
}
body[data-theme="dark"] .plan-docs__btn--primary:hover{
    background: #1f2937;
}
body[data-theme="dark"] .plan-docs__btn--pdf{
    background: #2a1b1b;
    border-color: #5b2626;
    color: #fca5a5;
}
body[data-theme="dark"] .plan-docs__btn--pdf:hover{
    background: #3b1d1d;
}
body[data-theme="dark"] .plan-docs__actions .pdfHref{
    margin: 0;
    padding: 6px 10px;
    background-image: none;
}
body[data-theme="dark"] .switch .slider{
    background: #3a414b;
}
body[data-theme="dark"] .switch input:checked + .slider{
    background: #22c55e;
}
body[data-theme="dark"] .plan-users__search button:hover {
    background: #2a2f36;
}
body[data-theme="dark"] .plan-users__list-head {
    color: #94a3b8;
}
body[data-theme="dark"] .plan-user-row {
    background: #1b1e22;
    border-color: #2b2f36;
}
body[data-theme="dark"] .plan-user-time-label {
    color: #94a3b8;
}
body[data-theme="dark"] .plan-users__table th {
    color: #94a3b8;
}
body[data-theme="dark"] .plan-users__table tbody td {
    background: #1b1e22;
    border-color: #2b2f36;
}

body[data-theme="dark"] .plan-user-avatar {
    border-color: #2b2f36;
    background: #1b1e22;
}
body[data-theme="dark"] .plan-user-remove {
    background: #3b1d1d;
    border-color: #5b2626;
    color: #fca5a5;
}
body[data-theme="dark"] .plan-user-remove:hover {
    background: #5b2626;
}
body[data-theme="dark"] table#plany tr[style*="BBE5BB"] td,
body[data-theme="dark"] table#dokoncene_plany tr[style*="BBE5BB"] td {
    background-color: #203126 !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] table#plany tr[style*="FF7558"] td,
body[data-theme="dark"] table#dokoncene_plany tr[style*="FF7558"] td {
    background-color: #3a1f22 !important;
    color: #f1d4d7 !important;
}
body[data-theme="dark"] table#plany .color_field[style*="background-color:green"],
body[data-theme="dark"] table#dokoncene_plany .color_field[style*="background-color:green"] {
    background-color: #2f5a39 !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] table#plany .color_field,
body[data-theme="dark"] table#dokoncene_plany .color_field {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.45);
    filter: saturate(0.72) brightness(0.9);
}
body[data-theme="dark"] .fc-user-time{
    color: #cbd5e1;
}
body[data-theme="dark"] #calendar{
    color: #e5e7eb;
}
body[data-theme="dark"] #calendar .fc-unthemed th,
body[data-theme="dark"] #calendar .fc-unthemed td,
body[data-theme="dark"] #calendar .fc-unthemed thead,
body[data-theme="dark"] #calendar .fc-unthemed tbody,
body[data-theme="dark"] #calendar .fc-unthemed .fc-divider,
body[data-theme="dark"] #calendar .fc-unthemed .fc-row,
body[data-theme="dark"] #calendar .fc-unthemed .fc-content-skeleton,
body[data-theme="dark"] #calendar .fc-unthemed .fc-time-grid,
body[data-theme="dark"] #calendar .fc-unthemed .fc-day-grid,
body[data-theme="dark"] #calendar .fc-unthemed .fc-bg,
body[data-theme="dark"] #calendar .fc-unthemed .fc-slats{
    border-color: #2b2f36;
}
body[data-theme="dark"] #calendar .fc-today,
body[data-theme="dark"] #calendar .fc-bg .fc-today,
body[data-theme="dark"] #calendar .fc-day-grid .fc-today,
body[data-theme="dark"] #calendar .fc-time-grid .fc-today{
    background: rgba(37, 99, 235, 0.16) !important;
}
body[data-theme="dark"] #calendar .fc-today,
body[data-theme="dark"] #calendar .fc-bg .fc-today,
body[data-theme="dark"] #calendar .fc-day-grid .fc-today,
body[data-theme="dark"] #calendar .fc-time-grid .fc-today,
body[data-theme="dark"] #calendar td.fc-today,
body[data-theme="dark"] #calendar .fc-today.fc-state-highlight{
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25) !important;
}
body[data-theme="dark"] #calendar .fc-unthemed .fc-axis,
body[data-theme="dark"] #calendar .fc-unthemed .fc-time,
body[data-theme="dark"] #calendar .fc-unthemed .fc-day-number{
    color: #cbd5e1;
}
body[data-theme="dark"] #calendar .fc-toolbar .fc-button{
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
    text-shadow: none;
}
body[data-theme="dark"] #calendar .fc-toolbar .fc-button:hover{
    background: #2a2f36;
}
body[data-theme="dark"] #calendar .fc-toolbar .fc-button.fc-state-active,
body[data-theme="dark"] #calendar .fc-toolbar .fc-button.fc-state-down{
    background: #1e40af;
    border-color: #1e40af;
    color: #e0f2fe;
}
body[data-theme="dark"] #calendar .fc-list-table th{
    background: #1f2329;
    color: #e5e7eb;
}
body[data-theme="dark"] #calendar .fc-list-item td{
    border-color: #2b2f36;
}
body[data-theme="dark"] #calendar .fc-list-item:hover td{
    background: #1f2329;
}
/* Calendar dark: soften grid to avoid "excel" look */
body[data-theme="dark"] #calendar .fc-view,
body[data-theme="dark"] #calendar .fc-view > table{
    background: #15181c;
}
body[data-theme="dark"] #calendar .fc-unthemed th,
body[data-theme="dark"] #calendar .fc-unthemed td,
body[data-theme="dark"] #calendar .fc-unthemed thead,
body[data-theme="dark"] #calendar .fc-unthemed tbody,
body[data-theme="dark"] #calendar .fc-unthemed .fc-divider,
body[data-theme="dark"] #calendar .fc-unthemed .fc-row,
body[data-theme="dark"] #calendar .fc-unthemed .fc-content-skeleton,
body[data-theme="dark"] #calendar .fc-unthemed .fc-time-grid,
body[data-theme="dark"] #calendar .fc-unthemed .fc-day-grid,
body[data-theme="dark"] #calendar .fc-unthemed .fc-bg,
body[data-theme="dark"] #calendar .fc-unthemed .fc-slats{
    border-color: rgba(148, 163, 184, 0.08) !important;
}
body[data-theme="dark"] #calendar .fc-head{
    background: #1b1f25;
}
body[data-theme="dark"] #calendar .fc-day-header{
    color: #cbd5e1;
    font-weight: 600;
}
body[data-theme="dark"] #calendar .fc-time-grid .fc-slats td{
    border-top-color: rgba(148, 163, 184, 0.06) !important;
}
body[data-theme="dark"] #calendar .fc-day-grid td,
body[data-theme="dark"] #calendar .fc-time-grid td{
    border-color: rgba(148, 163, 184, 0.08) !important;
}
body[data-theme="dark"] #calendar .fc-event{
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
body[data-theme="dark"] #calendar .fc-event,
body[data-theme="dark"] #calendar .fc-event .fc-content{
    color: #f8fafc;
}
body[data-theme="dark"] #calendar .fc-event .fc-title{
    font-weight: 600;
}
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-done{
    background-color: #1f2937 !important;
    border-color: #475569 !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-done .fc-content{
    color: #e5e7eb !important;
}
body[data-theme="dark"] #calendar .fc-list-item.fc-event-plan-done td{
    background-color: #151a22 !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] #calendar .fc-list-item.fc-event-plan-done .fc-event-dot{
    background-color: #64748b !important;
    border-color: #64748b !important;
}
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-uncertain{
    border-style: dashed !important;
    border-width: 2px !important;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(248, 250, 252, 0.18) 0,
        rgba(248, 250, 252, 0.18) 6px,
        rgba(15, 23, 42, 0.25) 6px,
        rgba(15, 23, 42, 0.25) 12px
    );
}
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-uncertain .fc-content,
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-uncertain .fc-title{
    color: #f8fafc !important;
}
body[data-theme="dark"] #calendar .fc-event.fc-event-plan-uncertain .fc-title::after{
    color: #e2e8f0;
}
body[data-theme="dark"] #calendar .fc-list-item.fc-event-plan-uncertain td{
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(148, 163, 184, 0.16) 0,
        rgba(148, 163, 184, 0.16) 8px,
        rgba(17, 24, 39, 0.12) 8px,
        rgba(17, 24, 39, 0.12) 16px
    );
}
body[data-theme="dark"] #calendar .fc-list-item.fc-event-plan-uncertain .fc-event-dot{
    border-style: dashed;
    border-width: 2px;
}

body[data-theme="dark"] .ui-autocomplete .plan-user-option__avatar {
    border-color: #2b2f36;
    background: #1b1e22;
}
body[data-theme="dark"] .ui-autocomplete .plan-user-option__name {
    color: #e5e7eb;
}

.zk-switch{
    color: #e5e7eb;
}
body[data-theme="dark"] .zk-switch-track{
    background: #2b2f36;
}
body[data-theme="dark"] .zk-switch-track::after{
    background: #e5e7eb;
}
body[data-theme="dark"] .zk-switch input:checked + .zk-switch-track{
    background: #2563eb;
}

/* jquery-confirm */
body[data-theme="dark"] .jconfirm .jconfirm-bg {
    background: rgba(0, 0, 0, 0.7) !important;
}
body[data-theme="dark"] .jconfirm .jconfirm-box {
    background: #1d2024 !important;
    border: 1px solid #2b2f36 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-title-c .jconfirm-title,
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-content-pane .jconfirm-content {
    color: #f8fafc;
}
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
    color: #93c5fd;
}
body[data-theme="dark"] .jconfirm .jconfirm-box div.jconfirm-closeIcon {
    color: #94a3b8;
}
body[data-theme="dark"] .jconfirm .jconfirm-box div.jconfirm-closeIcon:hover {
    color: #f8fafc;
}
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-buttons {
    background: #1b1e22 !important;
    border-top: 1px solid #2b2f36 !important;
}
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-buttons button {
    background: #23272e !important;
    border-color: #3a414b !important;
    color: #e5e7eb !important;
}
body[data-theme="dark"] .jconfirm .jconfirm-box .jconfirm-buttons button:hover {
    background: #2a2f36 !important;
}

body[data-theme="dark"] .offer-detail {
    color: #e5e7eb;
}
body[data-theme="dark"] .offer-detail .offer-title,
body[data-theme="dark"] .offer-detail .offer-sub,
body[data-theme="dark"] .offer-detail .offer-head-actions,
body[data-theme="dark"] .offer-detail .toggle-label,
body[data-theme="dark"] .offer-detail .public-item-config label {
    color: #e5e7eb !important;
}
body[data-theme="dark"] .offer-detail .public-item-input,
body[data-theme="dark"] .offer-detail .product-search-input,
body[data-theme="dark"] .offer-detail .product-search-filter,
body[data-theme="dark"] .offer-detail .it,
body[data-theme="dark"] #dlg_offer_edit input[type="date"],
body[data-theme="dark"] #dlg_offer_edit select,
body[data-theme="dark"] #dlg_offer_edit textarea,
body[data-theme="dark"] .offer-edit-title {
    background: #1b1e22;
    color: #e5e7eb;
    border-color: #30363d;
}
body[data-theme="dark"] .offer-layout input#product_search.product-search-input,
body[data-theme="dark"] .offer-layout select#product_filter_vyrobce.product-search-filter {
    background: #1b1e22 !important;
    color: #e5e7eb !important;
    border-color: #30363d !important;
}
body[data-theme="dark"] .offer-detail .product-search-input:focus,
body[data-theme="dark"] .offer-detail .product-search-filter:focus,
body[data-theme="dark"] .offer-detail .it:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
body[data-theme="dark"] #dlg_product_add .prod-inp,
body[data-theme="dark"] #dlg_product_add .prod-ta,
body[data-theme="dark"] #dialog_produkt_edit .prod-inp,
body[data-theme="dark"] #dialog_produkt_edit .prod-ta {
    background: #1f2530;
    border-color: #3a4352;
    color: #e5e7eb;
}
body[data-theme="dark"] #dlg_product_add .prod-inp:focus,
body[data-theme="dark"] #dlg_product_add .prod-ta:focus,
body[data-theme="dark"] #dialog_produkt_edit .prod-inp:focus,
body[data-theme="dark"] #dialog_produkt_edit .prod-ta:focus {
    border-color: #4f7cff;
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.2);
    outline: none;
}
body[data-theme="dark"] #dlg_product_add .prod-inp::placeholder,
body[data-theme="dark"] #dlg_product_add .prod-ta::placeholder,
body[data-theme="dark"] #dialog_produkt_edit .prod-inp::placeholder,
body[data-theme="dark"] #dialog_produkt_edit .prod-ta::placeholder {
    color: #94a3b8;
}
body[data-theme="dark"] #dlg_product_add .mini-btn,
body[data-theme="dark"] #dialog_produkt_edit .mini-btn {
    background: #1f2530;
    border-color: #3a4352;
    color: #dbe3f0;
}
body[data-theme="dark"] #dlg_product_add .mini-btn:hover,
body[data-theme="dark"] #dialog_produkt_edit .mini-btn:hover {
    background: #2a3341;
}
body[data-theme="dark"] #dlg_product_add .mini-btn.primary,
body[data-theme="dark"] #dialog_produkt_edit .mini-btn.primary {
    border-color: #4f7cff;
    color: #9fc0ff;
}
body[data-theme="dark"] #dlg_product_add .inline-add,
body[data-theme="dark"] #dialog_produkt_edit .inline-add {
    background: #151b25;
    border-color: #2f3a49;
}
body[data-theme="dark"] #dlg_product_add .lbl,
body[data-theme="dark"] #dialog_produkt_edit .lbl {
    color: #9fb0c8;
}
body[data-theme="dark"] .product-detail {
    --pd-bg: #0f141c !important;
    --pd-surface: #161d27 !important;
    --pd-surface-alt: #1e2733 !important;
    --pd-ink: #e5e7eb !important;
    --pd-muted: #9fb0c8 !important;
    --pd-border: #2f3a49 !important;
    --pd-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
    background: radial-gradient(1200px 380px at 10% -10%, #1f2a3a 0%, #121923 42%, #0f141c 100%) !important;
    color: var(--pd-ink) !important;
}
body[data-theme="dark"] .product-detail .product-hero,
body[data-theme="dark"] .product-detail .product-media {
    background: linear-gradient(145deg, #1b2430, #161d27) !important;
    border-color: var(--pd-border) !important;
}
body[data-theme="dark"] .product-detail .product-card,
body[data-theme="dark"] .product-detail .meta-chip,
body[data-theme="dark"] .product-detail .status-pill,
body[data-theme="dark"] .product-detail .kv-value,
body[data-theme="dark"] .product-detail .offer-html,
body[data-theme="dark"] .product-detail .prod-img-card {
    background: var(--pd-surface) !important;
    border-color: var(--pd-border) !important;
    color: var(--pd-ink) !important;
}
body[data-theme="dark"] .product-detail .kv-grid div {
    background: var(--pd-surface-alt) !important;
    border-color: #3a4352 !important;
}
body[data-theme="dark"] .product-detail .status-pill.is-on {
    background: #173328 !important;
    border-color: #2a5f48 !important;
    color: #9ee7c5 !important;
}
body[data-theme="dark"] .product-detail .status-pill.is-off {
    background: #3a2222 !important;
    border-color: #6b3a3a !important;
    color: #f1b6b6 !important;
}
body[data-theme="dark"] .product-detail .no-prices {
    background: #2b2415 !important;
    border-color: #66522a !important;
    color: #f2d68f !important;
}
body[data-theme="dark"] .product-detail .prod-gallery-toggle,
body[data-theme="dark"] .product-detail .prod-day-header {
    background: #1e2733 !important;
    border-color: #3a4352 !important;
    color: #dbe3f0 !important;
}
body[data-theme="dark"] .product-detail .prod-gallery-toggle:hover {
    background: #273244 !important;
}
body[data-theme="dark"] .product-detail .prod-img-actions a,
body[data-theme="dark"] .product-detail .prod-img-name {
    color: #e5e7eb !important;
}
body[data-theme="dark"] .product-detail .prod-img-meta {
    color: #aebcd0 !important;
}
body[data-theme="dark"] .product-detail .prod-img-card.is-main {
    border-color: #b98619 !important;
    box-shadow: 0 10px 24px rgba(185, 134, 25, 0.3) !important;
}
body[data-theme="dark"] .product-detail .prod-img-badge {
    color: #1f2937 !important;
}
body[data-theme="dark"] .offer-detail .public-item-view,
body[data-theme="dark"] .offer-detail .public-item-price {
    background: #23272e;
    border-color: #2b2f36;
    color: #f8fafc;
}
body[data-theme="dark"] .offer-detail .product-search-results {
    background: #1f2329;
    border-color: #2b2f36;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
body[data-theme="dark"] .offer-detail .ps-item {
    border-bottom-color: #2b2f36;
}
body[data-theme="dark"] .offer-detail .ps-item:hover {
    background: #23272e;
}
body[data-theme="dark"] .offer-detail .ps-price {
    color: #f8fafc;
}
body[data-theme="dark"] .offer-detail .ps-empty {
    color: #9ca3af;
}
body[data-theme="dark"] .offer-detail .product-search-results .cn-chip {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .offer-detail .items-table th {
    color: #cbd5e1;
    border-bottom-color: #2b2f36;
    background: #23272e;
}
body[data-theme="dark"] .offer-detail .items-table td {
    border-bottom-color: #2b2f36;
}
body[data-theme="dark"] .offer-detail .it-ro {
    background: #23272e;
    color: #e5e7eb;
    border: 1px solid #30363d;
}
body[data-theme="dark"] .offer-detail .op {
    background: #1d2024;
    border: 1px solid #2b2f36;
    border-radius: 12px;
}
body[data-theme="dark"] .offer-detail .op-n {
    background: #23272e;
    color: #f8fafc;
    border-bottom: 1px solid #2b2f36;
}
body[data-theme="dark"] .offer-detail .op-t {
    background: #1d2024;
}
body[data-theme="dark"] .offer-detail .offer-side table.tab_form td:first-child {
    color: #a1a1aa;
}
body[data-theme="dark"] .offer-detail .offer-side .op:nth-of-type(2) table.tab_form tr:last-child td {
    border-top-color: #2b2f36;
}
body[data-theme="dark"] #dlg_offer_edit .muted {
    color: #9ca3af;
}
body[data-theme="dark"] .offer-detail .offer-pie-chart {
    background: #1d2024;
    border: 1px solid #2b2f36;
    border-radius: 12px;
}

/* Zakazky (orders) */
body[data-theme="dark"] .zk-card,
body[data-theme="dark"] .zk-section,
body[data-theme="dark"] .zk-gantt-wrap {
    background: #1d2024;
    border-color: #2b2f36;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
body[data-theme="dark"] .zk-card h3,
body[data-theme="dark"] .zk-section h4,
body[data-theme="dark"] .zk-section-head h4,
body[data-theme="dark"] .zk-card .zk-big,
body[data-theme="dark"] .zk-gantt-users-title {
    color: #f8fafc;
}
body[data-theme="dark"] .zk-op-note,
body[data-theme="dark"] .zk-img-meta,
body[data-theme="dark"] .zk-gallery-count,
body[data-theme="dark"] #zakazka_share_dialog .zk-share-note,
body[data-theme="dark"] .zk-gantt-users-grid {
    color: #9ca3af;
}
body[data-theme="dark"] .zk-protokol-table th,
body[data-theme="dark"] .zk-protokol-table td,
body[data-theme="dark"] .zk-plan,
body[data-theme="dark"] .zk-img-card img {
    border-bottom-color: #2b2f36;
    border-color: #2b2f36;
}
body[data-theme="dark"] .protokol-section-row td {
    background: #23272e;
    color: #e5e7eb;
}

body[data-theme="dark"] .zk-protokol-add,
body[data-theme="dark"] .zk-op-btn,
body[data-theme="dark"] .zk-gantt-add,
body[data-theme="dark"] .zk-gallery-toggle,
body[data-theme="dark"] .zk-protokol-btn,
body[data-theme="dark"] .zk-protokol-actions a,
body[data-theme="dark"] .zk-share-create,
body[data-theme="dark"] .zk-share-start,
body[data-theme="dark"] .zk-share-cancel,
body[data-theme="dark"] .zk-note-save,
body[data-theme="dark"] #zakazka_share_dialog .docs-btn {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .zk-protokol-add:hover,
body[data-theme="dark"] .zk-op-btn:hover,
body[data-theme="dark"] .zk-gantt-add:hover,
body[data-theme="dark"] .zk-gallery-toggle:hover,
body[data-theme="dark"] .zk-protokol-btn:hover,
body[data-theme="dark"] .zk-protokol-actions a:hover,
body[data-theme="dark"] .zk-share-create:hover,
body[data-theme="dark"] .zk-share-start:hover,
body[data-theme="dark"] .zk-share-cancel:hover,
body[data-theme="dark"] .zk-note-save:hover,
body[data-theme="dark"] #zakazka_share_dialog .docs-btn:hover {
    background: #2a2f36;
    border-color: #4b525c;
}
body[data-theme="dark"] .zk-share-cancel {
    color: #fca5a5;
}
body[data-theme="dark"] .zk-op-link {
    color: #93c5fd;
}

body[data-theme="dark"] .zk-day-header {
    background: #23272e;
    border-color: #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .zk-img-actions a {
    color: #cbd5e1;
}
body[data-theme="dark"] .zk-img-actions a:hover {
    color: #f8fafc;
}
body[data-theme="dark"] .zk-img-name {
    color: #e5e7eb;
}
body[data-theme="dark"] .zk-table .doc-actions a {
    color: #cbd5e1;
}
body[data-theme="dark"] .zk-table .doc-actions a:hover {
    color: #f8fafc;
}

body[data-theme="dark"] .zk-gantt-mode {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .zk-gantt-mode.active {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #0f172a;
}
body[data-theme="dark"] .zk-gantt-users-grid {
    background: #1b1e22;
    border-color: #2b2f36;
}
body[data-theme="dark"] .zk-gantt-wrap .gantt-container .grid-header,
body[data-theme="dark"] .zk-gantt-wrap .gantt-container .side-header,
body[data-theme="dark"] .zk-gantt-wrap .gantt-container .current-upper,
body[data-theme="dark"] .zk-gantt-wrap .gantt-container .extras {
    background: #1b1e22;
    color: #e5e7eb;
}

body[data-theme="dark"] .zk-protokol-meta input,
body[data-theme="dark"] .zk-protokol-meta select,
body[data-theme="dark"] #zakazka_share_dialog input#zakazka_share_link {
    background: #1b1e22;
    border-color: #30363d;
    color: #e5e7eb;
}

body[data-theme="dark"] .zk-img-select {
    background: rgba(27, 30, 34, 0.9);
    border-color: #3a414b;
}

body[data-theme="dark"] .zk-note-editor .jqte,
body[data-theme="dark"] .zk-note-editor .jqte_toolbar,
body[data-theme="dark"] .zk-note-editor .jqte_editor {
    background: #1b1e22;
    border-color: #30363d;
    color: #e5e7eb;
}

body[data-theme="dark"] #dialog_vytvorit_zakazku .search-icon {
    color: #94a3b8;
}
body[data-theme="dark"] .ui-autocomplete {
    background: #1b1e22;
    border-color: #30363d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
body[data-theme="dark"] .ui-autocomplete .ui-menu-item-wrapper {
    color: #e5e7eb;
}
body[data-theme="dark"] .zak-ac-title {
    color: #f8fafc;
}
body[data-theme="dark"] .zak-ac-meta {
    color: #94a3b8;
}
body[data-theme="dark"] .zak-ac-badge {
    background: #23272e;
    color: #cbd5e1;
}
body[data-theme="dark"] .ui-autocomplete .ui-state-active,
body[data-theme="dark"] .ui-autocomplete .ui-state-focus,
body[data-theme="dark"] .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
body[data-theme="dark"] .ui-autocomplete .ui-menu-item-wrapper.ui-state-focus {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
body[data-theme="dark"] .ui-autocomplete .ui-state-active .zak-ac-meta,
body[data-theme="dark"] .ui-autocomplete .ui-state-focus .zak-ac-meta {
    color: #e2e8f0;
}
body[data-theme="dark"] #find_customer_container > div:first-child {
    color: #cbd5e1;
}
body[data-theme="dark"] #find_customer_container #find_customer {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
body[data-theme="dark"] #find_customer_container #find_customer::placeholder {
    color: #94a3b8;
}
body[data-theme="dark"] #find_customer_container #find_customer:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

/* Portlet sklad */
body[data-theme="dark"] #stock_container .stock-label {
    color: #cbd5e1;
}
body[data-theme="dark"] #stock_container .stock-add-link {
    color: #93c5fd;
}
body[data-theme="dark"] #stock_container .stock-add-link:hover {
    color: #bfdbfe;
}
body[data-theme="dark"] #stock_container .stock-add-plus {
    color: #22c55e;
}
body[data-theme="dark"] #stock_container .stock-search-icon {
    color: #94a3b8;
}
body[data-theme="dark"] #find_stock {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
body[data-theme="dark"] #find_stock::placeholder {
    color: #94a3b8;
}
body[data-theme="dark"] #find_stock:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}
body[data-theme="dark"] #stock_search_btn {
    background: #1f2937;
    border-color: #475569;
    color: #e2e8f0;
}
body[data-theme="dark"] #stock_search_btn:hover {
    background: #334155;
    border-color: #64748b;
    color: #f8fafc;
}

/* Fakturace */
body[data-theme="dark"] .invoice-form {
    background: #111827;
    border-color: #374151;
}
body[data-theme="dark"] .invoice-form td:first-child,
body[data-theme="dark"] .invoice-head .switch-text,
body[data-theme="dark"] .invoice-head .search-icon,
body[data-theme="dark"] .invoice-head .invoice-offer-open,
body[data-theme="dark"] .invoice-head .invoice-offer-op,
body[data-theme="dark"] .invoice-head .zak-info-row span,
body[data-theme="dark"] .invoice-head .zak-info-title {
    color: #cbd5e1;
}
body[data-theme="dark"] .invoice-head .invoice-offer-open:hover {
    color: #f8fafc;
}
body[data-theme="dark"] .invoice-form input[type="text"],
body[data-theme="dark"] .invoice-form select,
body[data-theme="dark"] .invoice-form textarea,
body[data-theme="dark"] table.invoice input[type="text"],
body[data-theme="dark"] table#invoice input[type="text"],
body[data-theme="dark"] table.invoice select,
body[data-theme="dark"] table#invoice select,
body[data-theme="dark"] table.invoice textarea,
body[data-theme="dark"] table#invoice textarea,
body[data-theme="dark"] .invoice-form .ui-select-trigger {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
body[data-theme="dark"] .invoice-form input[readonly],
body[data-theme="dark"] table.invoice input[readonly],
body[data-theme="dark"] table#invoice input[readonly] {
    background: #1f2937;
    color: #cbd5e1;
}
body[data-theme="dark"] .invoice-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
}
body[data-theme="dark"] .invoice-form .ui-select-trigger:after {
    border-top-color: #94a3b8;
}
body[data-theme="dark"] .invoice-form .ui-select-menu {
    background: #0f172a;
    border-color: #475569;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
body[data-theme="dark"] .invoice-form .ui-select-option {
    color: #e2e8f0;
}
body[data-theme="dark"] .invoice-form .ui-select-option:hover {
    background: #1e293b;
}
body[data-theme="dark"] .invoice-form .ui-select-option.is-selected {
    background: #334155;
}
body[data-theme="dark"] .invoice-head .invoice-offer-item,
body[data-theme="dark"] .invoice-head .zak-services-card,
body[data-theme="dark"] .invoice-head .zak-services-footer,
body[data-theme="dark"] .invoice-head .zak-info-card {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body[data-theme="dark"] .invoice-head .zak-info-name {
    color: #f8fafc;
}
body[data-theme="dark"] .invoice-head .zak-info-row {
    border-bottom-color: #334155;
}
body[data-theme="dark"] .invoice-summary-table .summary-total td {
    border-top-color: #475569;
}
body[data-theme="dark"] .invoice-row-placeholder {
    background: #1e293b;
    border-color: #64748b;
}
body[data-theme="dark"] .invoice-head .rozpis_mesicu td {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body[data-theme="dark"] .invoice-head .rozpis_mesicu tr.rozpis-head td {
    background: #334155;
    color: #f8fafc;
}
body[data-theme="dark"] .invoice-head .rozpis_mesicu tr.rozpis-months td {
    background: #1e293b;
    color: #e2e8f0;
}
body[data-theme="dark"] .invoice-head .rozpis_mesicu input[type="checkbox"] {
    background: #0f172a;
    border-color: #64748b;
}
body[data-theme="dark"] .invoice-head .rozpis_mesicu input[type="checkbox"]:disabled {
    background: #1f2937;
    border-color: #475569;
}

/* Obchodni pripady */
body[data-theme="dark"] .op-board,
body[data-theme="dark"] .op-filter,
body[data-theme="dark"] .op-column,
body[data-theme="dark"] .op-card,
body[data-theme="dark"] .op-mail-card,
body[data-theme="dark"] .op,
body[data-theme="dark"] .op-mail-files,
body[data-theme="dark"] .op-mail-file-group {
    background: #1d2024;
    border-color: #2b2f36;
}
body[data-theme="dark"] .op-board-title,
body[data-theme="dark"] .op-card-title,
body[data-theme="dark"] .op-card-price,
body[data-theme="dark"] .op-card-owner-name,
body[data-theme="dark"] .op-t,
body[data-theme="dark"] .op-mail-card-body,
body[data-theme="dark"] .op-mail-file-name {
    color: #f8fafc;
}
body[data-theme="dark"] .op-board-hint,
body[data-theme="dark"] .op-card-meta,
body[data-theme="dark"] .op-card-owner-label,
body[data-theme="dark"] .op-card-footer,
body[data-theme="dark"] .op-column-sum,
body[data-theme="dark"] .op-column-empty,
body[data-theme="dark"] .op-mail-attach-summary,
body[data-theme="dark"] .op-mail-file-meta,
body[data-theme="dark"] .op-mail-row label,
body[data-theme="dark"] .op-mail-empty {
    color: #9ca3af;
}
body[data-theme="dark"] .op-filter label,
body[data-theme="dark"] .op-view-toggle {
    color: #cbd5e1;
}
body[data-theme="dark"] .op-view-toggle i {
    color: #94a3b8;
    opacity: 0.6;
}
body[data-theme="dark"] .op-view-toggle .is-active {
    color: #f8fafc;
    opacity: 1;
}
body[data-theme="dark"] .op-slider {
    background: #3a414b;
}
body[data-theme="dark"] .op-slider:before {
    background: #e5e7eb;
}
body[data-theme="dark"] .op-switch input:checked + .op-slider {
    background: #2563eb;
}

body[data-theme="dark"] .op-filter input[type="date"],
body[data-theme="dark"] .op-filter select,
body[data-theme="dark"] .op-mail-row input,
body[data-theme="dark"] .op-mail-row select {
    background: #1b1e22;
    border-color: #30363d;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-filter button {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-filter button:hover {
    background: #2a2f36;
}
body[data-theme="dark"] .op-filter button.op-filter-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
body[data-theme="dark"] .op-filter button.op-filter-primary:hover {
    background: #1d4ed8;
}

body[data-theme="dark"] .op-column-title {
    border-bottom-color: #2b2f36;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-column-count {
    background: #23272e;
    color: #e5e7eb;
}

body[data-theme="dark"] .op-card-title a,
body[data-theme="dark"] .op-card-meta a {
    color: #e5e7eb;
}
body[data-theme="dark"] .op-card-open {
    color: #94a3b8;
}
body[data-theme="dark"] .op-card-open:hover,
body[data-theme="dark"] .op-card-meta a:hover {
    color: #f8fafc;
}
body[data-theme="dark"] .op-card-footer {
    border-top-color: #3a414b;
}
body[data-theme="dark"] .op-card-placeholder {
    background: #1b1e22;
    border-color: #3a414b;
}
body[data-theme="dark"] .op-card--fresh {
    background: rgba(22, 163, 74, 0.12);
    border-color: #16a34a;
}
body[data-theme="dark"] .op-card--warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
}
body[data-theme="dark"] .op-card--stale {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}
body[data-theme="dark"] .op-avatar {
    border-color: #1b1e22;
    box-shadow: 0 0 0 1px #3a414b, 0 2px 6px rgba(0,0,0,0.35);
}

body[data-theme="dark"] .op-deadline--dead {
    background: #1f2329;
    color: #9ca3af;
    border-color: #3a414b;
}

body[data-theme="dark"] .op-n {
    background: #1e3a8a;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-n a,
body[data-theme="dark"] .op-n i {
    color: #e5e7eb;
}
body[data-theme="dark"] .op-t td:first-child {
    color: #9ca3af;
}

body[data-theme="dark"] .op-mail-card-title {
    background: #1e3a8a;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-mail-editor {
    background: #1b1e22;
    border-color: #30363d;
    color: #e5e7eb;
}
body[data-theme="dark"] .op-mail-file {
    border-top-color: #2b2f36;
}
body[data-theme="dark"] .op-mail-file a {
    color: #93c5fd;
}
body[data-theme="dark"] .op-mail-file a:hover {
    color: #bfdbfe;
}
