/**
 * Light / dark color mode (works with Bootswatch Bootstrap 3 themes).
 * Active when <html data-color-mode="dark"> is set.
 */

html[data-color-mode="dark"] body,
html[data-color-mode="dark"] .wrapper {
    background-color: #1b1f24;
    color: #e8eaed;
}

html[data-color-mode="dark"] a {
    color: #8ab4f8;
}

html[data-color-mode="dark"] a:hover,
html[data-color-mode="dark"] a:focus {
    color: #aecbfa;
}

html[data-color-mode="dark"] .panel,
html[data-color-mode="dark"] .panel-default {
    background-color: #252a31;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] .panel-heading {
    background-color: #2f3640;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] .panel-footer {
    background-color: #2f3640;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .table {
    color: #e8eaed;
    background-color: #252a31;
}

html[data-color-mode="dark"] .table > thead > tr > th,
html[data-color-mode="dark"] .table > tbody > tr > th,
html[data-color-mode="dark"] .table > tfoot > tr > th,
html[data-color-mode="dark"] .table > thead > tr > td,
html[data-color-mode="dark"] .table > tbody > tr > td,
html[data-color-mode="dark"] .table > tfoot > tr > td {
    border-color: #3d444d;
}

html[data-color-mode="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #2a3038;
}

html[data-color-mode="dark"] .table-hover > tbody > tr:hover {
    background-color: #323a45;
}

html[data-color-mode="dark"] .form-control,
html[data-color-mode="dark"] .bootstrap-tagsinput,
html[data-color-mode="dark"] button.btn.dropdown-toggle.btn-sm {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .form-control:focus {
    border-color: #6b9bd1;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(107, 155, 209, 0.35);
}

html[data-color-mode="dark"] .input-group-addon {
    background-color: #2f3640;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .navbar-default {
    background-color: #252a31;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .navbar-default .navbar-brand,
html[data-color-mode="dark"] .navbar-default .navbar-nav > li > a {
    color: #e8eaed;
}

html[data-color-mode="dark"] .navbar-default .navbar-nav > .active > a,
html[data-color-mode="dark"] .navbar-default .navbar-nav > .active > a:hover,
html[data-color-mode="dark"] .navbar-default .navbar-nav > .active > a:focus {
    background-color: #1b1f24;
    color: #fff;
}

html[data-color-mode="dark"] .dropdown-menu {
    background-color: #252a31;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .dropdown-menu > li > a {
    color: #e8eaed;
}

html[data-color-mode="dark"] .dropdown-menu > li > a:hover,
html[data-color-mode="dark"] .dropdown-menu > li > a:focus {
    background-color: #323a45;
    color: #fff;
}

html[data-color-mode="dark"] .modal-content {
    background-color: #252a31;
    color: #e8eaed;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .modal-header,
html[data-color-mode="dark"] .modal-footer {
    border-color: #3d444d;
}

html[data-color-mode="dark"] .close {
    color: #e8eaed;
    opacity: 0.8;
}

html[data-color-mode="dark"] .well {
    background-color: #2a3038;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] .btn-default {
    background-color: #323a45;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .btn-default:hover,
html[data-color-mode="dark"] .btn-default:focus {
    background-color: #3d4654;
    border-color: #5c6775;
    color: #fff;
}

html[data-color-mode="dark"] #footer .jumbotron {
    background-color: #252a31;
    color: #9aa0a6;
}

html[data-color-mode="dark"] .fixed-table-container,
html[data-color-mode="dark"] .bootstrap-table .table {
    background-color: #252a31;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
    background: rgba(37, 42, 49, 0.94) !important;
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text {
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,
html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,
html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before {
    background: #e8eaed !important;
}

html[data-color-mode="dark"] .pagination > li > a,
html[data-color-mode="dark"] .pagination > li > span {
    background-color: #2f3640;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .alert {
    border-width: 1px;
}

html[data-color-mode="dark"] #register_wrapper,
html[data-color-mode="dark"] #overall_sale {
    color: #e8eaed;
}

html[data-color-mode="dark"] #mode_form .register-top-toolbar tr,
html[data-color-mode="dark"] #suspended_sales_table tr[style*="background"] {
    background-color: #3d444d !important;
}

html[data-color-mode="dark"] .control-label {
    color: #e8eaed;
}

html[data-color-mode="dark"] .text-muted {
    color: #9aa0a6 !important;
}

/* Login page (Bootstrap 5) */
html[data-color-mode="dark"] body.bg-secondary-subtle {
    background-color: #1b1f24 !important;
}

html[data-color-mode="dark"] .container-login,
html[data-color-mode="dark"] .footer.bg-body {
    background-color: #252a31 !important;
    color: #e8eaed;
}

html[data-color-mode="dark"] .container-login .form-control {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

#color_mode_toggle {
    color: #eee;
    padding: 0 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
}

#color_mode_toggle:hover,
#color_mode_toggle:focus {
    color: #fff;
    text-decoration: none;
}

/* Sales receipts (default / short / modern) */
html[data-color-mode="dark"] #receipt_wrapper,
html[data-color-mode="dark"] #receipt_wrapper #receipt_header,
html[data-color-mode="dark"] #receipt_wrapper #receipt_general_info,
html[data-color-mode="dark"] #receipt_wrapper #receipt_items {
    color: #e8eaed;
}

html[data-color-mode="dark"] #receipt_modern_wrapper {
    --receipt-muted: #9aa0a6;
    --receipt-surface: #252a31;
    --receipt-border: #c4c7cc;
    --receipt-dash: #3d444d;
    --receipt-outer-bg: #1b1f24;
    --receipt-text: #e8eaed;
}

