/* GENERADO por tools/build-dark.cjs — no editar a mano. Fuentes: app.css, refinements.css, gastos.css. */
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #dbe5ff; --blue: #6c9bff; --blue-soft: rgba(108, 155, 255, .14);
  --canvas: #0b1020; --surface: #121a2b; --muted: #9aa8c2; --text: #e7ecf6; --line: #263249;
  --green: #3ecf8e; --green-soft: rgba(62, 207, 142, .14); --amber: #f6b54a; --amber-soft: rgba(246, 181, 74, .14);
  --red: #ff6b81; --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  /* Paleta de gráficos validada para fondo oscuro (slots 1-4, mismo orden que en claro). */
  --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500;
}
html[data-theme="dark"] body { background: #0b1020; color: #e7ecf6; }
html[data-theme="dark"] .viz-root { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; }
html[data-theme="dark"] img { filter: none; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme: dark; }
html[data-theme="dark"] ::placeholder { color: #6f7d97; }
html[data-theme="dark"] ::-webkit-scrollbar { width: 11px; height: 11px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3650; border-radius: 99px; border: 3px solid #0b1020; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }

/* ---- app.css ---- */
html[data-theme="dark"] .nav-link { color: #9ba3b1 }
html[data-theme="dark"] .nav-link:hover { background-color: #0f1524 }
html[data-theme="dark"] .prototype-badge { background-color: #111622 }
html[data-theme="dark"] .icon-button { color: #9ca4b1 }
html[data-theme="dark"] .user-avatar { background-color: #141c2a }
html[data-theme="dark"] .button { color: #929caf }
html[data-theme="dark"] .button.primary { color: #ffffff; box-shadow: 0 7px 14px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .button.primary:hover { background-color: #235edc }
html[data-theme="dark"] .button.secondary { border-color: #304469 }
html[data-theme="dark"] .button.ghost { color: #a1a8b2 }
html[data-theme="dark"] .notice { border: 1px solid #2a406f; color: #8e9eb6; background-color: #0f1624 }
html[data-theme="dark"] .chart-empty { border: 1px dashed #374862 }
html[data-theme="dark"] .quick button { color: #99a2b0 }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { border: 1px solid #3b495e }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.286) }
html[data-theme="dark"] th { color: #a5abb5; background-color: #111622 }
html[data-theme="dark"] td { color: #99a2b0 }
html[data-theme="dark"] .pill.draft { color: #9da5b2; background-color: #191e25 }
html[data-theme="dark"] .steps:before { background-color: #1d242d }
html[data-theme="dark"] .step { color: #a8aeb8 }
html[data-theme="dark"] .step i { border: 1px solid #3a495f; color: #a3aab5 }
html[data-theme="dark"] .step.active i { color: #ffffff }
html[data-theme="dark"] .field { color: #d7dce3 }
html[data-theme="dark"] .item-empty { border: 1px dashed #394960; background-color: #10141f }
html[data-theme="dark"] .review-note { border: 1px solid #2a436f; color: #93a3b5; background-color: #0f1624 }
html[data-theme="dark"] .summary-values p { color: #a0a7b3 }
html[data-theme="dark"] .modal { box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55) }
html[data-theme="dark"] .modal:backdrop { background-color: rgba(8, 27, 59, 0.72) }
html[data-theme="dark"] .modal-note { color: #93a3b5; background-color: #0f1624 }
html[data-theme="dark"] .toast { color: #ffffff; box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55) }
html[data-theme="dark"] :focus-visible { outline: 3px solid rgba(59, 115, 237, 0.42) }

/* ---- refinements.css ---- */
html[data-theme="dark"] .chart-grid { stroke: #1f2631 }
html[data-theme="dark"] .quote-top .back-button { background-color: #0f131d }
html[data-theme="dark"] .quote-top .back-button:hover { border-color: #2a406f }
html[data-theme="dark"] .quote-head .pill.draft { color: #fbb356; background-color: #352a15 }
html[data-theme="dark"] .item-preview { border: 1px solid #334766; background-color: #10141f }
html[data-theme="dark"] .independent-product { border: 1px dashed #2a426f; background-color: #111521 }
html[data-theme="dark"] .payment-grid { background-color: #10141f }
html[data-theme="dark"] .payment-row label { color: #d7dce3 }
html[data-theme="dark"] .final-summary { border: 1px solid #334766; background-color: #1e2836 }
html[data-theme="dark"] .final-summary>div { background-color: #10141f }
html[data-theme="dark"] .final-summary .summary-total { color: #ffffff }
html[data-theme="dark"] .final-summary .summary-total span, html[data-theme="dark"] .final-summary .summary-total b { color: #ffffff }
html[data-theme="dark"] .danger-action:hover { color: #db828f; background-color: #271013 }
html[data-theme="dark"] .modal:backdrop { background-color: rgba(5, 18, 45, 0.75) }
html[data-theme="dark"] .modal { border-color: #2b436e }
html[data-theme="dark"] .modal-flow i { background-color: #191e25 }
html[data-theme="dark"] .modal-flow .active i { color: #ffffff }
html[data-theme="dark"] .modal-product-list { background-color: #10141f }
html[data-theme="dark"] .calculation-grid { border: 1px solid #314768; background-color: #111521 }
html[data-theme="dark"] .modal-total { border-top: 1px solid #314768 }
html[data-theme="dark"] .modal-flow:before { background-color: #1c2431 }
html[data-theme="dark"] .modal-flow i { border: 1px solid #354864; background-color: #0f131d; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .modal-flow .active i { box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.6),0 0 0 7px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .modal-body input[readonly] { color: #a1a8b3; background-color: #161b22; border-color: #3c4a5d }
html[data-theme="dark"] .modal-body input[readonly]:focus { border-color: #3c4a5d }
html[data-theme="dark"] .sidebar-toggle { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.176) }
html[data-theme="dark"] .sidebar-toggle:hover { border-color: #314468 }
html[data-theme="dark"] .sortable span { color: #b0b7c1 }
html[data-theme="dark"] .import-products { color: #ffffff!important; background-color: #27d893!important; border-color: #46e2a5!important; box-shadow: 0 7px 14px rgba(0, 0, 0, 0.374) }
html[data-theme="dark"] .export-products { color: #6ce4b6!important; background-color: #182920!important; border-color: #37624b!important }
html[data-theme="dark"] .projection-line { stroke: #76daac }
html[data-theme="dark"] .funnel-row i { background: linear-gradient(90deg,var(--blue),#387dfa) }
html[data-theme="dark"] .status-bars i { background: linear-gradient(90deg,#246fdb,#387afa) }
html[data-theme="dark"] .item-preview { border-color: #2c446d; background: linear-gradient(105deg,#10141f,#0f1825) }
html[data-theme="dark"] .item-preview-icon { background-color: #121b2c }
html[data-theme="dark"] .item-preview-data { border-inline: 1px solid #334966 }
html[data-theme="dark"] .item-preview-data b { color: #a2a9b3 }
html[data-theme="dark"] .decision-donut { background: conic-gradient(#2cd3a0 0 62%,#447eee 62% 87%,#455266 87% 100%) }
html[data-theme="dark"] .decision-donut:before { background-color: #0f131d }
html[data-theme="dark"] .decision-legend i { background-color: #455266 }
html[data-theme="dark"] .decision-legend i.approved { background-color: #2cd3a0 }
html[data-theme="dark"] .decision-legend i.review { background-color: #447eee }
html[data-theme="dark"] .confirm-visual { border: 1px solid #683238; background-color: #230e11 }
html[data-theme="dark"] .confirm-visual>.icon { color: #db828f }
html[data-theme="dark"] .profile-photo { background-color: #111521 }
html[data-theme="dark"] .profile-avatar-preview { color: #ffffff }
html[data-theme="dark"] .security-panel { border: 1px solid #334966; background-color: #10141f }
html[data-theme="dark"] .billing-bars i { background-color: #131b28 }
html[data-theme="dark"] .billing-bars i span { background: linear-gradient(180deg,#4480ee,var(--blue)) }
html[data-theme="dark"] .decision-legend i.status-0 { background-color: #2cd3a0 }
html[data-theme="dark"] .decision-legend i.status-1 { background-color: #447eee }
html[data-theme="dark"] .decision-legend i.status-2 { background-color: #d8a549 }
html[data-theme="dark"] .decision-legend i.status-3 { background-color: #455266 }
html[data-theme="dark"] .profitability-list i { background-color: #181e26 }
html[data-theme="dark"] .profitability-list i span { background: linear-gradient(90deg,#25da95,#6bc7a0) }
html[data-theme="dark"] .margin-summary>div { background-color: #111521 }
html[data-theme="dark"] .margin-summary b { color: #6d97e4 }
html[data-theme="dark"] .client-context { border: 1px solid #334966; background-color: #111521 }
@media(max-width:760px) {
  html[data-theme="dark"] .item-preview-data { border-block: 1px solid #334966 }
}
html[data-theme="dark"] .activity-kpis>div { background-color: #101520 }
html[data-theme="dark"] .activity-chart .chart-grid { stroke: #1f2631 }
html[data-theme="dark"] .activity-chart .chart-fill { fill: rgba(133, 167, 241, 0.09) }
html[data-theme="dark"] .activity-point circle { fill: #0f131d }
html[data-theme="dark"] .activity-point text { fill: #a6acb5 }
html[data-theme="dark"] .activity-tooltip { border: 1px solid #374862; background-color: #0f131d; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.352) }
html[data-theme="dark"] .notifications-popover { background-color: #0f131d; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .notifications-popover button { background-color: #0f131d }
html[data-theme="dark"] .connection-status i { background-color: #2cd383; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .ai-prompts button { background-color: #0f131d }
html[data-theme="dark"] .ai-avatar { color: #ffffff }
html[data-theme="dark"] .ai-messages { background-color: #10141f }
html[data-theme="dark"] .ai-message.assistant { background-color: #101a28 }
html[data-theme="dark"] .ai-message.user { color: #ffffff }
html[data-theme="dark"] .required-mark { color: #de808d }
html[data-theme="dark"] .button.ghost { border: 1px solid #3d495c; background-color: #0f131d }
html[data-theme="dark"] .button.ghost:hover { border-color: #3d4a5c; background-color: #14191f }
html[data-theme="dark"] .pill.draft, html[data-theme="dark"] .quote-actions .pill.draft { color: #ffffff!important; border-color: #444f5f!important; background-color: #383d44!important }
html[data-theme="dark"] .pill.review, html[data-theme="dark"] .quote-actions .pill.review { color: #ffffff!important; border-color: #eeaa3a!important; background-color: #e69b1e!important }
html[data-theme="dark"] .pill.success, html[data-theme="dark"] .quote-actions .pill.success { color: #ffffff!important; border-color: #43e5b0!important; background-color: #24db9f!important }
html[data-theme="dark"] .payment-status>div { background-color: #101520 }
html[data-theme="dark"] .modal[data-intent="view"] .modal-body input[readonly], html[data-theme="dark"] .modal[data-intent="view"] .modal-body textarea[readonly], html[data-theme="dark"] .modal[data-intent="view"] .modal-body select:disabled { color: #929caf; background-color: #131825; border-color: #3f4b5a }
html[data-theme="dark"] .confirm-visual .confirm-icon { border: 1px solid #6f2a34; color: #e48695; background-color: #261013; box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .modal[data-modal-type="confirm-delete"] [data-modal-submit], html[data-theme="dark"] .modal[data-modal-type="confirm-void"] [data-modal-submit] { border-color: #d75165; background-color: #d14c60; box-shadow: 0 7px 15px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .profile-account, html[data-theme="dark"] .security-panel { background-color: #10141f }
html[data-theme="dark"] .security-panel { background-color: #0f131d }
html[data-theme="dark"] .picker-list>button { background-color: #0f131d }
html[data-theme="dark"] .picker-list>button:hover { border-color: #2a426f; background-color: #0f1724 }
html[data-theme="dark"] .notifications-popover { box-shadow: 0 28px 75px rgba(0, 0, 0, 0.528) }
html[data-theme="dark"] .notifications-summary span { background-color: #161c24 }
html[data-theme="dark"] .notifications-popover .notification-item:hover { background-color: #141920 }
html[data-theme="dark"] .notifications-popover .notification-item.unread { background-color: #101a28 }
html[data-theme="dark"] .notification-kind { background-color: #121c2c }
html[data-theme="dark"] .notification-kind.success { color: #6ae6be; background-color: #192a23 }
html[data-theme="dark"] .notification-item span small { color: #9aa4b2 }
html[data-theme="dark"] .notification-item span em { color: #a9b0ba }
html[data-theme="dark"] .notification-item>i { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .chat-fab { color: #ffffff; background: linear-gradient(145deg,#216dde,var(--blue)); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .chat-fab-status { border: 2px solid #2c3344; background-color: #28d78b }
html[data-theme="dark"] .chat-widget { background-color: #0f131d; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .chat-widget .ai-chat-head small i { background-color: #2ad58a }
html[data-theme="dark"] .chat-quick button { border: 1px solid #304769; background-color: #0f131d }
html[data-theme="dark"] .billing-plot { background: repeating-linear-gradient(to bottom,#192029 0,#192029 1px,transparent 1px,transparent 25%) }
html[data-theme="dark"] .billing-column>b { color: #ffffff }
html[data-theme="dark"] .billing-column i span { background: linear-gradient(180deg,#4680ec,var(--blue)); box-shadow: 0 4px 9px rgba(0, 0, 0, 0.352) }
html[data-theme="dark"] .pipeline-track { stroke: #171d2c }
html[data-theme="dark"] .real-pdf-frame { background-color: #0f131d }
html[data-theme="dark"] .backend-offline { border: 1px solid #69303c; color: #db7587; background-color: #240f11 }
html[data-theme="dark"] .real-pdf-frame { background-color: #0f131d }
html[data-theme="dark"] .backend-offline { border: 1px solid #69303c; color: #db7587; background-color: #240f11 }
html[data-theme="dark"] .quote-table-tabs { background-color: #111823 }
html[data-theme="dark"] .quote-table-tabs button.active { background-color: #0f131d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) }
html[data-theme="dark"] .danger-action { color: #de8292!important }
html[data-theme="dark"] .restore-action { color: #6ce4b6!important }
html[data-theme="dark"] .quote-preview-modal .modal-body { background-color: #161d26 }
html[data-theme="dark"] .pdf-sheet { border: 1px solid #3a495f; background-color: #0f131d; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.286) }
html[data-theme="dark"] .pdf-sheet th { background-color: #111823 }
html[data-theme="dark"] .confirm-visual.restore .confirm-icon { color: #6ce4b6; background-color: #192a22 }
html[data-theme="dark"] .modal .field>:first-child:not(.password-field) { color: #8b9db5; background-color: #141d27 }
html[data-theme="dark"] .modal .field input, html[data-theme="dark"] .modal .field select, html[data-theme="dark"] .modal .field textarea { border-color: #374962; background-color: #0f131d; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.066) }
html[data-theme="dark"] .modal .field input:focus, html[data-theme="dark"] .modal .field select:focus, html[data-theme="dark"] .modal .field textarea:focus { border-color: #3b73ed; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.286) }
html[data-theme="dark"] .table-page-size select { border: 1px solid #354864; background-color: #0f131d }
html[data-theme="dark"] .settings-card input[readonly] { color: #9fa7b3; background-color: #161c24; border-color: #3b4b5e }
html[data-theme="dark"] .payment-validation { color: #6fe2b0 }
html[data-theme="dark"] .payment-validation.invalid { color: #dc8491 }
html[data-theme="dark"] .item-summary-card { border: 1px solid #2c446d; background: linear-gradient(105deg,#0f131d,#0f1725) }
html[data-theme="dark"] .item-summary-rents>div { border: 1px solid #334766; background-color: #0f131d }
html[data-theme="dark"] .item-summary-total { border-left: 1px solid #334966 }
html[data-theme="dark"] .modal-choice { background-color: #0f131d }
html[data-theme="dark"] .modal-choice.selected { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .item-product-entry { border: 1px solid #334966; background-color: #111521 }
html[data-theme="dark"] .item-rent-panel { border: 1px solid #354864; background-color: #0f131d }
html[data-theme="dark"] .item-rent-panel>header { background-color: #0e1623 }
html[data-theme="dark"] .item-charge-grid { background-color: #10141f }
html[data-theme="dark"] .item-calculation>div { background-color: #0f131d }
html[data-theme="dark"] .item-grand-total { color: #ffffff }
html[data-theme="dark"] .independent-product-v30 { border: 1px dashed #2d456c; background-color: #111521 }
html[data-theme="dark"] .review-value-grid { border: 1px solid #334766; background-color: #1e2836 }
html[data-theme="dark"] .review-value-grid>div { background-color: #0f131d }
html[data-theme="dark"] .review-value-grid .review-total { color: #ffffff }
html[data-theme="dark"] .review-conditions>div { background-color: #0f1724 }
@media(max-width:760px) {
  html[data-theme="dark"] .item-summary-total { border-top: 1px solid #334966 }
}
html[data-theme="dark"] .pdf-loading .spinner { border: 3px solid #2f466a }
html[data-theme="dark"] .pdf-error { color: #db7587 }
html[data-theme="dark"] .client-picker-list>button { background-color: #0f131d }
html[data-theme="dark"] .client-picker-list>button:hover { border-color: #2a426f; background-color: #0f1724 }
html[data-theme="dark"] .independent-product-modal .modal-context { background-color: #0f1725 }
html[data-theme="dark"] .item-workbench-modal .modal-choice:hover { border-color: #2a426f }
html[data-theme="dark"] .item-workbench-modal .modal-choice.selected { background: linear-gradient(135deg,#0f1624,#111a2a) }
html[data-theme="dark"] .item-base-grid { border: 1px solid #334766; background-color: #10141f }
html[data-theme="dark"] .item-rent-panel { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11) }
html[data-theme="dark"] .item-workflow-status { color: #a9b1bc }
html[data-theme="dark"] .item-workflow-status span:before { border: 1px solid #3a4a5f; background-color: #0f131d }
html[data-theme="dark"] .item-workflow-status .active:before { box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .item-workflow-status i { background-color: #202833 }
html[data-theme="dark"] .item-workbench-modal .item-rent-panel>header { background: linear-gradient(90deg,#0f1724,#0f131d) }
html[data-theme="dark"] .review-total-card { color: #ffffff; background: linear-gradient(145deg,#1f2e47,#266ed9); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.44) }
html[data-theme="dark"] .review-total-card span { color: #b3bdd1 }
html[data-theme="dark"] .review-breakdown>article { border: 1px solid #374a62; background-color: #0f131d }
html[data-theme="dark"] .review-breakdown>article>header { border-bottom: 1px solid #394960; background-color: #10141f }
html[data-theme="dark"] .review-breakdown>article>div { background-color: #1c232b }
html[data-theme="dark"] .review-breakdown>article span { background-color: #0f131d }
html[data-theme="dark"] .review-empty { border: 1px dashed #364963 }
html[data-theme="dark"] .review-conditions>article { border: 1px solid #334a66; background-color: #101520 }
html[data-theme="dark"] .review-conditions dl>div { border-bottom: 1px solid #384961 }
html[data-theme="dark"] .quote-terms { border: 1px solid #354964; background-color: #10141f }
html[data-theme="dark"] .quote-terms textarea { background-color: #0f131d }
html[data-theme="dark"] .decoapp-logo { color: #6d97e4 }
html[data-theme="dark"] .decoapp-logo-mark { color: #ffffff; background: linear-gradient(145deg,#216cdf,#4579e9); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.225) }
html[data-theme="dark"] .decoapp-logo-name>span { color: #85a7f1 }
html[data-theme="dark"] .quote-workspace .stage[data-stage="3"]>.payment-grid { border: 1px solid #344a65!important; background-color: #10141f!important }
html[data-theme="dark"] .review-ready { border: 1px solid #37624c; color: #6ce4b6; background-color: #15241c; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.176) }
html[data-theme="dark"] .review-ready>.icon { color: #ffffff; background-color: #29d696 }
html[data-theme="dark"] .review-ready small { color: #94b8a8 }
html[data-theme="dark"] .review-dashboard .review-value-grid>div:nth-child(4) { background-color: #0f1725 }
html[data-theme="dark"] .review-dashboard .review-value-grid>div:nth-child(7) { background-color: #0f1725 }
html[data-theme="dark"] .item-modal-back { border: 1px solid #354864; background-color: #111521 }
html[data-theme="dark"] .item-modal-back:hover { border-color: #2a426f }
html[data-theme="dark"] .item-workbench-modal .item-base-grid .field>span, html[data-theme="dark"] .item-workbench-modal .item-product-form .field>span, html[data-theme="dark"] .item-workbench-modal .item-charge-grid .field>span { color: #d7dce3 }
html[data-theme="dark"] .item-workbench-modal .item-base-grid input, html[data-theme="dark"] .item-workbench-modal .item-base-grid select, html[data-theme="dark"] .item-workbench-modal .item-base-grid textarea, html[data-theme="dark"] .item-workbench-modal .item-product-form input, html[data-theme="dark"] .item-workbench-modal .item-charge-grid input { background-color: #0f131d }
html[data-theme="dark"] .item-summary-rents .item-rent-summary { border: 1px solid #2c486d; background: linear-gradient(145deg,#0f131d,#0e1623) }
html[data-theme="dark"] .item-rent-summary header b { color: #97a5b4; background-color: #111b2a }
html[data-theme="dark"] .item-rent-summary>strong { border-top: 1px solid #354b64 }
html[data-theme="dark"] .sidebar-bottom .sidebar-toggle { border: 1px solid #374962; color: #9da7b5; background-color: #0f131d }
html[data-theme="dark"] .sidebar-bottom .sidebar-toggle:hover { border-color: #2a426f; background-color: #0f1724 }
html[data-theme="dark"] .sidebar-bottom .sidebar-toggle:focus-visible { outline: 3px solid rgba(54, 118, 242, 0.24) }
html[data-theme="dark"] .item-workbench-modal .item-product-entry { border: 1px solid #344a65; background-color: #0f131d; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.088) }
html[data-theme="dark"] .item-workbench-modal .item-product-entry .item-product-form .field>span { color: #d7dce3!important }
html[data-theme="dark"] .item-summary-facts { color: #9ba6b4 }
html[data-theme="dark"] .item-summary-facts>div { border-right: 1px solid #374a62 }
html[data-theme="dark"] .item-summary-facts dd { color: #97a5b4 }
html[data-theme="dark"] .sidebar-bottom .sidebar-toggle, html[data-theme="dark"] .sidebar-bottom .sidebar-toggle:where(:not(.unused)) { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.308) }
html[data-theme="dark"] .quote-status-menu, html[data-theme="dark"] .product-status-menu { border: 1px solid #354864; background-color: #0f131d; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.44) }
html[data-theme="dark"] .status-dot { background-color: #3b4047 }
html[data-theme="dark"] .status-dot.success { background-color: #2dd297 }
html[data-theme="dark"] .status-dot.review { background-color: #e5981b }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.dashboard-search { background-color: #0f131d }
html[data-theme="dark"] .dashboard-heading-actions .top-actions>.icon-button { border: 1px solid #364863; background-color: #0f131d }
html[data-theme="dark"] .role-access-note { border: 1px solid #374a62; background-color: #111925; color: #909fb4 }
html[data-theme="dark"] .tax-rates-edit { color: var(--blue,#85a7f1) }
html[data-theme="dark"] .recommendation-row { border: 1px solid #384961; background-color: #10141f }
html[data-theme="dark"] .recommendation-row.is-clickable:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) }
html[data-theme="dark"] .recommendation-row b { color: var(--text,#d8dfea) }
html[data-theme="dark"] .recommendation-row small { color: var(--muted,#a0a8b3) }
html[data-theme="dark"] .recommendation-icon { color: #9ca5b2; background-color: #181d25 }
html[data-theme="dark"] .recommendation-go { color: #abb4c1 }
html[data-theme="dark"] .recommendation-row.danger { border-color: #66333d; background-color: #111521 }
html[data-theme="dark"] .recommendation-row.danger .recommendation-icon { color: #db7b8c; background-color: #30151a }
html[data-theme="dark"] .recommendation-row.warning { border-color: #6a582f; background-color: #271f10 }
html[data-theme="dark"] .recommendation-row.warning .recommendation-icon { color: #edbe64; background-color: #3e341a }
html[data-theme="dark"] .recommendation-row.success { border-color: #36634c; background-color: #13231b }
html[data-theme="dark"] .recommendation-row.success .recommendation-icon { color: #71e0ad; background-color: #1e3328 }
html[data-theme="dark"] .recommendation-top { border-top: 1px solid var(--line,#3c4a5d) }
html[data-theme="dark"] .recommendation-top>small { color: var(--muted,#a0a8b3) }
html[data-theme="dark"] .recommendation-top>div { border-top: 1px dashed #3c4a5d }
html[data-theme="dark"] .recommendation-project { color: var(--muted,#a0a8b3) }
html[data-theme="dark"] .recommendation-top-value>small { color: var(--muted,#a9b0bb) }
html[data-theme="dark"] .recommendation-top b { color: #d8dfea }
html[data-theme="dark"] .tech-stat { border: 1px solid #384961; background-color: #10141f }
html[data-theme="dark"] button.tech-stat:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) }
html[data-theme="dark"] .tech-stat b { color: #d8dfea }
html[data-theme="dark"] .tech-stat span { color: var(--muted,#a0a8b3) }
html[data-theme="dark"] .tech-stat em { color: #85a7f1 }
html[data-theme="dark"] .tech-stat.warning { border-color: #6a582f; background-color: #271f10 }
html[data-theme="dark"] .tech-stat.warning b { color: #edbe64 }
html[data-theme="dark"] .tech-drill-list li { border: 1px solid #3c4a5d; background-color: #10141f }
html[data-theme="dark"] .tech-drill-list b { color: #d8dfea }
html[data-theme="dark"] .tech-drill-list small { color: #a0a8b3 }
html[data-theme="dark"] .deko-tour-overlay { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .deko-tour-card { background-color: #0f131d; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .deko-tour-card .deko-tour-step { color: #85a7f1 }
html[data-theme="dark"] .deko-tour-card h3 { color: #d8dfea }
html[data-theme="dark"] .deko-tour-card p { color: #959fb0 }
html[data-theme="dark"] .deko-tour-prompt { border: 1px solid #374a62; background-color: #0f131d; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.484) }
html[data-theme="dark"] .deko-tour-prompt>span { color: #85a7f1; background-color: #121c2b }
html[data-theme="dark"] .deko-tour-prompt b { color: #d8dfea }
html[data-theme="dark"] .deko-tour-prompt small { color: #a0a8b3 }
html[data-theme="dark"] .deko-tour-help-menu { background-color: #0f131d; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.484),0 2px 8px rgba(0, 0, 0, 0.132) }
html[data-theme="dark"] .deko-tour-help-menu-divider { border-top: 1px solid #3d465c }
html[data-theme="dark"] .deko-tour-help-menu button:hover, html[data-theme="dark"] .deko-tour-help-menu button:focus-visible { background-color: #141821 }
html[data-theme="dark"] .deko-tour-help-icon.tone-info { color: #85a7f1; background-color: #111928 }
html[data-theme="dark"] .deko-tour-help-icon.tone-accent { color: #af88f1; background-color: #1b1128 }
html[data-theme="dark"] .deko-tour-help-icon.tone-warning { color: #f2ad5f; background-color: #322715 }
html[data-theme="dark"] .deko-tour-help-menu b { color: #dadee6 }
html[data-theme="dark"] .deko-tour-help-menu small { color: #a8aeb9 }
html[data-theme="dark"] .deko-welcome-list li { color: #d7dce3 }
html[data-theme="dark"] .deko-welcome-list .icon { color: #71e0ad }
html[data-theme="dark"] .deko-welcome-dialog .modal-context { color: #a0a8b3 }
html[data-theme="dark"] .deko-welcome-fade { background: linear-gradient(to bottom,rgba(15, 19, 29, 0),#0f131d) }
html[data-theme="dark"] .activity-filter-hint { color: #a7afbb }
html[data-theme="dark"] .activity-filter-cell:hover { background-color: #11192a; color: #8aa4eb }
html[data-theme="dark"] .activity-filter-chip { background-color: #11192a; color: #8aa4eb }
html[data-theme="dark"] .activity-filter-chip button { background-color: rgba(77, 117, 224, 0.12) }
html[data-theme="dark"] .activity-filter-chip button:hover { background-color: rgba(77, 117, 224, 0.22) }
html[data-theme="dark"] .deko-welcome-dismiss-toggle { color: #a0a8b3 }
html[data-theme="dark"] .deko-welcome-dismiss-toggle input { accent-color: var(--accent,#8aa4eb) }
html[data-theme="dark"] #product-import-guide .modal-context { color: #959fb0 }
html[data-theme="dark"] .product-import-sample { border: 1px solid #384961 }
html[data-theme="dark"] .product-import-sample th { color: #9ca5b2; background-color: #0e1623; border-bottom: 1px solid #384961 }
html[data-theme="dark"] .product-import-sample td { border-bottom: 1px solid #394960; color: #d7dce3 }
html[data-theme="dark"] .product-import-note { color: #a6acb6 }
html[data-theme="dark"] .product-import-tag.is-required { color: #db7b8c }
html[data-theme="dark"] .product-import-tag.is-optional { color: #a8b0bd }
html[data-theme="dark"] .product-import-empty { color: #b2bac5 }
html[data-theme="dark"] .activity-filters .select-field select { border: 1px solid #374a62; background-color: #0f131d }
html[data-theme="dark"] .confirm-dialog-v30 { box-shadow: 0 28px 90px rgba(0, 0, 0, 0.572) }
html[data-theme="dark"] .confirm-dialog-v30 .confirm-icon { border: 1px solid #6f2a35; color: #e08593; background-color: #261013; box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .danger-button { border-color: #d75165!important; color: #ffffff!important; background-color: #d14c60!important; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.528) }
html[data-theme="dark"] .danger-button:hover { border-color: #de4a61!important; background-color: #d32c46!important }
html[data-theme="dark"] .item-workbench-modal .item-charge-grid { background-color: #111521 }
html[data-theme="dark"] .quote-reset-zone { border: 1px solid #6a2f39; background: linear-gradient(135deg,#0f131d 0%,#111521 100%) }
html[data-theme="dark"] .quote-reset-copy small { color: #ce8390 }
html[data-theme="dark"] .quote-reset-icon { color: #e08593; background-color: #271014 }
html[data-theme="dark"] .quote-reset-dialog { box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .quote-reset-dialog .field strong { color: #dd7384 }
html[data-theme="dark"] .reset-impact { border: 1px solid #68313a; color: #da7688; background-color: #240f11 }
html[data-theme="dark"] .quote-reset-dialog .form-error { color: #df7284; background-color: #271013 }
html[data-theme="dark"] .table-wrap:has(.action-group) th:last-child, html[data-theme="dark"] .table-wrap:has(.action-group) td:last-child { background-color: #0f131d; box-shadow: -10px 0 16px -16px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .table-wrap:has(.action-group) th:last-child { background-color: #111622 }
@media(max-width:720px) {
  html[data-theme="dark"] [data-view-panel] .table-wrap tbody td.rt-field::before, html[data-theme="dark"] .recent-quotes-card tbody td.rt-field::before { color: #a6acb6 }
  html[data-theme="dark"] [data-view-panel] .table-wrap tbody td.rt-field-long .table-subcopy, html[data-theme="dark"] .recent-quotes-card tbody td.rt-field-long .table-subcopy { color: #a6acb6 }
  html[data-theme="dark"] [data-view-panel] .table-wrap tbody td.rt-actions, html[data-theme="dark"] .recent-quotes-card tbody td.rt-actions { border-top: 1px dashed #394960 }
}
html[data-theme="dark"] .client-context dl>div { border-left: 1px solid #374a62 }
html[data-theme="dark"] .client-context-edit { border: 1px solid #334866; background-color: #0f131d }
html[data-theme="dark"] .description-suggestions { border: 1px solid #374962; background-color: #0f131d; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.374) }
html[data-theme="dark"] .description-suggestions button { background-color: #0f131d }
html[data-theme="dark"] .item-workbench-modal [data-v30-product-picker] { border-color: #2a446f; background-color: #111521 }
html[data-theme="dark"] .quote-workspace .stage[data-stage="3"]>.quote-terms textarea { background-color: #0f131d }
html[data-theme="dark"] .pill.rejected, html[data-theme="dark"] .quote-actions .pill.rejected { color: #ffffff!important; border-color: #d75165!important; background-color: #d14c60!important }
html[data-theme="dark"] .pill.void, html[data-theme="dark"] .quote-actions .pill.void { color: #ffffff!important; border-color: #d7517d!important; background-color: #cc3365!important }
html[data-theme="dark"] .status-dot.rejected { background-color: #d14c60 }
html[data-theme="dark"] .status-dot.void { background-color: #cc3365 }
html[data-theme="dark"] .user-status-menu { border: 1px solid #354864; background-color: #0f131d; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.44) }
html[data-theme="dark"] .confirm-dialog-v30 .confirm-visual.restore .confirm-icon { border-color: #376255; background-color: #142820; box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .signature-panel { background-color: #10141f }
html[data-theme="dark"] .signature-preview { border: 1px dashed #354864; background-color: #0f131d; color: #749cdd }
html[data-theme="dark"] .bulk-delete-products { color: #ffffff!important; border-color: #d5536a!important; background-color: #ca3952!important }
html[data-theme="dark"] .bulk-delete-products:hover { background-color: #cc334f!important }
html[data-theme="dark"] .import-spinner { border: 3px solid #2a416f }
html[data-theme="dark"] .operation-totals>div { background-color: #111521 }
html[data-theme="dark"] .operation-totals .success b { color: #6ee3bc }
html[data-theme="dark"] .operation-totals .error b { color: #da7c8b }
html[data-theme="dark"] .advisor-activity-list>div { background-color: #0f131d }
html[data-theme="dark"] .sidebar-user .user-avatar { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .product-delete-icon { color: #da7989; background-color: #271014 }
html[data-theme="dark"] .product-delete-form .modal-body>p { color: #9aa4b2 }
html[data-theme="dark"] .installation-detail li { background-color: #0f131d }
html[data-theme="dark"] .installation-values>div { border: 1px solid #344a65; background-color: #111521 }
html[data-theme="dark"] .export-products { color: #ffffff!important; border-color: #4082e8!important; background-color: #206cdf!important }
html[data-theme="dark"] .export-products:hover { background-color: #1b6ee4!important }
html[data-theme="dark"] .product-delete-summary { border: 1px solid #623741; background: linear-gradient(135deg,#111521,#0f131d) }
html[data-theme="dark"] .product-delete-summary b { color: #e7dade }
html[data-theme="dark"] .product-delete-summary p { color: #a0a7b2!important }
html[data-theme="dark"] .product-delete-confirm { border: 1px solid #374a62; background-color: #10141f }
html[data-theme="dark"] .product-delete-confirm>span { color: #d5dbe4!important }
html[data-theme="dark"] .product-delete-confirm small { color: #a0a7b2 }
html[data-theme="dark"] .product-delete-confirm input { background-color: #0f131d }
@media(max-width:760px) {
  html[data-theme="dark"] .client-context dl>div { border-top: 1px solid #374a62 }
}
html[data-theme="dark"] .payment-tabs { border: 1px solid #354964; background-color: #121922 }
html[data-theme="dark"] .payment-tabs button { color: #9fa7b3 }
html[data-theme="dark"] .payment-tabs button.active { color: #6795e9; background-color: #0f131d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .payment-history-summary span { border: 1px solid #354964; color: #9fa7b3; background-color: #111521 }
html[data-theme="dark"] .payment-history-summary b { color: #6d97e4 }
html[data-theme="dark"] .payment-history th { color: #a2aab6 }
html[data-theme="dark"] .payment-history td { border-top: 1px solid #384861 }
html[data-theme="dark"] .global-search-input { border: 1px solid #2a446f; background-color: #0f131d; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.176) }
html[data-theme="dark"] .global-search-input .icon { color: #82a2dd }
html[data-theme="dark"] .global-search-input kbd { border: 1px solid #394a60; color: #a3aab6; background-color: #0e1623 }
html[data-theme="dark"] .global-search-result { background-color: #0f131d }
html[data-theme="dark"] .global-search-result:hover, html[data-theme="dark"] .global-search-result:focus-visible { border-color: #2a436f; background-color: #0f1724 }
html[data-theme="dark"] .global-search-result-icon { color: #7aa1e5; background-color: #111b2a }
html[data-theme="dark"] .global-search-result small { color: #9fafca }
html[data-theme="dark"] .global-search-result em { color: #a4aab5 }
html[data-theme="dark"] .global-search-result>.icon { color: #a3aab6 }
html[data-theme="dark"] .global-search-empty { color: #a3aab6 }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric { border: 1px solid #334766; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11) }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(1) { border-top: 3px solid #4bddb0; background: linear-gradient(145deg,#0f131d,#14251e) }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(1)::after { background-color: #30cf94 }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(2) { border-top: 3px solid #4f7ed9; background: linear-gradient(145deg,#0f131d,#0f1826) }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(2)::after { background-color: #4880ea }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(3) { border-top: 3px solid #e8a840; background: linear-gradient(145deg,#0f131d,#281f10) }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(3)::after { background-color: #e2ab50 }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(4) { border-top: 3px solid #8b6bbd; background: linear-gradient(145deg,#0f131d,#170f25) }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.metric-grid .metric:nth-child(4)::after { background-color: #8f67cb }
html[data-theme="dark"] .quote-head .quote-number { color: #9fa7b3 }
html[data-theme="dark"] .advanced-metrics .metric { border: 1px solid #334766; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11) }
html[data-theme="dark"] .advanced-metrics .metric:nth-child(1) { border-top: 3px solid #4bddb0; background: linear-gradient(145deg,#0f131d,#14251e) }
html[data-theme="dark"] .advanced-metrics .metric:nth-child(2) { border-top: 3px solid #4f7ed9; background: linear-gradient(145deg,#0f131d,#0f1826) }
html[data-theme="dark"] .advanced-metrics .metric:nth-child(3) { border-top: 3px solid #e8a840; background: linear-gradient(145deg,#0f131d,#281f10) }
html[data-theme="dark"] .advanced-metrics .metric:nth-child(4) { border-top: 3px solid #8b6bbd; background: linear-gradient(145deg,#0f131d,#170f25) }
html[data-theme="dark"] .import-products { color: #ffffff!important; border-color: #4082e8!important; background-color: #206cdf!important }
html[data-theme="dark"] .import-products:hover { background-color: #1b6ee4!important }
html[data-theme="dark"] .export-products { color: #ffffff!important; border-color: #46e2a5!important; background-color: #27d893!important }
html[data-theme="dark"] .export-products:hover { background-color: #24db95!important }
html[data-theme="dark"] .avatar-picker button { color: #ffffff }
html[data-theme="dark"] .avatar-picker button:nth-child(1) { background: linear-gradient(135deg,#1a6ee5,#4b87e7) }
html[data-theme="dark"] .avatar-picker button:nth-child(2) { background: linear-gradient(135deg,#18e7b8,#2ed19c) }
html[data-theme="dark"] .avatar-picker button:nth-child(3) { background: linear-gradient(135deg,#dc5a23,#eb9a47) }
html[data-theme="dark"] .avatar-picker button:nth-child(4) { background: linear-gradient(135deg,#6a47b8,#845ed4) }
html[data-theme="dark"] .avatar-picker button:nth-child(5) { background: linear-gradient(135deg,#253141,#384352) }
html[data-theme="dark"] .avatar-picker button.selected, html[data-theme="dark"] .avatar-picker button:hover { border-color: #477de1; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .product-operation-mark { color: #6de3bd; background-color: #182921 }
html[data-theme="dark"] .operation-report-lede b { color: #6d97e4 }
html[data-theme="dark"] .operation-report-lede span { color: #a0a9b5 }
html[data-theme="dark"] .product-operation-report .operation-totals>div { border-color: #314968; background-color: #111521 }
html[data-theme="dark"] .product-operation-report .operation-totals .success { border-color: #38614d; background-color: #13241c }
html[data-theme="dark"] .product-operation-report .operation-totals .error { border-color: #613840; background-color: #101520 }
html[data-theme="dark"] .profile-avatar-panel { border-left: 1px solid #354964 }
html[data-theme="dark"] .profile-avatar-preview { background-color: #111b2a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.176) }
html[data-theme="dark"] .profile-avatar-preview.is-fallback { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22),0 0 0 4px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .avatar-picker button { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) }
html[data-theme="dark"] .avatar-picker button.selected, html[data-theme="dark"] .avatar-picker button:hover { border-color: #3b73ed; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .signature-remove { border: 1px solid #66333d; color: #da7989; background-color: #111521; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.176) }
html[data-theme="dark"] .signature-remove:hover { color: #ffffff; background-color: #ca4158 }
html[data-theme="dark"] .advisor-performance-card { border: 1px solid #364a63; background: linear-gradient(145deg,#0f131d,#0e1623) }
html[data-theme="dark"] .advisor-avatar { color: #6a9de6; background-color: #121c2b }
html[data-theme="dark"] .advisor-performance-card header small { color: #9ea7b5 }
html[data-theme="dark"] .advisor-performance-card dl { border-block: 1px solid #384961 }
html[data-theme="dark"] .advisor-performance-card dl div:nth-child(odd) { border-right: 1px solid #384961 }
html[data-theme="dark"] .advisor-performance-card dl div:nth-child(n+3) { border-top: 1px solid #384961 }
html[data-theme="dark"] .advisor-performance-card dt { color: #a4abb6 }
html[data-theme="dark"] .advisor-performance-card dd { color: #6d97e4 }
html[data-theme="dark"] .advisor-performance-card footer { color: #9ea7b5 }
html[data-theme="dark"] .advisor-performance-card footer b { color: #d4dce8 }
@media(max-width:760px) {
  html[data-theme="dark"] .profile-avatar-panel { border-top: 1px solid #354964 }
}
html[data-theme="dark"] .signature-panel h3 .required-mark { color: #e2909d }
html[data-theme="dark"] .column-resizer::after { background-color: #42536a }
html[data-theme="dark"] .resizable-table th:hover .column-resizer::after, html[data-theme="dark"] .column-resizer:focus-visible::after, html[data-theme="dark"] .column-resizer.is-resizing::after { background-color: #4c80e3 }
html[data-theme="dark"] .column-resizer:focus-visible { outline: 2px solid rgba(59, 115, 237, 0.45) }
html[data-theme="dark"] .price-basis-badge { border: 1px solid #2a466f; color: #6d9de3; background-color: #101a28 }
html[data-theme="dark"] .item-workbench-modal .item-products-table th { color: #8d9db3 }
html[data-theme="dark"] .required-mark { color: #e2909d!important }
html[data-theme="dark"] .advisor-chart-layout { border-top: 1px solid #384961 }
html[data-theme="dark"] .advisor-conversion-chart { background: conic-gradient(#4579e9 0 var(--conversion),#192029 var(--conversion) 100%) }
html[data-theme="dark"] .advisor-conversion-chart:before { background-color: #0f131d }
html[data-theme="dark"] .advisor-conversion-chart b { color: #6d97e4 }
html[data-theme="dark"] .advisor-conversion-chart span { color: #a3aab5 }
html[data-theme="dark"] .advisor-chart-row b { color: #98a4b4 }
html[data-theme="dark"] .advisor-chart-row em { color: #6d97e4 }
html[data-theme="dark"] .advisor-chart-row>i { background-color: #192029 }
html[data-theme="dark"] .advisor-chart-row>i>span { background-color: #5084e2 }
html[data-theme="dark"] .advisor-chart-row.success>i>span { background-color: #34cb8d }
html[data-theme="dark"] .advisor-chart-row.sales>i>span { background-color: #2781d8 }
html[data-theme="dark"] .advisor-chart-row.ticket>i>span { background-color: #806cc6 }
html[data-theme="dark"] .advisor-chart-row.balance>i>span { background-color: #d9a340 }
html[data-theme="dark"] .item-workbench-modal .item-products-table td { color: #d7dce3 }
html[data-theme="dark"] .item-calculation-total { background-color: #0f1826!important }
html[data-theme="dark"] .item-calculation-total dt { color: #769fda }
html[data-theme="dark"] .item-calculation-total dd { color: #6d97e4 }
html[data-theme="dark"] .item-grand-total.is-double { background-color: #1a2432 }
html[data-theme="dark"] .item-grand-total.is-double>div { background-color: #2866d7 }
html[data-theme="dark"] .item-grand-total.is-double>div+div { background-color: #266cd9 }
html[data-theme="dark"] .item-summary-facts { color: #9fa7b3!important }
@media(max-width:760px) {
  html[data-theme="dark"] .item-summary-total { border-top: 1px solid #334966 }
}
html[data-theme="dark"] .price-basis-switch { border: 1px solid #2a466f; background-color: #0f1524 }
html[data-theme="dark"] .price-basis-switch button { color: #97a3b3 }
html[data-theme="dark"] .price-basis-switch button.active { color: #ffffff; background-color: #4579e9; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.44) }
html[data-theme="dark"] .description-suggestions button:focus-visible { outline: 1px solid #3b73ed }
html[data-theme="dark"] .independent-products-summary article small { color: #a0a7b3 }
html[data-theme="dark"] .review-ready.is-incomplete { color: #f1ba60; background-color: #292211 }
html[data-theme="dark"] .review-ready.is-incomplete small { color: #e3b86e }
html[data-theme="dark"] .review-ready-symbol { color: #ffffff; background-color: #e89a1b }
html[data-theme="dark"] .confirm-dialog-v30 .confirm-visual.success .confirm-icon { border-color: #376255; color: #6ce4b6; background-color: #142820; box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .confirm-dialog-v30 .confirm-visual.success .quote-generated-number { color: #6ce4b6 }
html[data-theme="dark"] .independent-products-summary article { border: 1px solid #2f486a; background-color: #10141f }
html[data-theme="dark"] .independent-products-summary article .picker-code { color: #6b98e5; background-color: #101a28 }
html[data-theme="dark"] .independent-products-summary article b { color: #6d97e4 }
html[data-theme="dark"] .independent-products-summary article small { border-left: 1px solid #354964; color: #a1a9b4 }
html[data-theme="dark"] .independent-products-summary article>strong { border-left: 1px solid #354964; color: #6d97e4 }
html[data-theme="dark"] .independent-products-summary article>strong:before { color: #a1a9b4 }
@media(max-width:760px) {
  html[data-theme="dark"] .independent-products-summary article>div small { border-top: 1px solid #354964 }
  html[data-theme="dark"] .independent-products-summary article>strong { border-top: 1px solid #354964 }
}
html[data-theme="dark"] [data-view-panel] .table-wrap th { color: #97a3b3 }
html[data-theme="dark"] [data-view-panel] .table-wrap td { color: #d7dce3 }
html[data-theme="dark"] .item-workbench-modal .installation-editor-context { border: 1px solid #2a476f; color: #8fa0b5; background-color: #0f1724 }
html[data-theme="dark"] .item-product-switch { border: 1px solid #344965; background-color: #151a22 }
html[data-theme="dark"] .item-product-switch button { color: #97a3b3 }
html[data-theme="dark"] .item-product-switch button.active { color: #ffffff; background-color: #4579e9; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.44) }
html[data-theme="dark"] .item-product-switch span { background-color: rgba(15, 19, 29, 0.2) }
html[data-theme="dark"] .global-search-summary { color: #9da7b5 }
html[data-theme="dark"] .global-search-result { border-bottom: 1px solid #354864 }
html[data-theme="dark"] .view[data-view-panel="inicio"]>.toolbar.card .search-field, html[data-theme="dark"] .view[data-view-panel="cotizaciones"]>.toolbar.card .search-field, html[data-theme="dark"] .view[data-view-panel="clientes"]>.toolbar.card .search-field, html[data-theme="dark"] .view[data-view-panel="productos"]>.toolbar.card .search-field, html[data-theme="dark"] .view[data-view-panel="instalaciones"]>.toolbar.card .search-field { border: 1px solid #374a62; background-color: #0f131d }
html[data-theme="dark"] .item-summary-quantity { color: #9fa7b3 }
html[data-theme="dark"] .item-summary-quantity>div { border: 1px solid #334966; background-color: #0f131d }
html[data-theme="dark"] .item-summary-quantity button { color: #6b98e6; background-color: #0f1725 }
html[data-theme="dark"] .item-summary-quantity button:hover, html[data-theme="dark"] .item-summary-quantity button:focus-visible { color: #ffffff; background-color: #467bda }
html[data-theme="dark"] .item-summary-quantity output { color: #6d97e4 }
html[data-theme="dark"] .independent-products-summary article>.independent-product-copy small>span+span::before { color: #aebac8 }
html[data-theme="dark"] .item-summary-quantity { color: #9fa8b4 }
html[data-theme="dark"] .independent-products-summary article>.independent-product-copy>b { color: #6d97e4 }
html[data-theme="dark"] .independent-products-summary article>.independent-product-copy>b { color: #6d97e4!important }
html[data-theme="dark"] .independent-products-summary article>.independent-product-copy small { color: #9ca4b2!important }
html[data-theme="dark"] .item-summary-rents .item-rent-summary:hover { border-color: #2a446f }
html[data-theme="dark"] .installation-measures>div { background-color: #0f131d }
html[data-theme="dark"] .installation-group-charges { border: 1px solid #334766; background-color: #111521 }
html[data-theme="dark"] .installation-location { color: #d7dce3 }
html[data-theme="dark"] .installation-group-products { border-top: 1px dashed #334766 }
html[data-theme="dark"] .installation-group-products li+li { border-top: 1px solid #334866 }
html[data-theme="dark"] .installation-group-products b { color: #d8dfea }
html[data-theme="dark"] .autosave-status { color: #a5acb7 }
html[data-theme="dark"] .autosave-status.is-saving { color: #a5acb7 }
html[data-theme="dark"] .autosave-status.is-error { color: #de8292 }
html[data-theme="dark"] .autosave-status:not(.is-saving):not(.is-error) { color: #6fe2b0 }
html[data-theme="dark"] .quote-actions .readonly-pill { color: #9ba5b9; background-color: #181e28; border: 1px solid #354664 }
html[data-theme="dark"] .profitability-list .unknown-cost i span { background-color: #49515f }
html[data-theme="dark"] .profitability-list .unknown-cost strong { color: #a4abb6 }
html[data-theme="dark"] .profitability-list .unknown-cost small { color: #acb3bf }
html[data-theme="dark"] .advisor-chart-row.margin>i>span { background-color: #1ce3d1 }
html[data-theme="dark"] .advisor-chart-row.margin.unknown-cost em { color: #acb3bf }
html[data-theme="dark"] .margin-bar-label b { color: #6d97e4 }
html[data-theme="dark"] .margin-bar-track { background-color: #181d25; background-image: linear-gradient(to right,#202730 1px,transparent 1px) }
html[data-theme="dark"] .margin-bar-fill { background: linear-gradient(90deg,#25da95,#6bc7a0) }
html[data-theme="dark"] .margin-bar-fill.unknown-cost-bar { background: repeating-linear-gradient(135deg,#1e273a,#1e273a 6px,#192030 6px,#192030 12px) }
html[data-theme="dark"] .margin-bar-tip { color: #6d97e4 }
html[data-theme="dark"] .margin-bar-tip.unknown-cost { color: #a5abb5 }
@media(max-width:640px) {
  html[data-theme="dark"] .margin-bar-tip { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) }
  html[data-theme="dark"] .margin-bar-tip.unknown-cost { color: #9aa1b0 }
}
html[data-theme="dark"] .payment-progress-caption { color: #9fa7b3 }
html[data-theme="dark"] .payment-progress { background-color: #192029 }
html[data-theme="dark"] .payment-progress>span { background: linear-gradient(90deg,#25da95,#6bc7a0) }
html[data-theme="dark"] .payment-row-cancelled td { color: #acb3bf }
html[data-theme="dark"] .payment-cancel-row td { background-color: #240f0f }
html[data-theme="dark"] .payment-cancel-inline input { border: 1px solid #66333d }
html[data-theme="dark"] .client-finance-switch { border: 1px solid #354964; background-color: #121922 }
html[data-theme="dark"] .client-finance-switch button { color: #9fa7b3 }
html[data-theme="dark"] .client-finance-switch button.active { color: #6795e9; background-color: #0f131d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .installation-total-row { color: #ffffff }
html[data-theme="dark"] .search-shortcut { border: 1px solid #394a60; color: #a3aab6; background-color: #0e1623 }
html[data-theme="dark"] .feedback-preview { background-color: #151a23 }
html[data-theme="dark"] .metrics-period-panel { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .metrics-period-chip { border: 1px solid #3b495e; color: #929caf }
html[data-theme="dark"] .metrics-period-chip.active { color: #ffffff }
html[data-theme="dark"] .metrics-calendar-day.range-start, html[data-theme="dark"] .metrics-calendar-day.range-end { color: #ffffff }
html[data-theme="dark"] .feedback-utilidad-select.feedback-utilidad-alta { border-color: #37624b }
html[data-theme="dark"] .feedback-utilidad-select.feedback-utilidad-baja { color: #db828f; background-color: #271013; border-color: #6f2a34 }
html[data-theme="dark"] .feedback-utilidad-select.feedback-utilidad-sin-calificar { background-color: #131825; border-color: #3f4b5a }
html[data-theme="dark"] dialog.feedback-capture-dialog { background-color: rgba(8, 16, 32, 0.75) }
html[data-theme="dark"] .feedback-capture-hint { color: #ffffff; background-color: rgba(11, 25, 58, 0.75); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .feedback-capture-box { background-color: rgba(69, 121, 233, 0.14) }
html[data-theme="dark"] .feedback-capture-loader { background-color: rgba(8, 16, 32, 0.75); color: #ffffff }
html[data-theme="dark"] .feedback-capture-spinner { border: 3px solid rgba(44, 51, 68, 0.28); border-top-color: #2c3344 }
html[data-theme="dark"] .global-loading-overlay { background-color: rgba(8, 16, 32, 0.72) }
html[data-theme="dark"] .global-loading-spinner { border: 4px solid rgba(44, 51, 68, 0.35); border-top-color: #2c3344 }
html[data-theme="dark"] .feedback-count { background-color: #171e29; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .fb-msg:hover { background-color: #121721 }
html[data-theme="dark"] .fb-msg.is-support { background-color: #16231c }
html[data-theme="dark"] .fb-msg.is-support .fb-avatar { color: #ffffff }
html[data-theme="dark"] .fb-attach { background-color: #0f131d }
html[data-theme="dark"] .fb-tools .icon-button { background-color: #0f131d }
html[data-theme="dark"] .feedback-msg-edit { border: 1px solid #3a485f; background-color: #0f131d }
html[data-theme="dark"] .feedback-msg-confirm span { color: #db828f }
html[data-theme="dark"] .fb-composer { border: 1px solid #3a485f; background-color: #0f131d }
html[data-theme="dark"] .fb-composer:focus-within { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.308) }
html[data-theme="dark"] .nav-link .nav-badge { background-color: #141e32; color: #7291e9 }
html[data-theme="dark"] .feedback-count.is-unread { background-color: #141e32; color: #7291e9 }
html[data-theme="dark"] .fb-preview-item .icon-button { background-color: #0f131d; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .deko-bell { background-color: #0f131d; color: #9ba3b1 }
html[data-theme="dark"] .deko-bell:hover, html[data-theme="dark"] .deko-bell[aria-expanded="true"] { background-color: #0f1524; border-color: #2a426f }
html[data-theme="dark"] .deko-bell-badge { color: #ffffff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .deko-notif { background-color: #0f131d; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.484) }
html[data-theme="dark"] .deko-notif-permission { background-color: #0f1725; color: #8c9bb3 }
html[data-theme="dark"] .deko-notif-item { border-bottom: 1px solid #394960; background-color: #0f131d }
html[data-theme="dark"] .deko-notif-item:hover { background-color: #121721 }
html[data-theme="dark"] .deko-notif-item.is-unread { background-color: #0f1725 }
html[data-theme="dark"] .deko-notif-item.is-unread:hover { background-color: #101828 }
html[data-theme="dark"] .deko-notif-icon.tone-quote_status_revision { background-color: #352c15; color: #f3b45d }
html[data-theme="dark"] .deko-notif-icon.tone-quote_status_borrador { background-color: #171e2d; color: #a0a7b3 }
html[data-theme="dark"] .deko-notif-icon.tone-quote_status_anulada, html[data-theme="dark"] .deko-notif-icon.tone-quote_status_rechazada { background-color: #2b1216; color: #db828f }
html[data-theme="dark"] .deko-notif-icon.tone-feedback_reply { background-color: #182920 }
html[data-theme="dark"] .deko-notif-copy small { color: #94a0b2 }
html[data-theme="dark"] .deko-notif-foot { background-color: #0f131d }
html[data-theme="dark"] .feedback-status-toggle:hover { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.308) }
html[data-theme="dark"] .fb-readonly-note { background-color: #121721 }
html[data-theme="dark"] .deko-notif-icon.tone-diag_error { background-color: #2b1216; color: #db828f }
html[data-theme="dark"] .diag-tabs { background-color: #0f131d }
html[data-theme="dark"] .diag-tabs button { color: #9ba3b1 }
html[data-theme="dark"] .diag-tabs button:hover { background-color: #0f1524 }
html[data-theme="dark"] .diag-toolbar select { background-color: #0f131d }
html[data-theme="dark"] .diag-row:hover, html[data-theme="dark"] .diag-row:focus-visible { background-color: #121721 }
html[data-theme="dark"] .diag-pill { background-color: #161d2b; color: #94a0b2 }
html[data-theme="dark"] .diag-pill.is-error { background-color: #2b1216; color: #db828f }
html[data-theme="dark"] .diag-pill.is-aviso { background-color: #352c15; color: #f3b45d }
html[data-theme="dark"] .diag-pill.is-advertencia { background-color: #2f2813; color: #fbd856 }
html[data-theme="dark"] .diag-pill.is-prueba { background-color: #171e2d; color: #a0a7b3 }
html[data-theme="dark"] .diag-pill.is-state-abierto { background-color: #2b1216; color: #db828f }
html[data-theme="dark"] .diag-pill.is-state-reaparecio { background-color: #352c15; color: #f3b45d }
html[data-theme="dark"] .diag-bad { color: #db828f }
html[data-theme="dark"] .diag-warn { color: #f3b45d }
html[data-theme="dark"] .diag-check { border-bottom: 1px solid #394960 }
html[data-theme="dark"] .diag-check span:last-child { color: #94a0b2 }
html[data-theme="dark"] .diag-check.is-warn .diag-dot { background-color: #e0aa3f }
html[data-theme="dark"] .diag-check.is-error .diag-dot { background-color: #d4566a }
html[data-theme="dark"] .diag-check.is-error b { color: #db828f }
html[data-theme="dark"] .diag-log { background-color: #1f2d47 }
html[data-theme="dark"] .diag-pre { background-color: #141821; color: #d8dde7 }
html[data-theme="dark"] .diag-activity li { border-bottom: 1px solid #394960 }
html[data-theme="dark"] .item-summary-description, html[data-theme="dark"] .item-detail-description, html[data-theme="dark"] .installation-description { color: #9ba6b4 }
html[data-theme="dark"] .contractor-link-modal { box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55) }
html[data-theme="dark"] .contractor-link-modal:backdrop { background-color: rgba(8, 27, 59, 0.72) }
html[data-theme="dark"] .commission-edit-cost, html[data-theme="dark"] .commission-edit-preview { background-color: #0f1624 }
html[data-theme="dark"] [data-view-panel="contratistas"] .metric-grid .metric.metric-pending { border-top-color: #e8a840; background: linear-gradient(145deg,#0f131d,#281f10) }
html[data-theme="dark"] [data-view-panel="contratistas"] .metric-grid .metric.metric-success { border-top-color: #4bddb0; background: linear-gradient(145deg,#0f131d,#14251e) }
html[data-theme="dark"] .retail-metrics .metric-success strong { color: var(--green,#6fe1be) }
html[data-theme="dark"] .retail-metrics .metric-pending strong { color: var(--amber,#fbc056) }
html[data-theme="dark"] .retail-empty-icon { background: var(--blue-soft,#101828); color: var(--blue,#82a5e7) }
html[data-theme="dark"] .retail-dialog { box-shadow: 0 28px 90px rgba(0, 0, 0, 0.457) }
html[data-theme="dark"] .retail-dialog::backdrop { background-color: rgba(20, 35, 62, 0.722) }
html[data-theme="dark"] .retail-line-row { background-color: #111521 }
html[data-theme="dark"] .retail-total-panel { background-color: #101928; color: #84a2cd }
html[data-theme="dark"] .retail-total-panel strong { color: #6d96e3 }
html[data-theme="dark"] .retail-line-row.is-invalid { border-color: #673232; background-color: #111521 }
html[data-theme="dark"] .retail-detail-meta { background-color: #131a22 }
html[data-theme="dark"] .retail-detail-note { background-color: #141920 }
html[data-theme="dark"] .retail-status-menu { border: 1px solid var(--line,#3b4a5e); background-color: #0f131d; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.336) }
html[data-theme="dark"] .retail-status-menu>button:hover, html[data-theme="dark"] .retail-status-menu>button:focus-visible { background-color: #131a24 }
html[data-theme="dark"] .retail-status-menu .status-dot { background-color: #3f454c }
html[data-theme="dark"] .retail-status-menu .status-dot.success { background-color: #29d69c }
html[data-theme="dark"] .retail-status-menu .status-dot.review { background-color: #df9920 }
html[data-theme="dark"] .retail-product-choice { background-color: #0f131d }
html[data-theme="dark"] .retail-product-choice:hover { border-color: #2c436d; background-color: #10141f }
html[data-theme="dark"] .retail-product-choice-icon, html[data-theme="dark"] .retail-picker-product-icon { background-color: #101928; color: var(--blue,#82a5e7) }
html[data-theme="dark"] .retail-product-choice-action { color: var(--blue,#82a5e7) }
html[data-theme="dark"] .retail-picker-product { background-color: #0f131d }
html[data-theme="dark"] .retail-picker-product:hover, html[data-theme="dark"] .retail-picker-product:focus-visible { border-color: #2b426e; background-color: #111521 }
html[data-theme="dark"] .retail-client-trigger { border: 1px solid #374962; background-color: #0f131d }
html[data-theme="dark"] .retail-client-trigger:hover, html[data-theme="dark"] .retail-client-trigger:focus-visible { border-color: #2b426e; background-color: #10141f }
html[data-theme="dark"] .retail-client-action { color: var(--blue,#82a5e7) }
html[data-theme="dark"] .retail-client-picker .client-picker-list>button { background-color: #0f131d }
html[data-theme="dark"] .retail-client-picker .client-picker-list>button:hover, html[data-theme="dark"] .retail-client-picker .client-picker-list>button:focus-visible { border-color: #2a426f; background-color: #0f1724 }
@media(min-width:721px) {
  html[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb { background-color: #455061 }
}
@media(min-width:761px) {
  html[data-theme="dark"] .sidebar-bottom .sidebar-toggle { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.396) }
}
html[data-theme="dark"] .item-products-table [data-item-line-field] { background-color: #0f131d }
html[data-theme="dark"] .item-products-table [data-item-line-field]:user-invalid { border-color: #da4e63 }
html[data-theme="dark"] .metrics-date-notice { border: 1px solid #675732; background-color: #271f10; color: #dbbb76 }
@media(min-width:761px) {
  html[data-theme="dark"] .quote-grid-scroll-hint { border-top: 1px solid #3b495e; color: #9ea7b4; background-color: #111521 }
}
@media(min-width:761px) {
  html[data-theme="dark"] .quote-grid-table .quote-status-trigger { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.264) }
}
@media(min-width:761px) {
  html[data-theme="dark"] .recent-quotes-card .quote-grid-table .quote-status-trigger, html[data-theme="dark"] body.backend-ready [data-view-panel="cotizaciones"] .quote-grid-table .quote-status-trigger { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.264) }
}
html[data-theme="dark"] .contractor-payment-warning { border: 1px solid #675732; background-color: #271f10; color: #dbbb76 }
html[data-theme="dark"] .avatar-crop-layer { background-color: rgba(8, 27, 59, 0.75) }
html[data-theme="dark"] .avatar-crop { box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .avatar-crop-stage { background-color: #1a2028 }
html[data-theme="dark"] .avatar-crop-stage i { box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .cs-options { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.352) }
html[data-theme="dark"] .item-summary-quantity input { color: #6d97e4 }
html[data-theme="dark"] .item-summary-quantity input:focus { outline: 2px solid #497fdf }

/* ---- gastos.css ---- */
html[data-theme="dark"] .gx-date input { background-color: #0f131d }
html[data-theme="dark"] .gx-tabs { background-color: #0f131d }
html[data-theme="dark"] .gx-bar-track i { background: linear-gradient(90deg, #146af9, #17c6f8) }
html[data-theme="dark"] .gx-table tfoot td { background-color: #111521 }
html[data-theme="dark"] .gx-void { color: #e46d81 }
html[data-theme="dark"] .pill.danger { background-color: #271014; color: #e46d81 }
html[data-theme="dark"] .gx-badge { background-color: #e13c60; color: #ffffff }
html[data-theme="dark"] .gx-alert { border: 1px solid #6f612a; background-color: #292511; color: #e89768 }
html[data-theme="dark"] .gx-bar.warn .gx-bar-track i { background: linear-gradient(90deg, #f1a82e, #f6c23c) }
html[data-theme="dark"] .gx-bar.over .gx-bar-track i { background: linear-gradient(90deg, #e13c60, #ef4360) }
html[data-theme="dark"] .gx-clip { background-color: #0f131d }
html[data-theme="dark"] .gx-clip.has { border-color: #2a496f }
html[data-theme="dark"] .gx-subtotal td { background-color: #14191f }
html[data-theme="dark"] .gx-cash.closed { border-color: #2a6f42; background-color: #0f2315 }
html[data-theme="dark"] .gx-in { color: #6ce4b6 }
html[data-theme="dark"] .gx-out { color: #e46d81 }
html[data-theme="dark"] .gx-moves li { background-color: #14191f }
html[data-theme="dark"] .gx-diff.ok { background-color: #122a1e; color: #6ce4b6 }
html[data-theme="dark"] .gx-diff.bad { background-color: #261011; color: #e46d81 }
html[data-theme="dark"] .gx-pending { color: #f39e5e }
html[data-theme="dark"] .gx-ledger .gx-in { color: #6ce4b6 }
html[data-theme="dark"] .gx-ledger .gx-out { color: #e46d81 }
html[data-theme="dark"] .gx-ledger tr.gx-abono td { background-color: #122219 }
html[data-theme="dark"] .gx-ledger tr.gx-caja td { background-color: #14191f }
html[data-theme="dark"] .gx-ledger tr.gx-opening td { background-color: #101928 }
html[data-theme="dark"] .gx-ledger tr.gx-quick td { background-color: #10141f; border-bottom: 2px solid #314768 }
html[data-theme="dark"] .gx-ledger tr.gx-quick input, html[data-theme="dark"] .gx-ledger tr.gx-quick select { background-color: #0f131d }
html[data-theme="dark"] .gx-ledger tr.gx-quick input:focus, html[data-theme="dark"] .gx-ledger tr.gx-quick select:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .gx-ledger tr.gx-editing td { background-color: #292511 }
html[data-theme="dark"] .gx-ledger tfoot .gx-net td { background-color: #101928 }
html[data-theme="dark"] .gx-ledger tr.gx-day-head td { background-color: #0f131d; border-bottom: 1px solid #314768 }
html[data-theme="dark"] .gx-ledger tr.gx-day-close td { background-color: #121b2c; border-top: 2px solid #297aff; border-bottom: 10px solid #2c3344; color: #689be9 }
html[data-theme="dark"] .gx-ledger tr.gx-day-close small { color: #87a0ca }
html[data-theme="dark"] .gx-ledger tr.gx-day-close td:last-child, html[data-theme="dark"] .gx-ledger tr.gx-day-close td.gx-close-bal { background-color: #121b2c !important }
html[data-theme="dark"] .gx-ledger thead th { background-color: #151b24; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .gx-ledger tfoot tr:first-child td { background-color: #151b24 }
html[data-theme="dark"] .gx-ledger tfoot tr.gx-net td { background-color: #162033 }
html[data-theme="dark"] .gx-ledger tr.gx-day-close td, html[data-theme="dark"] .gx-ledger tr.gx-day-close td:last-child, html[data-theme="dark"] .gx-ledger tr.gx-day-close td.gx-close-bal { background-color: #151f33 !important; border-top: 2px solid #297aff; color: #689be9 }
html[data-theme="dark"] .gx-ledger tr.gx-day-net td { background-color: #1a253b !important; border-bottom: 12px solid #2c3344; color: #689be9 }
html[data-theme="dark"] .qd-drawer { background: var(--surface, #0f131d); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .qd-drawer::backdrop { background-color: rgba(15, 23, 42, 0.56) }
html[data-theme="dark"] .qd-progress i { background: var(--green, #23dc67) }
html[data-theme="dark"] .qd-in { color: var(--green, #6de399) }
html[data-theme="dark"] .qd-out { color: var(--red, #e56c6c) }
html[data-theme="dark"] .cx-changed td { background-color: #271f10 }
html[data-theme="dark"] [data-view-panel="inicio"] .metric[data-home-card]:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .tb-tip { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.308) }
html[data-theme="dark"] .ch-badge { color: #ffffff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6) }
html[data-theme="dark"] .ch-panel { box-shadow: -12px 0 32px rgba(0, 0, 0, 0.308) }
html[data-theme="dark"] .ch-msg { background-color: #151a23 }
html[data-theme="dark"] .ch-task { background: var(--amber-soft, #302714); color: var(--amber, #f3b45d) }
html[data-theme="dark"] .ch-task.done { background: var(--green-soft, #182920) }
html[data-theme="dark"] .payment-rule-note { color: var(--amber,#f3b45d) }
html[data-theme="dark"] .tx-yd.has.tone-draft { background-color: #1d2538; color: #d8dce3 }
html[data-theme="dark"] .tx-yd.has.tone-review { background-color: #f3b83f; color: #fbb756 }
html[data-theme="dark"] .tx-yd.has.tone-danger { background-color: #d85063; color: #ffffff }
html[data-theme="dark"] .tx-yd.has.tone-success { background-color: #27d899; color: #ffffff }
html[data-theme="dark"] .tx-pop { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.396) }
html[data-theme="dark"] .tx-cal-item.tone-draft { background-color: #191e25; color: #8f9aaf }
html[data-theme="dark"] .tx-cal-item.tone-review { background: var(--amber-soft, #302714); color: var(--amber, #f3b45d) }
html[data-theme="dark"] .tx-cal-item.tone-danger { background-color: #2a1212; color: #e0717f }
html[data-theme="dark"] .tx-cal-item.tone-success { background: var(--green-soft, #182920) }
html[data-theme="dark"] .fin-warn { border-left-color: var(--amber, #f5a332) }
html[data-theme="dark"] .fin-warn em { color: var(--amber, #f3b45d) }
html[data-theme="dark"] .fin-bad { border-left-color: #d35568 }
html[data-theme="dark"] .fin-bad em { color: #db828f }
html[data-theme="dark"] .fin-bar span { background: var(--viz-1, #4789d7) }
html[data-theme="dark"] .tk-stat.is-open b { color: #f6ae5a }
html[data-theme="dark"] .tk-stat.is-mine b { color: #888af1 }
html[data-theme="dark"] .tk-stat.is-late b { color: #e78181 }
html[data-theme="dark"] .tk-stat.is-ok b, html[data-theme="dark"] .tk-stat.is-done b { color: #63eec0 }
html[data-theme="dark"] .tk-col-icon { color: #ffffff }
html[data-theme="dark"] .tk-count { color: #ffffff }
html[data-theme="dark"] .tk-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.132) }
html[data-theme="dark"] .tk-card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .tk-card.is-late { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.264) }
html[data-theme="dark"] .tk-chip-quote { background: color-mix(in srgb, #4579e9 12%, var(--surface)); color: #7291e9 }
html[data-theme="dark"] .tk-chip-quote:hover { background: color-mix(in srgb, #4579e9 20%, var(--surface)) }
html[data-theme="dark"] .tk-chip-work { background: color-mix(in srgb, #11c3ee 12%, var(--surface)); color: #65cfec }
html[data-theme="dark"] .tk-due.is-late { background-color: #2c1212; color: #e0717f }
html[data-theme="dark"] .tk-swatch span { color: #ffffff }
html[data-theme="dark"] .tk-swatch input:focus-visible + span { outline: 3px solid rgba(59, 115, 237, 0.45) }

/* ---- Ajustes finos ---- */
html[data-theme="dark"] .brand img, html[data-theme="dark"] .decoapp-logo img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .pill.success { color: #3ecf8e; background: rgba(62, 207, 142, .14); }
html[data-theme="dark"] .pill.review { color: #f6b54a; background: rgba(246, 181, 74, .14); }
html[data-theme="dark"] .pill.draft { color: #a9b6cf; background: rgba(154, 168, 194, .14); }
html[data-theme="dark"] .pill.danger { color: #ff8a9b; background: rgba(255, 107, 129, .14); }
html[data-theme="dark"] .gx-in { color: #3ecf8e; }
html[data-theme="dark"] .tx-yd.has.tone-draft { background: #2c3850; color: #c9d3e6; }
html[data-theme="dark"] .tx-yd.has.tone-review { background: #8a5d0f; color: #ffe2a8; }
html[data-theme="dark"] .tx-yd.has.tone-danger { background: #c43349; color: #fff; }
html[data-theme="dark"] .tx-yd.has.tone-success { background: #168a61; color: #fff; }
html[data-theme="dark"] .tx-pop { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .tk-due.is-late { background: rgba(255, 107, 129, .14); color: #ff8a9b; }
html[data-theme="dark"] .tk-card.is-late { box-shadow: 0 0 0 1px rgba(255, 107, 129, .55); }
html[data-theme="dark"] .tk-chip-quote { color: #8fb4ff; }
html[data-theme="dark"] .tk-chip-work { color: #5fd4ec; }
html[data-theme="dark"] .tk-avatar { background: hsl(var(--h) 45% 24%); color: hsl(var(--h) 80% 80%); }
html[data-theme="dark"] .tk-card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .quote-status-trigger, html[data-theme="dark"] .quote-grid-table .pill { --st-bg: color-mix(in srgb, var(--st) 18%, #121a2b) !important; --st-ink: color-mix(in srgb, var(--st) 72%, #ffffff) !important; }
html[data-theme="dark"] .quote-status-trigger.draft, html[data-theme="dark"] .quote-grid-table .pill.draft { --st-ink: #c9d3e6 !important; }
html[data-theme="dark"] .cm-chart { --tx-late: #c98500; --tx-over: #ff6b81; --tx-pend: #3a4865; }
html[data-theme="dark"] .tx-chart { --tx-ok: #199e70; --tx-late: #c98500; --tx-over: #ff6b81; --tx-pend: #3a4865; }
html[data-theme="dark"] .gx-out { color: #ff7a8e; }
html[data-theme="dark"] .item-grand-total:not(.is-double) { color: #fff; background: #1d4ea8; }
html[data-theme="dark"] .item-summary-quantity input { color: #8fb4ff; }
html[data-theme="dark"] .modal::backdrop, html[data-theme="dark"] dialog::backdrop { background: rgba(2, 6, 18, .7); }
html[data-theme="dark"] .prototype-badge { background: #182235; }
