/* GENERATED by scripts/gen-dark-fixes.js — do not edit by hand; re-run the script after changing page styles.
   Dark-mode replacements for light-only colours hardcoded in page styles. Light mode is not affected. */

/* ── public/css/list-tools.css ── */
html[data-theme="dark"] body .list-table th {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .list-table a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .list-table .sub {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .th-sort:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .sort-ind {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .th-filter {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .th-filter:hover {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .th-filter.on {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
html[data-theme="dark"] body .filter-pop .fp-sort button {
  background: var(--clay-inset-bg);
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body .filter-pop .fp-list {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body .filter-pop label.all {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body .filter-pop .fp-blank {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .filter-pop .fp-n {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .fp-clear {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
}
html[data-theme="dark"] body .filter-bar {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .filter-bar a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .filter-bar .fb-count {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .pager button {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .pager button:hover:not(:disabled) {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .pager button.on {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body .pager .gap {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .pill.green {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body .pill.blue {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body .pill.amber {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body .pill.red {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .pill.grey {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .pill.purple {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body .thumb {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body .success-msg {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body .error-msg {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .btn-del {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .empty {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .f-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .f-group input[readonly] {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .f-group input.locked {
  background: var(--clay-inset-bg);
  color: var(--clay-secondary);
  border-color: var(--clay-line);
}
html[data-theme="dark"] body .f-group .bs-hint {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body .f-group .hint {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .req {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .btn-cancel {
  color: var(--clay-ink);
}
html[data-theme="dark"] body .btn-delete {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .pic-slot {
  border: 1.5px dashed var(--clay-line);
  background: var(--clay-panel);
}
html[data-theme="dark"] body .pic-slot .pic-label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .pic-slot .pic-preview {
  background: var(--clay-inset-bg) center/contain no-repeat;
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .pic-slot .pic-remove {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body .pic-slot .pic-status {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body .list-table a.qf:hover {
  color: var(--clay-danger-ink);
}

/* ── views/admin/nepalical.ejs ── */
html[data-theme="dark"] body.module-admin .cal-table input[type=number] {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .year-title h3 {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .cum-cell {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .month-card {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-admin .month-card label {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .month-card input {
  border: 1px solid var(--clay-line);
}

/* ── views/admin/products.ejs ── */
html[data-theme="dark"] body.module-admin .search-bar a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin tr.edit-row {
  background: var(--clay-success-bg);
}

/* ── views/admin/raw-material-receipt.ejs ── */
html[data-theme="dark"] body.module-admin .plan-table th {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
  border-bottom: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .plan-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .plan-table tr:hover td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-admin .cat-row td {
  background: var(--clay-accent-bg);
  color: var(--nd-dark-link);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .result-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .result-table tr:hover td {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-admin .result-table .cat-group td {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-admin .result-table .total-row td {
  background: var(--clay-warning-bg);
}
html[data-theme="dark"] body.module-admin .result-table .total-row td.num {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .summary-table .cat-group td {
  background: var(--clay-accent-bg);
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .summary-table .total-row td {
  background: var(--clay-warning-bg);
}
html[data-theme="dark"] body.module-admin .summary-table .total-row td.num {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .positive {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-admin .negative {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-admin .missing-note {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .empty-result {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .btn-clear {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .filter-bar label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .btn-filter-clear {
  color: var(--clay-ink);
}

/* ── views/admin/rawmaterials.ejs ── */
html[data-theme="dark"] body.module-admin .picklist-card h4 {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .picklist-add input {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .picklist-tag button {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .picklist-tag button:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-admin .picklist-empty {
  color: var(--clay-secondary);
}

/* ── views/admin/recipe-detail.ejs ── */
html[data-theme="dark"] body.module-admin .summary-table th {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .summary-table tr.product-row:hover td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-admin .cat-header td {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .positive {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-admin .negative {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-admin .missing-note {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .no-price {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .toggle-icon {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .ing-count {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .filter-bar label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .btn-filter-clear {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .detail-row td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-admin .ing-table th {
  color: var(--clay-secondary);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .ing-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .ing-table tr.sub-recipe-row td {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-admin .ing-empty {
  color: var(--clay-secondary);
}

/* ── views/admin/recipe-summary.ejs ── */
html[data-theme="dark"] body.module-admin .summary-table th {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .cat-header td {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .positive {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-admin .negative {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-admin .missing-note {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-admin .product-link {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .filter-bar label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .btn-filter-clear {
  color: var(--clay-ink);
}

/* ── views/admin/recipes.ejs ── */
html[data-theme="dark"] body.module-admin .recipe-group {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .recipe-group-header {
  background: var(--clay-inset-bg);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .recipe-group-header .product-category {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .base-row label {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .base-row input[type=number] {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .base-row select {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .scale-row {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-admin .scale-row label {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .scale-row .scale-result {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .recipe-table th {
  background: var(--clay-panel);
  color: var(--clay-secondary);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .recipe-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .scaled-qty {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .scaled-cost {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .no-price {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .recipe-totals {
  background: var(--clay-success-bg);
}
html[data-theme="dark"] body.module-admin .recipe-totals .tot-label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-admin .recipe-totals .tot-value {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-admin .recipe-totals .tot-scaled {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .recipe-empty {
  color: var(--clay-secondary);
}

/* ── views/admin/setup.ejs ── */
html[data-theme="dark"] body.module-admin .setup-card h3 {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-admin .form-group label {
  color: var(--clay-ink);
}

/* ── views/admin/users.ejs ── */
html[data-theme="dark"] body.module-admin .pw-form input {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-admin .pw-form input:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-admin .pw-label {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-admin .btn-pw-toggle {
  color: var(--nd-dark-link);
}

/* ── views/calendar.ejs ── */
html[data-theme="dark"] body.module-utilities .cal-nav-btn {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-bs-title {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-ad-title {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .cal-sel-row select {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .cal-sel-row select:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-utilities .cal-wh {
  color: var(--nd-dark-link);
  border-bottom: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .cal-wh .wh-np {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-wh .wh-en {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .cal-wh.sunday {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-utilities .cal-wh.sunday .wh-np {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-utilities .cal-wh.saturday {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-wh.saturday .wh-np {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-cell:hover {
  background: var(--clay-accent-bg);
  border-color: var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .cal-cell.sunday  .bs-d {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-utilities .cal-cell.saturday .bs-d {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .bs-d {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .ad-d {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .ad-d.month-change {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cell-note {
  color: var(--clay-success-ink);
  background: var(--clay-success-bg);
}
html[data-theme="dark"] body.module-utilities .note-panel {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-utilities .note-panel-title {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .note-panel-row input {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .note-panel-row input:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-utilities .note-char-count {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .note-del-btn {
  background: var(--clay-inset-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-utilities .note-del-btn:hover {
  background: var(--clay-danger-bg);
}
html[data-theme="dark"] body.module-utilities .notes-table-wrap h4 {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .notes-table th {
  background: var(--clay-accent-bg);
  color: var(--nd-dark-link);
  border-bottom: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .notes-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .notes-table tr:hover td {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-utilities .notes-empty {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .conv-section h4 {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .conv-field label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .conv-field select,
html[data-theme="dark"] body.module-utilities .conv-field input {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .conv-field select:focus,
html[data-theme="dark"] body.module-utilities .conv-field input:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-utilities .conv-result .r-main {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .conv-result .r-sub {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .conv-result .r-empty {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .today-link {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .cal-legend {
  color: var(--clay-secondary);
}

/* ── views/customers/form.ejs ── */
html[data-theme="dark"] body.module-customers .f-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .f-group input[readonly] {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .f-group input.locked {
  background: var(--clay-inset-bg);
  color: var(--clay-secondary);
  border-color: var(--clay-line);
}
html[data-theme="dark"] body.module-customers .btn-delete {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .map-pin a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .map-pin .muted {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .btn-cancel {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .error-msg {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .pic-slot {
  border: 1.5px dashed var(--clay-line);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-customers .pic-slot .pic-label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .pic-slot .pic-preview {
  background: var(--clay-inset-bg) center/contain no-repeat;
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .pic-slot .pic-remove {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .pic-slot .pic-status {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .pic-note {
  color: var(--clay-secondary);
}

/* ── views/customers/index.ejs ── */
html[data-theme="dark"] body.module-customers .btn-clear {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .btn-clear:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .cust-table th {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .cust-table a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .th-sort:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .sort-ind {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .th-filter {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .th-filter:hover {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .th-filter.on {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
html[data-theme="dark"] body.module-customers .filter-pop .fp-sort button {
  background: var(--clay-inset-bg);
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .filter-pop .fp-sort button:hover {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-customers .filter-pop .fp-list {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .filter-pop label.all {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .filter-pop .fp-blank {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .fp-clear {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .filter-bar {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .filter-bar a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .filter-bar .fb-count {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .filter-pop .fp-n {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .pager button {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .pager button:hover:not(:disabled) {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .pager button.on {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .pager .gap {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .success-msg {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-customers .error-msg {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .btn-del {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .btn-map {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .btn-map.on {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .btn-map:hover {
  color: #fff;
}
html[data-theme="dark"] body.module-customers .map-head {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .mk {
  border: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .mk-pop a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .mk-pics-lbl {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .mk-pics img {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .mk-pic-empty {
  border: 1px dashed var(--clay-line);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-customers .cust-table a.qf:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .cust-table a.btn-visit {
  color: var(--clay-success-ink);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-customers .cust-table a.btn-visit:hover {
  background: #059669;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .cust-table .btn-order {
  color: var(--clay-danger-ink);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-customers .cust-table .btn-order:hover,
html[data-theme="dark"] body.module-customers .cust-table .btn-order.open {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .order-menu {
  background: var(--clay-panel);
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .order-menu a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .order-menu a:hover {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .order-menu .om-head {
  color: var(--clay-secondary);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .order-menu .om-count {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .cust-table a.qf-sub {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .empty {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .customer-eyebrow {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-customers .customer-hero h2 {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .customer-subtitle {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .customer-stat strong {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .customer-stat small {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .customer-filter-card input,
html[data-theme="dark"] body.module-customers .customer-filter-card select {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .customer-filter-card .btn-clear,
html[data-theme="dark"] body.module-customers .btn-map {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body.module-customers .cust-table th {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body.module-customers .cust-table td {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-customers .cust-table td:nth-child(2) {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .cust-table a.qf:hover,
html[data-theme="dark"] body.module-customers .cust-table a.qf {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-customers .cust-table a {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-customers .th-sort:hover,
html[data-theme="dark"] body.module-customers .sort-ind,
html[data-theme="dark"] body.module-customers .filter-bar a {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body.module-customers .th-filter.on,
html[data-theme="dark"] body.module-customers .pager button.on {
  background: #218fc0 !important;
  border-color: #218fc0 !important;
  color: white !important;
}
html[data-theme="dark"] body.module-customers .cust-table a.btn-visit {
  background: var(--clay-success-bg);
}
html[data-theme="dark"] body.module-customers .customer-table-hint {
  color: var(--clay-secondary);
}

/* ── views/customers/setup.ejs ── */
html[data-theme="dark"] body.module-customers .tabs a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .tabs a.on {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .badge-y {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-customers .badge-n {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .alert-err {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .map-ic {
  border: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .hint {
  color: var(--clay-secondary);
}

/* ── views/customers/tracking-names.ejs ── */
html[data-theme="dark"] body.module-customers .tabs a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-customers .tabs a.on {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-customers .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-customers .badge-y {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-customers .badge-n {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .alert-err {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-customers .map-ic {
  border: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-customers .hint {
  color: var(--clay-secondary);
}

/* ── views/date-convert.ejs ── */
html[data-theme="dark"] body.module-utilities .dc-tab {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .dc-tab.active {
  color: #fff;
}
html[data-theme="dark"] body.module-utilities .dc-field label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .dc-field select,
html[data-theme="dark"] body.module-utilities .dc-field input {
  border: 1px solid var(--clay-line);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-utilities .dc-field select:focus,
html[data-theme="dark"] body.module-utilities .dc-field input:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-utilities .dc-result {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-utilities .dc-result .lbl {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .dc-result .val-np {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .dc-result .val-en {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .dc-result .val-ad {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .dc-empty {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .dc-today-btn {
  color: var(--nd-dark-link);
}

/* ── views/labelp.ejs ── */
html[data-theme="dark"] body.module-utilities .bread-label {
  color: var(--clay-ink);
}

/* ── views/orders/index.ejs ── */
html[data-theme="dark"] body.module-orders .orders-filters {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-orders .orders-filters label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-orders .orders-filters input,
html[data-theme="dark"] body.module-orders .orders-filters select {
  border: 1.5px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .orders-filters input:focus,
html[data-theme="dark"] body.module-orders .orders-filters select:focus {
  border-color: #c0392b;
}
html[data-theme="dark"] body.module-orders .clear-btn {
  color: var(--clay-danger-ink);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-orders .clear-btn:hover {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-orders .pivot-wrap {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-orders .pivot-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .pivot-table td.col-date {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-orders .pivot-table tr:last-child td {
  background: var(--clay-danger-bg);
}
html[data-theme="dark"] body.module-orders .pivot-table tr:hover td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-orders .pivot-cell-count {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-orders .pivot-cell-amt {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-orders .pivot-total-row td {
  background: var(--clay-danger-bg) !important;
}
html[data-theme="dark"] body.module-orders .pivot-bs {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-orders .pv-edit {
  color: var(--clay-warning-ink);
  background: var(--clay-warning-bg);
}
html[data-theme="dark"] body.module-orders .pv-edit:hover,
html[data-theme="dark"] body.module-orders .pv-edit.open {
  background: #92400e;
  color: #fff;
}
html[data-theme="dark"] body.module-orders .pv-menu {
  background: var(--clay-panel);
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .pv-menu .pv-head {
  color: var(--clay-secondary);
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .pv-menu a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-orders .pv-menu a:hover {
  background: var(--clay-warning-bg);
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-orders .pv-menu .pv-no {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-orders .pv-menu .pv-amt {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-orders .orders-table {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-orders .orders-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .orders-table tr:hover td {
  background: var(--clay-danger-bg);
}
html[data-theme="dark"] body.module-orders .status-New {
  background: var(--clay-accent-bg);
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-orders .status-Processing {
  background: var(--clay-warning-bg);
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-orders .status-Completed {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-orders .status-Cancelled {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-orders .status-form select {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-orders .pagination a,
html[data-theme="dark"] body.module-orders .pagination span {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-orders .pagination a:hover {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-orders .no-orders {
  color: var(--clay-secondary);
}

/* ── views/pricelist.ejs ── */
html[data-theme="dark"] body.module-utilities .pricelist-toolbar input,
html[data-theme="dark"] body.module-utilities .pricelist-toolbar select {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .price-mrp {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .price-ws {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .ms-btn.has-selection {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-utilities .ms-arrow {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-utilities .ms-option {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities th.sortable:hover {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-utilities .modal h3 {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-utilities .modal-grid label {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .modal-grid input,
html[data-theme="dark"] body.module-utilities .modal-grid textarea {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .btn-cancel {
  color: var(--clay-ink);
}

/* ── views/profile.ejs ── */
html[data-theme="dark"] body.module-utilities .pw-form input {
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-utilities .pw-form input:focus {
  border-color: #3f51b5;
}
html[data-theme="dark"] body.module-utilities .pw-label {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-utilities .btn-pw-toggle {
  color: var(--nd-dark-link);
}

/* ── views/rawmilk/create.ejs ── */
html[data-theme="dark"] body.module-rawmilk .f-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .f-group input.calc {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk .f-group select:disabled,
html[data-theme="dark"] body.module-rawmilk .f-group input:disabled {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body.module-rawmilk .btn-cancel {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-rawmilk .error-msg {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/gap-report.ejs ── */
html[data-theme="dark"] body.module-rawmilk .gap-filters label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .gap-filters .ndp-lbl {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-clear {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .tab-btn {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .tab-btn.active {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cl {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cb {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cr {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cd {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cg {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk tr.row-colhdr  th {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-rawmilk tr.row-field   td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk tr.row-subtotal td {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-rawmilk tr.row-diff    td {
  background: var(--clay-warning-bg);
}
html[data-theme="dark"] body.module-rawmilk tr.row-spacer  td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk #sum-colhdr th:hover {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-rawmilk .sort-ind {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/index.ejs ── */
html[data-theme="dark"] body.module-rawmilk .rm-filters label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .clear-btn {
  color: var(--clay-danger-ink);
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk .clear-btn:hover {
  background: #c0392b;
  color: #fff;
}
html[data-theme="dark"] body.module-rawmilk .summary-card .label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .rm-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-rawmilk .rm-table tbody tr:hover {
  background: var(--clay-danger-bg);
}
html[data-theme="dark"] body.module-rawmilk .rm-table tbody tr:nth-child(even) {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk .rm-table tbody tr:nth-child(even):hover {
  background: var(--clay-danger-bg);
}
html[data-theme="dark"] body.module-rawmilk .pagination {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .pagination a {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-rawmilk .pagination .current {
  background: #c0392b;
  color: #fff;
  border-radius: 5px;
}

/* ── views/rawmilk/setup/incharge.ejs ── */
html[data-theme="dark"] body.module-rawmilk .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .alert-err {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/setup/rate.ejs ── */
html[data-theme="dark"] body.module-rawmilk .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .badge-y {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk .badge-n {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .alert-err {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/setup/receive.ejs ── */
html[data-theme="dark"] body.module-rawmilk .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .badge-y {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk .badge-n {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .alert-err {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/setup/transport.ejs ── */
html[data-theme="dark"] body.module-rawmilk .setup-form h3 {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .form-group label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-cancel {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .badge-y {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk .badge-n {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .alert-err {
  color: var(--clay-danger-ink);
}

/* ── views/rawmilk/supply.ejs ── */
html[data-theme="dark"] body.module-rawmilk .gap-filters label {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .btn-clear {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .tab-btn {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-rawmilk .tab-btn.active {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cl {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cb {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cr {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cd {
  color: var(--clay-warning-ink);
}
html[data-theme="dark"] body.module-rawmilk .gap-tbl .cg {
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-rawmilk tr.row-colhdr  th {
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-rawmilk tr.row-field   td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk tr.row-subtotal td {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-rawmilk tr.row-tktotal td {
  background: var(--clay-success-bg);
}
html[data-theme="dark"] body.module-rawmilk tr.row-grand   td {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-rawmilk tr.row-spacer  td {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-rawmilk #sum-colhdr th:hover {
  background: var(--clay-accent-bg);
}
html[data-theme="dark"] body.module-rawmilk .sort-ind {
  color: var(--clay-danger-ink);
}

/* ── views/shop/home.ejs ── */
html[data-theme="dark"] body.module-shop .hero-cta {
  background: var(--clay-panel);
  color: var(--nd-dark-link);
}
html[data-theme="dark"] body.module-shop .feature-item {
  background: var(--clay-panel);
  border: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-shop .feature-item .f-title {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-shop .feature-item .f-desc {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-shop .section-header h2 {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-shop .category-card {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-shop .cat-dairy {
  background: linear-gradient(135deg, var(--clay-accent-bg), #bbdefb);
}
html[data-theme="dark"] body.module-shop .cat-cheese {
  background: linear-gradient(135deg, var(--clay-warning-bg), #ffe082);
}
html[data-theme="dark"] body.module-shop .cat-ice {
  background: linear-gradient(135deg, var(--clay-success-bg), #a5d6a7);
}
html[data-theme="dark"] body.module-shop .cat-sweets {
  background: linear-gradient(135deg, var(--clay-danger-bg), #f48fb1);
}
html[data-theme="dark"] body.module-shop .cat-bakery {
  background: linear-gradient(135deg, var(--clay-warning-bg), #ffcc80);
}
html[data-theme="dark"] body.module-shop .cat-count {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-shop .cat-arrow {
  color: var(--nd-dark-link);
}

/* ── views/visits/form.ejs ── */
html[data-theme="dark"] body.module-visits .gps-status {
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-visits .gps-status.bad {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-visits .dist-box {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-visits .dist-box.ok {
  background: var(--clay-success-bg);
  color: var(--clay-success-ink);
}
html[data-theme="dark"] body.module-visits .dist-box.far {
  background: var(--clay-danger-bg);
  color: var(--clay-danger-ink);
}

/* ── views/visits/index.ejs ── */
html[data-theme="dark"] body.module-visits .vmap-sub {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-visits .vmap-close {
  background: var(--clay-inset-bg);
}
html[data-theme="dark"] body.module-visits .vmap-foot a {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-visits .vpin {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-visits .list-table a.qf-sub {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-visits .vsum-note {
  color: var(--clay-secondary);
}
html[data-theme="dark"] body.module-visits .vsum-table th,
html[data-theme="dark"] body.module-visits .vsum-table td {
  border-bottom: 1px solid var(--clay-line);
}
html[data-theme="dark"] body.module-visits .vsum-table thead th {
  background: var(--clay-inset-bg);
  color: var(--clay-ink);
}
html[data-theme="dark"] body.module-visits .vsum-table tfoot td {
  border-top: 2px solid var(--clay-line);
}
html[data-theme="dark"] body.module-visits .vsum-table td.total {
  background: var(--clay-panel);
}
html[data-theme="dark"] body.module-visits .vsum-table a.vsum-n {
  color: var(--clay-danger-ink);
}
html[data-theme="dark"] body.module-visits .vsum-table a.vsum-n:hover {
  background: var(--clay-danger-bg);
}

/* ── inline style="" attributes (exact match) ── */
html[data-theme="dark"] body [style="width:60px;padding:4px 6px;border:1px solid #ccc;border-radius:4px;text-align:center"] {
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="background:#e8eaf6;font-weight:700"] {
  background: var(--clay-accent-bg) !important;
}
html[data-theme="dark"] body [style="font-size:13px;font-weight:normal;color:#888;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="text-decoration:none;padding:6px 14px;font-size:14px;background:#e3f2fd;color:#1565c0;border-radius:4px;"] {
  background: var(--clay-accent-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="text-decoration:none;padding:6px 14px;font-size:14px;background:#f5f5f5;color:#555;border-radius:4px;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="padding:6px 14px;font-size:14px;background:#fff3e0;color:#e65100;border:1px solid #ffcc80;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-warning-bg) !important;
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="padding:6px 14px;font-size:14px;background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-success-bg) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="padding:6px 14px;font-size:14px;background:#f3e5f5;color:#6a1b9a;border:1px solid #ce93d8;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-accent-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#9e9e9e;font-style:italic;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:13px;color:#757575;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:13px;color:#555;margin-bottom:8px;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="padding:5px 12px;font-size:13px;background:#f3e5f5;color:#6a1b9a;border:1px solid #ce93d8;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-accent-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#888;font-size:11px;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#bbb;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#e65100;"] {
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="font-size:11px;color:#888;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#1976d2;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="padding:8px 14px;font-size:12px;color:#e65100;margin:0;"] {
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="text-decoration:none;padding:6px 14px;font-size:14px;background:#e8f5e9;color:#388e3c;border-radius:4px;"] {
  background: var(--clay-success-bg) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="padding:6px 10px;font-size:13px;border:1px solid #ccc;border-radius:4px;min-width:220px;"] {
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="display:none;padding:14px;color:#9e9e9e;font-style:italic;margin:0;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="background:#fff;border-radius:8px;padding:28px 28px 20px;width:100%;max-width:440px;box-shadow:0 4px 24px rgba(0,0,0,.18);"] {
  background: var(--clay-panel) !important;
}
html[data-theme="dark"] body [style="padding:7px 18px;border:1px solid #ccc;background:#f5f5f5;border-radius:4px;cursor:pointer;"] {
  border: 1px solid var(--clay-line) !important;
  background: var(--clay-inset-bg) !important;
}
html[data-theme="dark"] body [style="padding:6px 14px;font-size:14px;background:#e8f5e9;color:#388e3c;border:1px solid #a5d6a7;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-success-bg) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="padding:6px 14px;font-size:14px;background:#f5f5f5;color:#555;border:1px solid #ccc;border-radius:4px;cursor:pointer;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--clay-ink) !important;
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="text-decoration:none;padding:6px 14px;font-size:14px;background:#fff3e0;color:#e65100;border:1px solid #ffcc80;border-radius:4px;"] {
  background: var(--clay-warning-bg) !important;
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="padding:20px;color:#9e9e9e;font-style:italic;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:11px;color:#90a4ae;margin-left:4px;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-top:1px solid #f0f0f0;font-size:13px;color:#555;"] {
  border-top: 1px solid var(--clay-line) !important;
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="font-size:13px;font-weight:400;color:#757575;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#e53935;font-size:14px;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="background:#f5f5f5;color:#555;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="background:#f5f5f5;color:#1565c0;font-weight:600;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#888;font-size:14px;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#e53935;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-size:13px;color:#555;margin:0 0 12px;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="font-size:13px;font-weight:400;color:#2e7d32;margin-left:8px;"] {
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="background:#e8f5e9;color:#2e7d32;padding:3px 10px;border-radius:12px;font-size:13px;"] {
  background: var(--clay-success-bg) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#e53935;font-size:12px;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-size:13px;color:#1565c0;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="display:none;width:72px;padding:3px 6px;font-size:13px;border:1px solid #ccc;border-radius:4px;"] {
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="display:none;padding:3px 6px;font-size:13px;border:1px solid #ccc;border-radius:4px;"] {
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="display:none;width:100px;padding:3px 6px;font-size:13px;border:1px solid #ccc;border-radius:4px;"] {
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="background:#e3f2fd;color:#0d47a1;font-size:12px;font-weight:600;padding:5px 12px;border-top:2px solid #90caf9;"] {
  background: var(--clay-accent-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="background:#f3f8ff;"] {
  background: var(--clay-accent-bg) !important;
}
html[data-theme="dark"] body [style="font-size:11px;color:#90a4ae;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#e65100;font-weight:400;font-size:11px;"] {
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="font-size:14px;color:#888"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:10px;background:#e8f5e9;color:#2e7d32;border-radius:3px;padding:1px 4px"] {
  background: var(--clay-success-bg) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#aaa;font-weight:400"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#c0392b"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-weight:400;color:#c0392b;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-size:0.78rem;color:#6b7280;margin-top:1rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#6b7280;font-weight:400;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#6b7280;font-size:0.85rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="background:#f3f4f6;text-align:left;"] {
  background: var(--clay-inset-bg) !important;
}
html[data-theme="dark"] body [style="border-top:1px solid #f1f1f1;"] {
  border-top: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="color:#c0392b;font-weight:600;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="border:1px solid #c0392b;color:#c0392b;padding:4px 10px;border-radius:6px;text-decoration:none;font-weight:600;font-size:0.8rem;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="color:#92400e;font-size:0.72rem;"] {
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="color:#9ca3af;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#1e40af;font-size:0.72rem;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#6b7280;font-size:0.72rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="text-align:center;color:#9ca3af;padding:2rem"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="margin-top:10px;padding-top:10px;border-top:1px solid #c5cae9"] {
  border-top: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="font-size:0.75rem;color:#6b7280;margin:8px 0 0;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.9rem;color:#6b7280;font-weight:400;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.8rem;color:#6b7280;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#dc2626;font-weight:700;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-size:0.75rem;color:#9ca3af;margin-top:8px;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#c0392b;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="color:#dc2626;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="background:#fff;border:1.5px solid #c0392b;color:#c0392b;padding:7px 16px;border-radius:6px;font-size:0.85rem;font-weight:600;cursor:pointer;"] {
  background: var(--clay-panel) !important;
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="color:#9ca3af;font-style:italic;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:10px 14px;border-radius:8px;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:0.88rem;"] {
  background: var(--clay-success-bg) !important;
  border: 1px solid var(--clay-line) !important;
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#065f46;"] {
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#065f46;font-weight:700;"] {
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#374151;font-weight:600;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="font-size:0.78rem;color:#c0392b;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="font-weight:600;color:#c0392b;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="display:block;font-size:0.75rem;color:#6b7280;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-weight:600;color:#c0392b;text-decoration:none;border-bottom:1px dotted #c0392b;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="display:inline-block;margin-top:3px;padding:1px 7px;border:1px solid #92400e;border-radius:5px;color:#92400e;background:#fffbeb;font-size:0.7rem;font-weight:700;text-decoration:none;"] {
  color: var(--clay-warning-ink) !important;
  background: var(--clay-warning-bg) !important;
}
html[data-theme="dark"] body [style="color:#888;font-size:11px;min-width:60px"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#888"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#888;font-size:13px;margin:0;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:13px;color:#555;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="background:#f5f5f5;color:#888;cursor:not-allowed;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="background:#f9fafb;"] {
  background: var(--clay-panel) !important;
}
html[data-theme="dark"] body [style="text-align:center;padding:3rem;color:#9ca3af;font-size:0.95rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="text-align:center;padding:3rem;color:#9ca3af;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="background:#e5e7eb;border:none;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:0.875rem;"] {
  background: var(--clay-inset-bg) !important;
}
html[data-theme="dark"] body [style="min-width:150px;background:#f9fafb;color:#374151;cursor:default;"] {
  background: var(--clay-panel) !important;
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="color:#111;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="color:#1d4ed8;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#059669;"] {
  color: var(--clay-success-ink) !important;
}
html[data-theme="dark"] body [style="color:#7c3aed;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#0891b2;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#92400e;"] {
  color: var(--clay-warning-ink) !important;
}
html[data-theme="dark"] body [style="color:#374151;"] {
  color: var(--clay-ink) !important;
}
html[data-theme="dark"] body [style="padding:20px;text-align:center;color:#9ca3af;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="color:#c0392b;font-weight:600;text-decoration:none;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="background:#f9fafb;color:#9ca3af"] {
  background: var(--clay-panel) !important;
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.78rem;color:#6b7280;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.72rem;color:#6b7280;font-weight:400;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.8rem;color:#92400e;background:#fffbeb;border:1px solid #fcd34d;padding:6px 10px;border-radius:6px;margin:0 0 10px;"] {
  color: var(--clay-warning-ink) !important;
  background: var(--clay-warning-bg) !important;
}
html[data-theme="dark"] body [style="font-size:0.8rem;color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;padding:6px 10px;border-radius:6px;margin:0 0 10px;"] {
  color: var(--clay-success-ink) !important;
  background: var(--clay-success-bg) !important;
  border: 1px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="color:#6b7280;font-size:0.8rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="display:flex;align-items:center;gap:8px;padding:9px 12px;border:1.5px solid #e5e7eb;border-radius:6px;cursor:pointer;background:#fff;user-select:none;"] {
  border: 1.5px solid var(--clay-line) !important;
  background: var(--clay-panel) !important;
}
html[data-theme="dark"] body [style="color:#6b7280;font-size:0.78rem;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="display:none;margin-top:8px;background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,0.12);"] {
  background: var(--clay-panel) !important;
  border: 1.5px solid var(--clay-line) !important;
}
html[data-theme="dark"] body [style="background:#f3f4f6;border:none;border-radius:6px;padding:5px 10px;font-weight:700;cursor:pointer;color:#1a237e;"] {
  background: var(--clay-inset-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="font-size:1rem;font-weight:700;color:#1a237e;"] {
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="font-size:0.72rem;color:#9ca3af;margin-top:1px;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="margin-top:10px;padding:8px 10px;background:#e8eaf6;border-radius:7px;border-left:3px solid #c0392b;display:none;font-size:0.82rem;color:#1a237e;"] {
  background: var(--clay-accent-bg) !important;
  color: var(--nd-dark-link) !important;
}
html[data-theme="dark"] body [style="color:#c0392b;font-weight:700;"] {
  color: var(--clay-danger-ink) !important;
}
html[data-theme="dark"] body [style="margin-top:1.5rem;font-size:0.85rem;color:#6b7280;"] {
  color: var(--clay-secondary) !important;
}
html[data-theme="dark"] body [style="font-size:0.8rem;color:#c0392b;font-weight:600;display:none;"] {
  color: var(--clay-danger-ink) !important;
}