html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-items th,
html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-items td {
    color: #e8eaed;
}

html[data-color-mode="dark"] #page-wrap,
html[data-color-mode="dark"] #page-wrap #header,
html[data-color-mode="dark"] #page-wrap table {
    color: #e8eaed;
}

/* Reports (listing, inputs, tabular, graphical, cash flow, transfers) */
html[data-color-mode="dark"] #page_title,
html[data-color-mode="dark"] #page_subtitle {
    color: #e8eaed;
}

html[data-color-mode="dark"] .panel-primary {
    border-color: #3d444d;
}

html[data-color-mode="dark"] .panel-primary > .panel-heading {
    background-color: #2a4a6b;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] .list-group-item {
    background-color: #252a31;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] a.list-group-item:hover,
html[data-color-mode="dark"] a.list-group-item:focus {
    background-color: #323a45;
    color: #fff;
}

html[data-color-mode="dark"] #report_summary,
html[data-color-mode="dark"] #chart_report_summary,
html[data-color-mode="dark"] #report_summary .summary_row,
html[data-color-mode="dark"] #chart_report_summary .summary_row {
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-toolbar .search input,
html[data-color-mode="dark"] .bootstrap-table .fixed-table-toolbar .columns .btn,
html[data-color-mode="dark"] .bootstrap-table .fixed-table-toolbar .export .btn {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-toolbar .columns .dropdown-menu label {
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table thead th,
html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table thead th .th-inner {
    background-color: #2f3640;
    color: #e8eaed;
}

html[data-color-mode="dark"] .fix-sticky table thead,
html[data-color-mode="dark"] .fix-sticky table thead.thead-light {
    background: #2f3640 !important;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table tbody tr.detail-view > td {
    background-color: #1f242b !important;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table tbody tr.detail-view .table {
    background-color: #252a31;
}

html[data-color-mode="dark"] .bootstrap-table .filter-control {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table tbody tr.no-records-found td {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .pagination > .active > a,
html[data-color-mode="dark"] .pagination > .active > span,
html[data-color-mode="dark"] .pagination > .active > a:hover,
html[data-color-mode="dark"] .pagination > .active > span:hover {
    background-color: #3d6a9e;
    border-color: #3d6a9e;
    color: #fff;
}

/* Chartist (graphical reports) */
html[data-color-mode="dark"] .ct-label {
    fill: #e8eaed;
    color: #e8eaed;
}

html[data-color-mode="dark"] .ct-grid {
    stroke: rgba(232, 234, 237, 0.2);
}

html[data-color-mode="dark"] .ct-chart-line .ct-point {
    stroke: #8ab4f8;
}

/* Date range picker (Items, Sales, Reports, Expenses, etc.) */
html[data-color-mode="dark"] .daterangepicker {
    background-color: #252a31;
    border-color: #3d444d;
    color: #e8eaed;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

html[data-color-mode="dark"] .daterangepicker:before {
    border-bottom-color: #3d444d;
}

html[data-color-mode="dark"] .daterangepicker:after {
    border-bottom-color: #252a31;
}

html[data-color-mode="dark"] .daterangepicker.dropup:before {
    border-top-color: #3d444d;
}

html[data-color-mode="dark"] .daterangepicker.dropup:after {
    border-top-color: #252a31;
}

html[data-color-mode="dark"] .daterangepicker .calendar-table {
    background-color: #252a31;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .daterangepicker .calendar th,
html[data-color-mode="dark"] .daterangepicker .calendar td {
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker th.month,
html[data-color-mode="dark"] .daterangepicker th.week,
html[data-color-mode="dark"] .daterangepicker td.week {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .daterangepicker td.available:hover,
html[data-color-mode="dark"] .daterangepicker th.available:hover {
    background-color: #323a45;
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker td.off,
html[data-color-mode="dark"] .daterangepicker td.off.in-range,
html[data-color-mode="dark"] .daterangepicker td.off.start-date,
html[data-color-mode="dark"] .daterangepicker td.off.end-date {
    background-color: #1f242b;
    color: #6b7280;
}

html[data-color-mode="dark"] .daterangepicker td.in-range {
    background-color: #323a45;
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker td.active,
html[data-color-mode="dark"] .daterangepicker td.active:hover {
    background-color: #3d6a9e;
    color: #fff;
}

html[data-color-mode="dark"] .daterangepicker td.disabled,
html[data-color-mode="dark"] .daterangepicker option.disabled {
    color: #6b7280;
}

html[data-color-mode="dark"] .daterangepicker .ranges li {
    background-color: #2f3640;
    border-color: #3d444d;
    color: #8ab4f8;
}

html[data-color-mode="dark"] .daterangepicker .ranges li:hover,
html[data-color-mode="dark"] .daterangepicker .ranges li.active {
    background-color: #3d6a9e;
    border-color: #3d6a9e;
    color: #fff;
}

html[data-color-mode="dark"] .daterangepicker .input-mini {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker .input-mini.active {
    border-color: #6b9bd1;
}

html[data-color-mode="dark"] .daterangepicker .calendar-time {
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker select.monthselect,
html[data-color-mode="dark"] .daterangepicker select.yearselect,
html[data-color-mode="dark"] .daterangepicker select.hourselect,
html[data-color-mode="dark"] .daterangepicker select.minuteselect,
html[data-color-mode="dark"] .daterangepicker select.secondselect,
html[data-color-mode="dark"] .daterangepicker select.ampmselect {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker .drp-buttons {
    border-top-color: #3d444d;
}

html[data-color-mode="dark"] .daterangepicker .drp-selected {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .daterangepicker .drp-buttons .btn {
    background-color: #2f3640;
    border-color: #4a5562;
    color: #e8eaed;
}

html[data-color-mode="dark"] .daterangepicker .drp-buttons .btn.btn-primary,
html[data-color-mode="dark"] .daterangepicker .drp-buttons .applyBtn {
    background-color: #3d6a9e;
    border-color: #3d6a9e;
    color: #fff;
}

html[data-color-mode="dark"] .daterangepicker .drp-buttons .btn:hover {
    background-color: #323a45;
    border-color: #6b9bd1;
    color: #e8eaed;
}

html[data-color-mode="dark"] #daterangepicker {
    background-color: #1f242b;
    border-color: #4a5562;
    color: #e8eaed;
}

/* Cash flow & transfer list report widgets */
html[data-color-mode="dark"] .cashflow-filters,
html[data-color-mode="dark"] .cashflow-remittance-meta {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .cashflow-summary-card {
    background: #252a31;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] .cashflow-summary-label {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .cashflow-formula {
    color: #e8eaed !important;
}

html[data-color-mode="dark"] .summary-card {
    background: #252a31;
    border-color: #3d444d;
}

html[data-color-mode="dark"] .summary-label {
    color: #9aa0a6;
}

html[data-color-mode="dark"] .summary-value {
    color: #e8eaed;
}

html[data-color-mode="dark"] .transfer-discrepancy {
    background-color: #4a3f1a !important;
    color: #f5e6b8;
}

/* Items modal: inventory data tracking (loads after bundled CSS) */
#items_count_details thead tr.inventory-tracking-title th {
    background-color: #6c757d;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

#items_count_details thead tr.inventory-tracking-columns th {
    background-color: #e9ecef;
    color: #212529;
    text-align: center;
    font-weight: bold;
}

html[data-color-mode="dark"] #items_count_details {
    color: #e8eaed;
    background-color: #252a31;
}

html[data-color-mode="dark"] #items_count_details thead tr.inventory-tracking-title th {
    background-color: #3d6a9e;
    color: #fff;
    border-color: #3d444d;
}

html[data-color-mode="dark"] #items_count_details thead tr.inventory-tracking-columns th {
    background-color: #2f3640;
    color: #e8eaed;
    border-color: #3d444d;
}

html[data-color-mode="dark"] #items_count_details.table > tbody > tr > td,
html[data-color-mode="dark"] #items_count_details.table > thead > tr > th {
    border-color: #3d444d;
}

html[data-color-mode="dark"] #items_count_details.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #2a3038;
}

html[data-color-mode="dark"] #items_count_details.table-hover > tbody > tr:hover {
    background-color: #323a45;
}

html[data-color-mode="dark"] #items_count_details td a {
    color: #8ab4f8;
}

/* Item kit modal — form layout + line items (loads after bundled CSS in production) */
#item_kit_form.item-kit-form.form-horizontal .control-label {
    text-align: right;
    padding-top: 7px;
    font-weight: 600;
}

#item_kit_form.item-kit-form .form-group {
    margin-bottom: 12px;
}

#item_kit_form.item-kit-form .form-group:last-child {
    margin-bottom: 0;
}

#item_kit_form.item-kit-form .item-kit-discount-field {
    max-width: 120px;
}

#item_kit_form.item-kit-form .item-kit-choice-row {
    padding-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: flex-start;
}

#item_kit_form.item-kit-form .item-kit-choice-row-stacked {
    flex-direction: column;
    gap: 6px;
}

#item_kit_form.item-kit-form label.item-kit-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.35;
}

