/* V35 · superficies solidas, modo oscuro completo y chat mas claro */

/* Base solida: se conservan los colores de identidad, sin degradados decorativos. */
body{background:#f3f7fa!important}
.gtic-sidebar{background:#123a57!important}
.gtic-logo-mark{background:#fff!important}
.gtic-avatar,.nav-ico.accent,.chat-v23-avatar.is-support{background:var(--gtic-accent,#ff8500)!important}
.glass-card,.card{background:#fff!important}
.hero-card,
.page-hero,.gtic-ticket-head,.ticket-detail-hero,.ticket-simple-hero,.delivery-doc-head,
.chat-hero-pro,.chat-room-hero,.planning-hero-v069,.planning-hero-v074,.planning-hero-v077,
.settings-hero-v069,.settings-hero-v071,.notification-hero-v071,.stel-hero-v074,
.users-hero-clean,.reports-hero-clean{background:#174b68!important;background-image:none!important}
.hero-card:after,.page-hero:after,.gtic-ticket-head:after,.ticket-detail-hero:after,
.chat-hero-pro:after,.chat-room-hero:after,.planning-hero-v069:after,.settings-hero-v069:after{display:none!important;background:none!important}
.stat-card.accent{background:var(--gtic-accent,#ff8500)!important}
.btn{background:var(--gtic-primary,#17324a)!important;background-image:none!important}
.btn.danger{background:#dc4b55!important}
.btn.ok,.btn.success{background:#239a68!important}
.btn.warning{background:#ed8500!important}
.btn.secondary{background:#edf3f8!important}
.btn.ghost{background:transparent!important}
.gtic-section-actions-card{background:#eef7fc!important;background-image:none!important}
.settings-tab-v13.is-active{background:#e7f8fa!important;background-image:none!important}
.notification-select-v12 input:checked+span,
input[type="checkbox"]:not([data-notification-select]):not([data-notification-select-all]):checked{background:var(--gtic-teal,#20c6c9)!important;background-image:none!important}
.report-trend-bar-v12,.storage-quota-track-v14 span,.kpi-fill{background:var(--gtic-teal,#20c6c9)!important;background-image:none!important}
.chat-v23-new{background:var(--gtic-primary,#173a57)!important;background-image:none!important}
.chat-v23-messages{background-color:#eef3f0!important;background-image:none!important}
.chat-v23-room-head,.planning-day-v072 header{background:#fff!important;background-image:none!important}

/* Documentos y estados: color por borde/acento, superficie limpia. */
.gtic-document-row,.gtic-document-row.invoice,.gtic-document-row.delivery,.gtic-document-row.quote,
.gtic-sat-row,.quote-row-v14,.gtic-ticket-card,
.gtic-ticket-card.status-nueva,.gtic-ticket-card.status-recibida,.gtic-ticket-card.status-en_curso,
.gtic-ticket-card.status-pendiente_info,.gtic-ticket-card.status-pendiente_material,
.gtic-ticket-card.status-equipo_retirado,.gtic-ticket-card.status-en_taller,
.gtic-ticket-card.status-resuelta,.gtic-ticket-card.status-cerrada,.gtic-ticket-card.status-cancelada,
.stel-tool-card.danger{background:#fff!important;background-image:none!important}

/* El estilo colorido se mantiene mediante el lateral y los estados. */
.gtic-document-row.invoice{border-color:#bce9fb!important}
.gtic-document-row.delivery{border-color:#bceacb!important}
.gtic-document-row.quote{border-color:#f7d99b!important}

/* Componentes de apoyo tambien solidos. */
.stel-tool-card,.stel-check-card,.stel-center-checks,.stel-check-tools button,
.stel-safe-card-v074,.stel-module-grid-v074,.stel-actions-grid-v074 form,.stel-link-card-v074,
.report-step-v14,.report-type-card-v14,.report-builder-actions-v14,.permissions-grid,.permissions-grid .checkline,
.resource-save-bar-v29,.reservation-schedule-v26,.reservation-schedule-v28,.reservation-schedule-day-v26,
.reservation-schedule-day-v28,.reservation-mode-selector-v27 button,.reservation-selected-slot-v26,
.reservation-no-slots-v28,.workshop-mobile-edit-v10,.announcement-popup-card-v16{background-image:none!important}

/* Modo oscuro: superficies, textos y controles de todas las vistas principales. */
html[data-theme="dark"] body{background:#0b1520!important;background-image:none!important;color:#edf4fb!important}
html[data-theme="dark"] .gtic-sidebar{background:#0d2031!important;background-image:none!important}
html[data-theme="dark"] .gtic-main,
html[data-theme="dark"] .gtic-page-content{color:#edf4fb!important}
html[data-theme="dark"] .gtic-topbar{background:#12202e!important;border-color:#2a3b4e!important;backdrop-filter:none!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .gtic-documents-shell-v15,
html[data-theme="dark"] .gtic-documents-shell-v16,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .table-wrap-soft,
html[data-theme="dark"] .item-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .announcement-popup-card-v16,
html[data-theme="dark"] .gtic-user-dropdown,
html[data-theme="dark"] .gtic-smart-button,
html[data-theme="dark"] .gtic-smart-panel,
html[data-theme="dark"] .gtic-select-box,
html[data-theme="dark"] .compact-details,
html[data-theme="dark"] .ticket-summary-card,
html[data-theme="dark"] .ticket-meta-chip,
html[data-theme="dark"] .ticket-problem-card,
html[data-theme="dark"] .ticket-muted-panel,
html[data-theme="dark"] .ticket-summary-item,
html[data-theme="dark"] .notification-pro-item,
html[data-theme="dark"] .conversation-pro-card,
html[data-theme="dark"] .chat-panel-pro,
html[data-theme="dark"] .chat-thread-pro,
html[data-theme="dark"] .chat-compose-pro,
html[data-theme="dark"] .chat-v23-sidebar,
html[data-theme="dark"] .chat-v23-room,
html[data-theme="dark"] .chat-v23-room-head,
html[data-theme="dark"] .chat-v23-compose,
html[data-theme="dark"] .chat-v23-tools-popover,
html[data-theme="dark"] .chat-v23-readonly,
html[data-theme="dark"] .chat-v23-user-check,
html[data-theme="dark"] .center-chat-compose-v19,
html[data-theme="dark"] .reservation-day-v19,
html[data-theme="dark"] .reservation-day-v26,
html[data-theme="dark"] .reservation-slot-v26,
html[data-theme="dark"] .reservation-schedule-v26,
html[data-theme="dark"] .reservation-schedule-v28,
html[data-theme="dark"] .reservation-schedule-day-v26,
html[data-theme="dark"] .reservation-schedule-day-v28,
html[data-theme="dark"] .reservation-mode-selector-v27 button,
html[data-theme="dark"] .reservation-selected-slot-v26,
html[data-theme="dark"] .reservation-no-slots-v28,
html[data-theme="dark"] .reservation-issue-v21,
html[data-theme="dark"] .resource-save-bar-v29,
html[data-theme="dark"] .planning-day-v072,
html[data-theme="dark"] .planning-center-card-v072,
html[data-theme="dark"] .stel-link-card-v072,
html[data-theme="dark"] .stel-switches-v072 label,
html[data-theme="dark"] .stel-sync-scope-v072 label,
html[data-theme="dark"] .stel-actions-grid-v072 form,
html[data-theme="dark"] .stel-safe-card-v074,
html[data-theme="dark"] .stel-module-grid-v074,
html[data-theme="dark"] .stel-actions-grid-v074 form,
html[data-theme="dark"] .stel-link-card-v074,
html[data-theme="dark"] .stel-tool-card,
html[data-theme="dark"] .stel-check-card,
html[data-theme="dark"] .stel-center-checks,
html[data-theme="dark"] .stel-check-tools button,
html[data-theme="dark"] .settings-thumb-v072,
html[data-theme="dark"] .settings-save-bar-v072,
html[data-theme="dark"] .brand-current-v072,
html[data-theme="dark"] .report-step-v14,
html[data-theme="dark"] .report-type-card-v14,
html[data-theme="dark"] .report-builder-actions-v14,
html[data-theme="dark"] .permissions-grid,
html[data-theme="dark"] .permissions-grid .checkline,
html[data-theme="dark"] .workshop-mobile-edit-v10,
html[data-theme="dark"] .help-intro-v22,
html[data-theme="dark"] .tutorial-video-link-v21,
html[data-theme="dark"] .support-thread-pinned-v21,
html[data-theme="dark"] .guided-tour-popover-v19{
  background:#162434!important;
  background-image:none!important;
  border-color:#2c4054!important;
  color:#edf4fb!important;
  box-shadow:0 12px 32px rgba(0,0,0,.22)!important
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .gtic-ticket-head,
html[data-theme="dark"] .ticket-detail-hero,
html[data-theme="dark"] .ticket-simple-hero,
html[data-theme="dark"] .delivery-doc-head,
html[data-theme="dark"] .chat-hero-pro,
html[data-theme="dark"] .chat-room-hero,
html[data-theme="dark"] .planning-hero-v069,
html[data-theme="dark"] .planning-hero-v074,
html[data-theme="dark"] .planning-hero-v077,
html[data-theme="dark"] .settings-hero-v069,
html[data-theme="dark"] .settings-hero-v071,
html[data-theme="dark"] .notification-hero-v071,
html[data-theme="dark"] .stel-hero-v074,
html[data-theme="dark"] .users-hero-clean,
html[data-theme="dark"] .reports-hero-clean{background:#173c55!important;background-image:none!important;border-color:#285873!important}

html[data-theme="dark"] .gtic-section-actions-card{background:#132536!important;background-image:none!important;border-color:#28475d!important}
html[data-theme="dark"] .gtic-section-action{background:#192c3d!important;color:#dceaf5!important;border-color:#344e63!important}
html[data-theme="dark"] .gtic-section-action:hover,
html[data-theme="dark"] .gtic-section-action.active{background:#2b6b91!important;color:#fff!important;border-color:#438ab0!important}
html[data-theme="dark"] .gtic-back-action{background:#16283a!important;color:#dceaf5!important;border-color:#438ab0!important}

html[data-theme="dark"] .gtic-document-row,
html[data-theme="dark"] .gtic-document-row.invoice,
html[data-theme="dark"] .gtic-document-row.delivery,
html[data-theme="dark"] .gtic-document-row.quote,
html[data-theme="dark"] .gtic-sat-row,
html[data-theme="dark"] .quote-row-v14,
html[data-theme="dark"] .gtic-ticket-card,
html[data-theme="dark"] .gtic-ticket-card.status-nueva,
html[data-theme="dark"] .gtic-ticket-card.status-recibida,
html[data-theme="dark"] .gtic-ticket-card.status-en_curso,
html[data-theme="dark"] .gtic-ticket-card.status-pendiente_info,
html[data-theme="dark"] .gtic-ticket-card.status-pendiente_material,
html[data-theme="dark"] .gtic-ticket-card.status-equipo_retirado,
html[data-theme="dark"] .gtic-ticket-card.status-en_taller,
html[data-theme="dark"] .gtic-ticket-card.status-resuelta,
html[data-theme="dark"] .gtic-ticket-card.status-cerrada,
html[data-theme="dark"] .gtic-ticket-card.status-cancelada{
  background:#172737!important;
  background-image:none!important;
  border-color:#30475b!important;
  color:#edf4fb!important;
  box-shadow:0 10px 26px rgba(0,0,0,.18)!important
}
html[data-theme="dark"] .gtic-document-row.invoice{border-left-color:#38bdf8!important}
html[data-theme="dark"] .gtic-document-row.delivery{border-left-color:#22c55e!important}
html[data-theme="dark"] .gtic-document-row.quote{border-left-color:#f59e0b!important}
html[data-theme="dark"] .gtic-document-title strong,
html[data-theme="dark"] .gtic-sat-title strong,
html[data-theme="dark"] .quote-title-v14 strong,
html[data-theme="dark"] .gtic-ticket-card h2,
html[data-theme="dark"] .gtic-ticket-card h3,
html[data-theme="dark"] .gtic-ticket-title{color:#f3f8fc!important}
html[data-theme="dark"] .gtic-document-summary,
html[data-theme="dark"] .gtic-document-meta,
html[data-theme="dark"] .gtic-sat-description,
html[data-theme="dark"] .gtic-sat-meta,
html[data-theme="dark"] .quote-description-v14,
html[data-theme="dark"] .quote-meta-v14,
html[data-theme="dark"] .gtic-ticket-card p,
html[data-theme="dark"] .gtic-ticket-card small{color:#a9bacb!important}
html[data-theme="dark"] .gtic-document-board.is-grid .gtic-document-actions{border-top-color:#31475a!important}
html[data-theme="dark"] .quote-list-scroll-v14{background:#101d2a!important;border-color:#2c4054!important}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .chat-search-field,
html[data-theme="dark"] .gtic-mobile-filter-advanced,
html[data-theme="dark"] .settings-upload-drop-v072,
html[data-theme="dark"] .stel-client-search{
  background-color:#0f1c29!important;
  color:#edf4fb!important;
  border-color:#34485d!important
}
html[data-theme="dark"] input[type="checkbox"]:not([data-notification-select]):not([data-notification-select-all]){
  background:#0f1c29!important;
  border-color:#5b7288!important;
  box-shadow:inset 0 0 0 3px #0f1c29!important
}
html[data-theme="dark"] input[type="checkbox"]:not([data-notification-select]):not([data-notification-select-all]):checked{
  background:var(--gtic-teal,#20c6c9)!important;
  border-color:var(--gtic-teal,#20c6c9)!important;
  box-shadow:inset 0 0 0 2px var(--gtic-teal,#20c6c9)!important
}

html[data-theme="dark"] .table th{background:#101d2a!important;color:#b2c1cf!important;border-color:#2c4054!important}
html[data-theme="dark"] .table td{color:#e1eaf2!important;border-color:#2c4054!important}
html[data-theme="dark"] .table tr:hover td{background:#1c2d3e!important}
html[data-theme="dark"] .divider,
html[data-theme="dark"] .chat-v23-sidebar-head,
html[data-theme="dark"] .chat-v23-room-head,
html[data-theme="dark"] .chat-v23-compose,
html[data-theme="dark"] .chat-v23-readonly{border-color:#2c4054!important}

html[data-theme="dark"] .chat-v23-sidebar-head{background:#132231!important}
html[data-theme="dark"] .chat-v23-sidebar-title strong,
html[data-theme="dark"] .chat-v23-room-copy h2,
html[data-theme="dark"] .chat-v23-placeholder h2,
html[data-theme="dark"] .chat-v23-empty-room h3{color:#f1f6fa!important}
html[data-theme="dark"] .chat-v23-sidebar-title small,
html[data-theme="dark"] .chat-v23-thread-copy small,
html[data-theme="dark"] .chat-v23-thread-copy>span:last-child,
html[data-theme="dark"] .chat-v23-thread-meta time,
html[data-theme="dark"] .chat-v23-room-copy p,
html[data-theme="dark"] .chat-v23-empty-room,
html[data-theme="dark"] .chat-v23-placeholder p{color:#9fb0c3!important}
html[data-theme="dark"] .chat-v23-thread{color:#e4edf5!important}
html[data-theme="dark"] .chat-v23-thread:hover,
html[data-theme="dark"] .chat-v23-thread.is-active,
html[data-theme="dark"] .chat-v23-thread.is-pinned{background:#1d3447!important;border-color:#31516a!important}
html[data-theme="dark"] .chat-v23-messages{background:#0e1a26!important;background-image:none!important}
html[data-theme="dark"] .chat-v23-bubble{background:#223448!important;color:#edf4fb!important;box-shadow:0 4px 12px rgba(0,0,0,.2)!important}
html[data-theme="dark"] .chat-v23-message.is-mine .chat-v23-bubble{background:#174b56!important}
html[data-theme="dark"] .chat-v23-bubble.is-internal{background:#3c2e19!important;border-color:#684f24!important}
html[data-theme="dark"] .chat-v23-bubble header b{color:#8ee1bd!important}
html[data-theme="dark"] .chat-v23-bubble header time{color:#9babb9!important}
html[data-theme="dark"] .chat-v23-text{color:#edf4fb!important}
html[data-theme="dark"] .chat-v23-ticket{background:#172a39!important;border-color:#355066!important;color:#e8f1f8!important}
html[data-theme="dark"] .chat-v23-tools>summary,
html[data-theme="dark"] .chat-v23-emojis button{background:#213548!important;color:#e9f2f8!important;border-color:#3a5369!important}
html[data-theme="dark"] .chat-v23-room-actions .btn.danger{background:#4a2028!important;color:#ffb2bd!important;border-color:#75313d!important}

html[data-theme="dark"] .reservation-schedule-day-v28>summary,
html[data-theme="dark"] .reservation-slot-v26 strong,
html[data-theme="dark"] .reservation-selected-slot-v26 strong,
html[data-theme="dark"] .resource-save-state-v29 strong{color:#e9f2f8!important}
html[data-theme="dark"] .reservation-day-summary-v28,
html[data-theme="dark"] .reservation-schedule-head-v28 p,
html[data-theme="dark"] .reservation-selected-slot-v26 span,
html[data-theme="dark"] .reservation-selected-slot-v26 small,
html[data-theme="dark"] .resource-save-state-v29 span{color:#9fb0c3!important}
html[data-theme="dark"] .reservation-day-editor-v28,
html[data-theme="dark"] .reservation-slot-row-v28,
html[data-theme="dark"] .resource-delete-v27{border-color:#2c4054!important}
html[data-theme="dark"] .reservation-recess-tip-v28{background:#3d321e!important;border-color:#6d582d!important;color:#f6d995!important}
html[data-theme="dark"] .resource-save-bar-v29.is-dirty{background:#3b2e18!important;border-color:#795f2d!important}
html[data-theme="dark"] .resource-save-bar-v29.is-dirty .resource-save-state-v29 strong{color:#ffd78c!important}

html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-bottom-nav.mobile-bottom-nav-scroll{background:#0f1c29!important;border-color:#31465a!important;backdrop-filter:none!important}
html[data-theme="dark"] .gtic-list-view-toolbar{background:#132231!important;border-color:#2c4054!important;backdrop-filter:none!important}
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .gtic-pager a,
html[data-theme="dark"] .gtic-pager span{background:#172737!important;color:#dce8f2!important;border-color:#31485c!important}

/* Mantener visible la separacion de estados sin usar fondos degradados. */
html[data-theme="dark"] .badge.neutral{background:#243649!important;color:#d5e2ed!important}
html[data-theme="dark"] .badge.info{background:#153b5c!important;color:#9dd2ff!important}
html[data-theme="dark"] .badge.success{background:#153e32!important;color:#8ee1bd!important}
html[data-theme="dark"] .badge.warning{background:#4a3414!important;color:#ffd789!important}
html[data-theme="dark"] .badge.danger{background:#4a2025!important;color:#ffadb4!important}

@media(max-width:920px){
  html[data-theme="dark"] .gtic-section-actions-card{background:transparent!important;border:0!important;box-shadow:none!important}
}
