/* Tema oscuro de TicoCast. Se mantiene aquí para cubrir todos los módulos. */
body.dark-theme{
  color-scheme:dark;
  --ink:#eef7f3;
  --muted:#a8bbb4;
  --line:#315047;
  --paper:#183a32;
  --bg:#0d211c;
  --green:#245f50;
  --mint:#254c41;
  --lime:#d8ec8b;
  --orange:#f4b86a;
  --red:#ed7c70;
  --shadow:0 12px 32px rgba(0,0,0,.24);
  background:var(--bg);
  color:var(--ink)
}
body.dark-theme .topbar{background:rgba(12,35,29,.96);border-color:#315047;color:#fff}
body.dark-theme .search,
body.dark-theme .filter,
body.dark-theme .period,
body.dark-theme .icon-btn,
body.dark-theme .secondary,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea{background:#122d26!important;color:#eef7f3!important;border-color:#36584e!important}
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder{color:#8ea49c}
body.dark-theme .panel,
body.dark-theme .metric,
body.dark-theme .client-card,
body.dark-theme .collection,
body.dark-theme .attention,
body.dark-theme dialog,
body.dark-theme dialog form,
body.dark-theme .login-card,
body.dark-theme .service-card,
body.dark-theme .receipt-dialog,
body.dark-theme .client-contract,
body.dark-theme .chat-shell,
body.dark-theme .conversation-list,
body.dark-theme .chat-main,
body.dark-theme .chat-header,
body.dark-theme .chat-composer{background:#183a32!important;color:#eef7f3!important;border-color:#315047!important}
body.dark-theme .data-table td,
body.dark-theme .data-table th,
body.dark-theme .profile,
body.dark-theme .dialog-actions{border-color:#315047}
body.dark-theme .data-table tr:hover td,
body.dark-theme .conversation-item:hover,
body.dark-theme .conversation-item.active{background:#21483d!important}
body.dark-theme .avatar{background:#285346;color:#dff2e8}
body.dark-theme .close{background:#24483e;color:#fff}
body.dark-theme .type-switch,
body.dark-theme .progress{background:#102b24}
body.dark-theme .type-switch button.active{background:#2b594c;color:#fff}
body.dark-theme .bar.expense{background:#567067}
body.dark-theme .chat-messages{background-color:#102720!important}
body.dark-theme .message.incoming,
body.dark-theme .message.received{background:#29483f!important;color:#eef7f3!important}
body.dark-theme .message.outgoing,
body.dark-theme .message.sent{background:#255e4e!important;color:#fff!important}
body.dark-theme .fact-pill,
body.dark-theme .status.confirmed{background:#285346!important;color:#ccebdd!important}
body.dark-theme .eyebrow,
body.dark-theme .text-link,
body.dark-theme .panel-head button{color:#8fcab6}
body.dark-theme a{color:#9ad5c0}
body.dark-theme .chat-search{background:#122d26!important;border-color:#36584e!important}
body.dark-theme .chat-search input{background:transparent!important;color:#eef7f3!important}
body.dark-theme .conversation-item{background:#183a32!important;color:#eef7f3!important;border-color:#315047!important}
body.dark-theme .bubble.in,
body.dark-theme .payment-card,
body.dark-theme .day-separator{background:#29483f!important;color:#eef7f3!important;border-color:#315047!important}
body.dark-theme .bubble.out{background:#255e4e!important;color:#fff!important}
body.dark-theme .quick-replies button{background:#24483e;color:#cde9df;border-color:#36584e}
body.dark-theme .composer{background:#183a32!important;border-color:#315047!important}
body.dark-theme .compose-row{background:#183a32!important}
body.dark-theme .compose-row input{background:#102d26!important;color:#eef7f3!important;border-color:#36584e!important}
body.dark-theme .compose-row button{border-color:#36584e!important}
body.dark-theme .quick-replies{background:#183a32!important}
body.dark-theme .chat-main{background:#102720!important}
body.dark-theme .messages::-webkit-scrollbar-track,
body.dark-theme .conversation-list::-webkit-scrollbar-track{background:#102720}
body.dark-theme .messages::-webkit-scrollbar-thumb,
body.dark-theme .conversation-list::-webkit-scrollbar-thumb{background:#41675c!important}
.theme-toggle{font-size:18px}
@media (max-width:760px){
  .topbar{background:#12372f!important;color:#fff;border-color:#315047}
  .mobile-menu{color:#fff}
  .topbar .search{background:#1c463b;border-color:#315b50}
  .topbar .search input{color:#fff}
  .topbar .search input::placeholder{color:#b6cac3}
}