#item_kit_form.item-kit-form label.item-kit-choice input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

#item_kit_form.item-kit-form .item-kit-lines-panel {
    margin-bottom: 0;
    border-color: #dce4ec;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
}

#item_kit_form.item-kit-form .item-kit-lines-panel-heading {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #ecf0f1;
    border-bottom: 1px solid #dce4ec;
    color: #2c3e50;
}

#item_kit_form.item-kit-form .item-kit-lines-panel-heading .glyphicon {
    margin-right: 6px;
    opacity: 0.85;
}

#item_kit_form.item-kit-form .item-kit-lines-panel > .panel-body {
    padding: 0;
}

#item_kit_form.item-kit-form .item-kit-add-row {
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#item_kit_form.item-kit-form .item-kit-lines-wrap {
    margin: 0;
    border: 0;
}

#item_kit_items.item-kit-lines-table {
    table-layout: fixed;
    width: 100%;
    margin: 0;
    font-size: 12px;
    background: #fff;
}

#item_kit_items.item-kit-lines-table col.item-kit-col-delete {
    width: 42px;
}

#item_kit_items.item-kit-lines-table col.item-kit-col-seq {
    width: 72px;
}

#item_kit_items.item-kit-lines-table col.item-kit-col-qty {
    width: 88px;
}

