/* Cactus ERP Online v1.5.95 · reparación visual consolidada para modo oscuro */
@media screen {
  /* -------- Dashboard y vacíos -------- */
  html body.cactus-dark #app .cx156-empty,
  html body.cactus-dark #app .empty{
    background:#171b22!important;
    border:1px solid #39414d!important;
    border-radius:12px!important;
    color:#d3dae4!important;
  }
  html body.cactus-dark #app .cx156-empty strong,
  html body.cactus-dark #app .empty strong{color:#f5f7fb!important}
  html body.cactus-dark #app .cx156-empty span,
  html body.cactus-dark #app .empty span,
  html body.cactus-dark #app .cx156-empty small,
  html body.cactus-dark #app .empty small{color:#b7bfca!important}

  /* -------- Cobranzas -------- */
  html body.cactus-dark #app .cx88-kpis article,
  html body.cactus-dark #app .cx88-no-plan-grid button,
  html body.cactus-dark #app .cx88-dashboard-alert{
    background:#171b22!important;
    border-color:#3b4350!important;
    color:#eef1f6!important;
    box-shadow:none!important;
  }
  html body.cactus-dark #app .cx88-kpis article.danger{border-left-color:#d26a6a!important}
  html body.cactus-dark #app .cx88-kpis article.warn{border-left-color:#e1ae48!important}
  html body.cactus-dark #app .cx88-kpis span,
  html body.cactus-dark #app .cx88-kpis small,
  html body.cactus-dark #app .cx88-no-plan-grid span,
  html body.cactus-dark #app .cx88-hero p,
  html body.cactus-dark #app .cx88-dashboard-main p{color:#b4bdc8!important}
  html body.cactus-dark #app .cx88-kpis strong,
  html body.cactus-dark #app .cx88-no-plan-grid strong,
  html body.cactus-dark #app .cx88-hero h2,
  html body.cactus-dark #app .cx88-dashboard-main h3{color:#f6f8fb!important}
  html body.cactus-dark #app .cx88-filters button{
    background:#1d2129!important;
    border-color:#3b4350!important;
    color:#d7dde6!important;
  }
  html body.cactus-dark #app .cx88-filters button.active{
    background:#2b2140!important;
    border-color:#8d63e8!important;
    color:#e0c8ff!important;
  }
  html body.cactus-dark #app .cx88-table-panel table tbody tr:hover{background:#1e232d!important}
  html body.cactus-dark #app .cx88-status.cx88-paid{background:#173025!important;color:#a6e6ba!important}
  html body.cactus-dark #app .cx88-status.cx88-overdue{background:#442328!important;color:#ffb0b0!important}
  html body.cactus-dark #app .cx88-status.cx88-today,
  html body.cactus-dark #app .cx88-status.cx88-soon{background:#44351b!important;color:#ffd989!important}
  html body.cactus-dark #app .cx88-status.cx88-pending{background:#2c313b!important;color:#e4e8ef!important}
  html body.cactus-dark #app .cx88-nav-count{background:#4b2629!important;color:#ffc8c8!important}

  /* -------- OT · productos / ficha técnica -------- */
  html body.cactus-dark #app .ot-files-panel{background:transparent!important;border:0!important;box-shadow:none!important}
  html body.cactus-dark #app .ot81-main-head,
  html body.cactus-dark #app .ot81-product,
  html body.cactus-dark .ot81-modal-card{
    background:#1a1e25!important;
    border-color:#3a424e!important;
    color:#eef1f6!important;
    box-shadow:none!important;
  }
  html body.cactus-dark #app .ot81-product-head,
  html body.cactus-dark .ot81-modal-head{border-bottom-color:#353d49!important}
  html body.cactus-dark #app .ot81-product h4,
  html body.cactus-dark #app .ot81-main-head h3,
  html body.cactus-dark .ot81-modal-head h3,
  html body.cactus-dark #app .ot81-info strong,
  html body.cactus-dark #app .ot81-spec strong,
  html body.cactus-dark #app .ot81-description p,
  html body.cactus-dark #app .ot81-note p{color:#f5f7fb!important}
  html body.cactus-dark #app .ot81-kicker,
  html body.cactus-dark #app .ot81-section-title,
  html body.cactus-dark #app .ot81-description>span,
  html body.cactus-dark #app .ot81-note>span,
  html body.cactus-dark #app .ot81-info span,
  html body.cactus-dark #app .ot81-spec span,
  html body.cactus-dark #app .ot81-tech-head p,
  html body.cactus-dark #app .ot81-empty,
  html body.cactus-dark #app .ot81-updated,
  html body.cactus-dark .ot81-modal-head p,
  html body.cactus-dark .ot81-form-grid label{color:#b8c0cb!important}
  html body.cactus-dark #app .ot81-tabs{background:#12161c!important}
  html body.cactus-dark #app .ot81-tabs button{color:#bcc4cf!important}
  html body.cactus-dark #app .ot81-tabs button.is-active{background:#2a303a!important;color:#dcc4ff!important;box-shadow:none!important}
  html body.cactus-dark #app .ot81-description,
  html body.cactus-dark #app .ot81-note,
  html body.cactus-dark #app .ot81-info,
  html body.cactus-dark #app .ot81-spec{background:#14181f!important;border-color:#3a424e!important}
  html body.cactus-dark #app .ot81-spec{border-left-color:#ad81ff!important}
  html body.cactus-dark #app .ot81-item-no{background:#35284d!important;color:#dcc4ff!important}
  html body.cactus-dark .ot81-x{background:#242933!important;color:#eef1f6!important}

  /* -------- OT · Administración y pagos -------- */
  html body.cactus-dark #app .ot85-summary>div,
  html body.cactus-dark .ot85-kpis>div,
  html body.cactus-dark .ot85-total-note,
  html body.cactus-dark .ot85-list-row,
  html body.cactus-dark .ot85-card,
  html body.cactus-dark .ot85-section{
    background:#171b22!important;
    border-color:#3b4350!important;
    color:#eef1f6!important;
  }
  html body.cactus-dark #app .ot85-summary span,
  html body.cactus-dark .ot85-kpis span,
  html body.cactus-dark .ot85-list-row span,
  html body.cactus-dark .ot85-empty,
  html body.cactus-dark .ot85-section-head p{color:#b6bec9!important}
  html body.cactus-dark #app .ot85-summary strong,
  html body.cactus-dark .ot85-kpis strong,
  html body.cactus-dark .ot85-list-row strong,
  html body.cactus-dark .ot85-section-head h4,
  html body.cactus-dark .ot85-modal-head h3{color:#f5f7fb!important}
  html body.cactus-dark #app .ot85-balance{color:#ffb191!important}
  html body.cactus-dark #app .ot85-chip,
  html body.cactus-dark .ot85-chip{background:#242933!important;color:#dce1e8!important;border:1px solid #3b4350!important}
  html body.cactus-dark #app .ot85-chip.warn,
  html body.cactus-dark .ot85-chip.warn{background:#3a2e1a!important;color:#ffd784!important;border-color:#68552b!important}
  html body.cactus-dark #app .ot85-chip.ok,
  html body.cactus-dark .ot85-chip.ok{background:#173025!important;color:#a6e6ba!important;border-color:#315d42!important}

  /* -------- Generar OT · preview del comprobante -------- */
  html body.cactus-dark .cx1535-card,
  html body.cactus-dark .cx1535-step,
  html body.cactus-dark .cx1535-note,
  html body.cactus-dark .cx1593-payment-preview,
  html body.cactus-dark .cx1593-preview-head{
    background:#171b22!important;
    border-color:#3b4350!important;
    color:#eef1f6!important;
  }
  html body.cactus-dark .cx1593-preview-empty,
  html body.cactus-dark .cx1593-preview-error{color:#bcc4cf!important}
  html body.cactus-dark .cx1593-preview-empty strong,
  html body.cactus-dark .cx1593-preview-error strong,
  html body.cactus-dark .cx1593-preview-head strong{color:#f5f7fb!important}
  html body.cactus-dark .cx1593-preview-head span,
  html body.cactus-dark .cx1593-proof-field small{color:#b7bfca!important}

  /* -------- Constructor de productos / configurador -------- */
  html body.cactus-dark #app .selected-product,
  html body.cactus-dark #app .product-portability-tools,
  html body.cactus-dark #app .products-import-bar,
  html body.cactus-dark #app .backup-action,
  html body.cactus-dark #app .backup-status,
  html body.cactus-dark #app .engine-pricing-strategy,
  html body.cactus-dark #app .engine-matrix-table,
  html body.cactus-dark #app .engine-matrix-table-wrap,
  html body.cactus-dark #app .engine-matrix-empty,
  html body.cactus-dark #app .engine-dependency-box,
  html body.cactus-dark #app .engine-dependency-config,
  html body.cactus-dark #app .engine-dependency-rule,
  html body.cactus-dark #app .engine-dependent-empty,
  html body.cactus-dark #app .engine-preview-drop,
  html body.cactus-dark #app .engine-preview-order-hint,
  html body.cactus-dark #app .engine-preview-reorderbar,
  html body.cactus-dark #app .engine-missing-price,
  html body.cactus-dark #app .online-info-grid>div{
    background:#171b22!important;
    border-color:#3b4350!important;
    color:#eef1f6!important;
    box-shadow:none!important;
  }
  html body.cactus-dark #app .product-portability-tools span,
  html body.cactus-dark #app .products-import-bar span,
  html body.cactus-dark #app .backup-action span,
  html body.cactus-dark #app .backup-status span,
  html body.cactus-dark #app .backup-status small,
  html body.cactus-dark #app .engine-preview-empty,
  html body.cactus-dark #app .engine-matrix-empty,
  html body.cactus-dark #app .engine-dependency-help,
  html body.cactus-dark #app .engine-dependent-empty,
  html body.cactus-dark #app .online-info-grid span,
  html body.cactus-dark #app .update-steps span{color:#b5bdc8!important}
  html body.cactus-dark #app .product-portability-tools strong,
  html body.cactus-dark #app .products-import-bar strong,
  html body.cactus-dark #app .backup-action strong,
  html body.cactus-dark #app .engine-choice,
  html body.cactus-dark #app .engine-matrix-choice,
  html body.cactus-dark #app .online-info-grid strong,
  html body.cactus-dark #app .update-steps b{color:#f5f7fb!important}
  html body.cactus-dark #app .engine-preview-step,
  html body.cactus-dark #app .engine-add-variable-bottom,
  html body.cactus-dark #app .engine-preview-drag-handle,
  html body.cactus-dark #app .engine-dependent-select-wrap select,
  html body.cactus-dark #app .backup-action,
  html body.cactus-dark #app .ot86-file-btn{
    background:#232933!important;
    border-color:#4a5464!important;
    color:#eef1f6!important;
  }
  html body.cactus-dark #app .engine-preview-step:hover:not(:disabled),
  html body.cactus-dark #app .engine-add-variable-bottom:hover,
  html body.cactus-dark #app .backup-action:hover{background:#2b313d!important;color:#fff!important}
  html body.cactus-dark #app .engine-preview-order-hint span,
  html body.cactus-dark #app .update-steps b{background:#34264d!important;color:#dcc4ff!important}
  html body.cactus-dark #app .engine-matrix-table th{background:#1d2129!important;color:#c5ccd7!important;border-bottom-color:#39414d!important}
  html body.cactus-dark #app .engine-matrix-money span,
  html body.cactus-dark #app .engine-matrix-table [data-matrix-gross]{color:#b5bdc8!important}
  html body.cactus-dark #app .engine-missing-price{background:#422329!important;border-color:#6e404b!important;color:#ffb2bb!important}
  html body.cactus-dark #app .auto-sku-input{background:#20242d!important;color:#eef1f6!important}

  /* -------- Botones / paneles genéricos que seguían claros -------- */
  html body.cactus-dark #app .btn-secondary,
  html body.cactus-dark #app button[data-open-wo]{border-color:#4a5464!important}
}
