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"] .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"] #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"] 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"] .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-tooltip text {
    fill: #e5e7eb !important;
}
body[data-theme="dark"] #stock_container .stock-search {
    background: #1f2329;
    border-color: #2b2f36;
}
body[data-theme="dark"] #find_stock {
    background: #1b1e22;
    color: #e5e7eb;
    border-color: #30363d;
}
body[data-theme="dark"] #stock_search_btn {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
body[data-theme="dark"] #stock_search_btn:hover {
    background: #1d4ed8;
}
body[data-theme="dark"] #stock_container .stock-add-btn {
    background: #1e2a23;
    border-color: #2a3a2f;
    color: #a7f3d0;
}
body[data-theme="dark"] #stock_container .stock-add-btn:hover {
    background: #223328;
}
body[data-theme="dark"] #stock_container .stock-add-icon {
    filter: invert(1) hue-rotate(80deg) brightness(1.1);
}

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;
    border-color: #2b2f36;
}
body[data-theme="dark"] .cn-chip {
    background: #23272e;
    color: #e5e7eb;
}
body[data-theme="dark"] .cn-btn {
    background: #23272e;
    border-color: #3a414b;
    color: #e5e7eb;
}
body[data-theme="dark"] .cn-btn:hover {
    background: #2a2f36;
}
body[data-theme="dark"] .cn-btn.cn-pdf {
    background: #3b2323;
    border-color: #5b2a2a;
    color: #fca5a5;
}

body[data-theme="dark"] .offer-detail {
    color: #e5e7eb;
}
body[data-theme="dark"] .offer-detail .toggle-label,
body[data-theme="dark"] .offer-detail .public-item-config label {
    color: #e5e7eb;
}
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"] .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;
}