#item_kit_items.item-kit-lines-table thead tr.item-kit-lines-columns th {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    padding: 8px 6px;
    vertical-align: middle;
}

#item_kit_items.item-kit-lines-table tbody tr td {
    padding: 8px 6px;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
}

#item_kit_items.item-kit-lines-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#item_kit_items.item-kit-lines-table tbody tr:hover {
    background-color: #eef6fd;
}

#item_kit_items.item-kit-lines-table .item-kit-col-delete {
    text-align: center;
}

#item_kit_items.item-kit-lines-table .item-kit-col-delete a.item-kit-line-delete {
    color: #c0392b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    text-decoration: none;
}

#item_kit_items.item-kit-lines-table .item-kit-col-delete a.item-kit-line-delete:hover {
    background: rgba(192, 57, 43, 0.08);
    color: #a93226;
}

#item_kit_items.item-kit-lines-table .item-kit-col-seq,
#item_kit_items.item-kit-lines-table .item-kit-col-qty {
    text-align: center;
}

#item_kit_items.item-kit-lines-table .item-kit-col-name {
    text-align: left;
    word-break: break-word;
    padding-left: 10px;
    padding-right: 10px;
    color: #2c3e50;
}

#item_kit_items.item-kit-lines-table .form-control {
    width: 100%;
    min-width: 0;
    text-align: center;
    border-color: #bdc3c7;
    box-shadow: none;
}

#item_kit_items.item-kit-lines-table .form-control:focus {
    border-color: #2c3e50;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 2px rgba(44, 62, 80, 0.15);
}

#item_kit_form.item-kit-form .form-control.valid,
#item_kit_form.item-kit-form textarea.valid {
    border-color: #bdc3c7;
}

html[data-color-mode="dark"] #item_kit_form.item-kit-form .item-kit-lines-panel {
    border-color: #3d444d;
    background: #252a31;
}

html[data-color-mode="dark"] #item_kit_form.item-kit-form .item-kit-lines-panel-heading {
    background: #2f3640;
    border-bottom-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] #item_kit_form.item-kit-form .item-kit-add-row {
    background: #2a3038;
    border-bottom-color: #3d444d;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table {
    color: #e8eaed;
    background-color: #252a31;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table thead tr.item-kit-lines-columns th {
    background-color: #3d6a9e;
    color: #fff;
    border-color: #3d444d;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table tbody tr td {
    border-color: #3d444d;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table tbody tr:nth-child(even) {
    background-color: #2a3038;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table tbody tr:hover {
    background-color: #323a45;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table .item-kit-col-name {
    color: #e8eaed;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table .item-kit-col-delete a.item-kit-line-delete {
    color: #f28b82;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table .item-kit-col-delete a.item-kit-line-delete:hover {
    background: rgba(242, 139, 130, 0.12);
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table .form-control {
    background-color: #1e2228;
    border-color: #3d444d;
    color: #e8eaed;
}

html[data-color-mode="dark"] #item_kit_items.item-kit-lines-table .form-control:focus {
    border-color: #8ab4f8;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 2px rgba(138, 180, 248, 0.2);
}

html[data-color-mode="dark"] #item_kit_form.item-kit-form .form-control.valid,
html[data-color-mode="dark"] #item_kit_form.item-kit-form textarea.valid {
    border-color: #3d444d;
}

@media print {
    html[data-color-mode="dark"] #page_title,
    html[data-color-mode="dark"] #page_subtitle,
    html[data-color-mode="dark"] #report_summary,
    html[data-color-mode="dark"] #chart_report_summary {
        color: #000 !important;
    }

    html[data-color-mode="dark"] .bootstrap-table .fixed-table-container,
    html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table,
    html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table thead th,
    html[data-color-mode="dark"] .bootstrap-table .fixed-table-container .table tbody td {
        background-color: #fff !important;
        color: #000 !important;
    }

    html[data-color-mode="dark"] .ct-label {
        fill: #000;
        color: #000;
    }

    html[data-color-mode="dark"] #receipt_modern_wrapper {
        --receipt-surface: #fff;
        --receipt-outer-bg: #fff;
        --receipt-text: #111827;
        --receipt-muted: #6b7280;
        --receipt-border: #000;
        --receipt-dash: #eef2f7;
        background: #fff !important;
        color: #111827 !important;
    }

    html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-card {
        background: #fff !important;
        color: #111827 !important;
    }

    html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-items th,
    html[data-color-mode="dark"] #receipt_modern_wrapper .receipt-modern-items td {
        color: #111827 !important;
    }
}
