* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Tabela fluxo: table-layout fixed — células respeitam largura ── */
#fluxo-tabela td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#fluxo-tabela th {
  white-space: nowrap;
  /* overflow VISÍVEL para o resizer não ser cortado */
  overflow: visible;
}

/* ── Dropdown Relatórios ── */
.rel-item {
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: #222;
}
.rel-item:hover { background: #d0e4ff; }
.rel-item.rel-bold { font-weight: bold; }
.rel-separator {
  height: 1px;
  background: #ddd;
  margin: 3px 0;
}

/* ── Resize de colunas ── */
.col-resizer {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4px;
  cursor: col-resize;
  user-select: none;
  z-index: 2;
  background: transparent;
}
.col-resizer:hover { background: rgba(255,255,255,0.5); }
/* Linha guia vertical durante o arrasto */
#col-resize-guide {
  position: fixed;
  top: 0; bottom: 0;
  width: 2px;
  background: #ffcc00;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #c0c0c0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

/* ── TOP MENU ────────────────────────────────────────────── */
#top-menu {
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  display: flex;
  align-items: stretch;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
#top-menu .menu-item {
  padding: 1px 8px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  color: #000;
}
#top-menu .menu-item:hover { background: #316ac5; color: #fff; }

/* ── TABS BELOW MENU ─────────────────────────────────────── */
#tab-bar {
  background: #d4d0c8;
  border-bottom: 2px solid #808080;
  display: flex;
  height: 22px;
  flex-shrink: 0;
}
.tab-btn {
  padding: 2px 16px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  background: #d4d0c8;
  color: #000;
}
.tab-btn.active {
  background: #fff;
  border-color: #808080;
  border-bottom-color: #fff;
  font-weight: bold;
  color: #e87000;
}

/* ── MAIN BODY ───────────────────────────────────────────── */
#body-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── LEFT SIDEBAR ────────────────────────────────────────── */
#left-sidebar {
  width: 90px;
  background: #b0b0b0;
  border-right: 2px solid #808080;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  cursor: pointer;
  border: 1px solid transparent;
  margin: 1px 3px;
  border-radius: 2px;
  color: #000;
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  gap: 3px;
}
.sidebar-btn:hover { background: #316ac5; color: #fff; border-color: #0a246a; }
/* Submenu Cadastro: oculto por padrão (CSS), aberto via inline display:block */
#cadastro-submenu { display: none; }
#cadastro-submenu.aberto { display: block; }
.sidebar-subitem { flex-direction: row !important; justify-content: flex-start; gap: 6px !important; background: #eef2f8; }
.sidebar-subitem .btn-icon { font-size: 13px; }
.sidebar-btn:hover .btn-icon { filter: brightness(10); }
.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
#main-content {
  flex: 1;
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* ── RIGHT SIDEBAR ───────────────────────────────────────── */
#right-sidebar {
  width: 152px;
  background: #b0b0b0;
  border-left: 2px solid #808080;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

/* ── Notas Rápidas (mural de recados) ── */
#notas-panel {
  display: flex;
  flex-direction: column;
  max-height: 48%;
  border-bottom: 1px solid var(--line, #808080);
}
.notas-titulo {
  flex: 0 0 auto;
  position: relative;
  font-size: 11px;
  font-weight: bold;
  color: var(--accent, #1a4a8a);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 4px 3px;
}
.notas-add {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 19px;
  height: 19px;
  padding: 0;
  line-height: 16px;
  border: 1px solid var(--btn-line, #808080);
  background: var(--btn-bg, #e8e8e8);
  color: var(--btn-txt, #1a4a8a);
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
}
.notas-add:hover { filter: brightness(1.08); }
#notas-lista {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 3px 4px 5px;
}
.notas-vazio {
  font-size: 10px;
  color: var(--soft-txt, #888);
  text-align: center;
  padding: 8px 2px;
}
.nota-card {
  position: relative;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #b0b0b0);
  border-left: 3px solid var(--accent, #1a4a8a);
  border-radius: 4px;
  padding: 4px 6px 5px 5px;
  margin-bottom: 5px;
}
.nota-card.lida { opacity: .5; border-left-color: var(--soft-txt, #999); }
.nota-dest {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #1a4a8a);
  line-height: 1.15;
  text-transform: uppercase;
  padding-right: 13px;
  word-break: break-word;
}
.nota-meta {
  font-size: 9px;
  color: var(--soft-txt, #777);
  margin: 1px 0 2px;
}
.nota-txt {
  font-size: 11px;
  color: var(--panel-txt, #222);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.25;
  cursor: pointer;
}
.nota-del {
  position: absolute;
  top: 1px;
  right: 2px;
  border: none;
  background: transparent;
  color: #c00;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0 2px;
}
.nota-del:hover { color: #f00; }

/* ── Módulo Fiscal — formulários de configuração ─────────── */
.fisc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.fisc-sec {
  font-weight: bold; font-size: 12px; color: var(--accent, #1a4a8a);
  margin: 14px 0 5px; border-bottom: 1px solid var(--line, #ddd); padding-bottom: 3px;
}
.fisc-lbl { font-size: 11px; font-weight: bold; display: block; margin-bottom: 2px; color: var(--panel-txt, #333); }
.fisc-in { width: 100%; box-sizing: border-box; }

/* ── BOTTOM BAR ──────────────────────────────────────────── */
#bottom-bar {
  background: #d4d0c8;
  border-top: 2px solid #808080;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  justify-content: space-between;
  flex-shrink: 0;
  font-size: 10px;
}
#bottom-bar .reg-info { color: #000080; cursor: pointer; }
#bottom-bar .right-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
#bottom-search {
  border: 1px inset #808080;
  padding: 1px 4px;
  font-size: 10px;
  width: 160px;
  background: #fff;
}
.code-info { color: #000; font-size: 10px; }

/* ── HOME LOGO ───────────────────────────────────────────── */
#home-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  gap: 8px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.tv-icon {
  width: 120px;
  height: 100px;
}
.logo-text { font-size: 52px; font-weight: 900; color: #e87000; letter-spacing: -1px; }
.logo-sub { font-size: 22px; font-weight: 900; color: #111; letter-spacing: 3px; }

/* ── MODAL BASE ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent !important;
  z-index: 1000;
  pointer-events: none;
}
.modal-overlay:not(.hidden) { pointer-events: all; }
.modal-overlay.hidden { display: none; }

/* Janela da OS: fica ACIMA das janelas de fundo (Localizar OS, z=1000) e ABAIXO
   de tudo que abre de dentro dela (peça, serviço, fotos, histórico, encerrar...,
   z=2000). A faixa 1000–2000 é só dela.
   TEM que ser no CSS, não inline no HTML: o fecharOS() faz
   `modalOS.style.zIndex = ''`, que apaga qualquer valor inline. Com o valor
   inline, a 1ª OS abria certo e a 2ª (depois de um fecharOS) caía para o 1000
   do .modal-overlay e empatava com a filtragem — que ganhava por vir depois no
   HTML. No CSS, o `style.zIndex=''` não alcança e a regra sempre vale.
   Não voltar a empurrar z-index por JS (histórico: era 3000 no localizar-os.js
   e quebrava os modais filhos). */
#modal-os { z-index: 1500; }

/* ── LOGIN: cobre a página inteira; o sistema só aparece após entrar ──
   :not(.hidden) é essencial — senão o display:flex venceria o .hidden{display:none}
   e o login nunca sumiria depois de entrar. */
#login-overlay:not(.hidden) {
  background: #e9edf2 !important;   /* opaco: esconde o sistema atrás */
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 100000 !important;       /* acima de tudo */
  pointer-events: all !important;
}
#login-overlay .modal-window { position: static !important; margin: 0; }

.modal-window {
  background: #d4d0c8;
  border: 2px solid #808080;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
  min-width: 320px;
  position: fixed;
}
.modal-titlebar {
  background: linear-gradient(to right, #0a246a, #316ac5);
  color: #fff;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  cursor: move;
  gap: 4px;
  user-select: none;
}
.modal-titlebar .title-text { flex: 1; }
.modal-close { display: none; } /* substituído pelo win-ctrl-box */
.modal-body { padding: 8px; }

/* ── BOTÕES DE CONTROLE DA JANELA ────────────────────────── */
.win-ctrl-box {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.win-ctrl {
  width: 16px;
  height: 14px;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4d0c8;
  color: #000;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 0;
}
.win-ctrl:active { border-color: #808080 #fff #fff #808080; }
.win-ctrl.cls { color: #000; font-weight: bold; }
.win-ctrl.cls:hover { background: #cc0000; color: #fff; }

/* ── BUTTON STYLES ───────────────────────────────────────── */
.win-btn {
  background: #d4d0c8;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 3px 12px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.win-btn:active { border-color: #808080 #fff #fff #808080; }
.win-btn.primary { background: #316ac5; color: #fff; border-color: #6699cc #003399 #003399 #6699cc; }
.win-btn.danger { color: #cc0000; }

/* ── BOTÕES FORMA DE PAGAMENTO ───────────────────────────── */
.enc-pg-btn {
  width: 100%;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #aaa;
  border-radius: 3px;
  background: #e8e8e8;
  color: #555;
  margin-bottom: 4px;
  text-align: center;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.enc-pg-btn:hover { border-color: #316ac5; color: #316ac5; background: #f0f4ff; }
.enc-pg-btn.active { background: #316ac5; color: #fff; border-color: #003399; }
.enc-pg-display { background: #f5f5f5 !important; color: #333; pointer-events: none; }

/* ── INPUT STYLES ────────────────────────────────────────── */
.win-input {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 4px;
  font-size: 11px;
  background: #fff;
}
.win-input:focus { outline: none; border-color: #316ac5 #316ac5 #316ac5 #316ac5; }
.campo-erro { background: #ffcccc !important; border-color: #cc0000 !important; }

.win-select {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 4px;
  font-size: 11px;
  background: #fff;
}

/* ── TABLE ───────────────────────────────────────────────── */
.win-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.win-table th {
  background: #d4d0c8;
  border: 1px solid #808080;
  padding: 2px 6px;
  text-align: left;
  font-weight: bold;
}
.win-table td {
  border: 1px solid #d0d0d0;
  padding: 2px 6px;
}
.win-table tr:nth-child(even) td { background: #f0f0f0; }
.win-table tr:hover td { background: #316ac5; color: #fff; cursor: pointer; }

/* ── LOCALIZAR CLIENTE ───────────────────────────────────── */
#modal-localizar { width: 680px; }
.search-form-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.search-form-left { flex: 1; }
.search-form-right {
  border: 1px solid #808080;
  padding: 4px 8px;
  background: #d4d0c8;
  font-size: 10px;
}
.search-form-right label { display: block; margin-bottom: 2px; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.radio-group label { display: flex; align-items: center; gap: 3px; font-size: 10px; }
.results-table-wrap {
  height: 200px;
  overflow-y: auto;
  border: 2px inset #808080;
  margin-bottom: 6px;
}
.serie-section {
  background: #ffffc0;
  border: 1px solid #808080;
  padding: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}
.serie-note {
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 4px;
  font-size: 9px;
  max-width: 140px;
}

/* ── OS FORM ─────────────────────────────────────────────── */
#modal-os { width: 720px; max-height: 90vh; }
.os-header {
  background: #111;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.os-number {
  color: #00ff00;
  font-size: 26px;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 2px;
}
.os-actions { display: flex; gap: 4px; }
.os-client-block {
  background: #e8e8e0;
  border: 1px solid #808080;
  padding: 4px 8px;
  font-size: 11px;
}
.os-client-row { display: flex; gap: 4px; margin-bottom: 2px; }
.os-client-label { color: #000080; font-weight: bold; min-width: 60px; }
.os-client-val { color: #cc0000; font-weight: bold; }
.os-client-addr { color: #000080; }
.os-mid-row {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #c0c0c0;
}
.os-dates-block { flex: 1; }
.os-dates-block table td { padding: 2px 4px; font-size: 11px; }
.os-dates-block table td:first-child { color: #000080; font-weight: bold; white-space: nowrap; }
.os-situacao-block { flex: 1; }
.os-values-block {
  width: 180px;
  border: 1px solid #808080;
  padding: 4px;
  font-size: 11px;
  background: #f5f5f5;
}
.os-val-row { display: flex; justify-content: space-between; margin-bottom: 1px; }
.os-val-label { color: #000; }
.os-val-amount { color: #000080; font-weight: bold; }
.os-val-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 15px;
  font-weight: bold;
  color: #000080;
  border-top: 1px solid #808080;
  padding-top: 2px;
}

/* OS Tabs */
.os-tabs {
  display: flex;
  border-bottom: 2px solid #808080;
  background: #d4d0c8;
  padding: 0 8px;
}
.os-tab {
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-right: 2px;
  background: #b8b8b8;
  color: #000;
}
.os-tab.active {
  background: #fff;
  border-color: #808080;
  color: #cc6600;
  font-weight: bold;
}
.os-tab-content { display: none; padding: 8px; }
.os-tab-content.active { display: block; }

/* Equipamento tab */
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 11px;
}
.equip-grid .full-col { grid-column: 1 / -1; }
.field-label { color: #000080; margin-bottom: 1px; font-size: 10px; }
.field-row { display: flex; flex-direction: column; }
.field-row-h { display: flex; align-items: center; gap: 6px; }
.field-row-h .field-label { min-width: 60px; margin: 0; }
textarea.win-input { resize: vertical; font-family: inherit; }

/* OS footer */
.os-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-top: 1px solid #c0c0c0;
  background: #e8e8e0;
}
.os-footer label { font-size: 10px; color: #000080; font-weight: bold; }

/* ── DIALOG SMALL ────────────────────────────────────────── */
#modal-alterar { width: 280px; }
.dialog-body { padding: 16px; text-align: center; }
.dialog-body label { display: block; margin-bottom: 8px; font-size: 12px; }
.dialog-btns { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

/* ── LOADING ─────────────────────────────────────────────── */
.loading { color: #666; font-style: italic; padding: 8px; }

/* ── Lista de Configurações estilo Android ───────────────── */
.cfg-item:hover { background: #eef2f8; }
.cfg-back:hover { text-decoration: underline; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #c0c0c0; }
::-webkit-scrollbar-thumb { background: #808080; border: 2px solid #c0c0c0; }
::-webkit-scrollbar-thumb:hover { background: #606060; }

/* ── TELAS DE MÓDULOS ────────────────────────────────────── */
.tela-modulo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.tela-modulo.hidden { display: none; }
.tela-header {
  background: #316ac5;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 10px;
  flex-shrink: 0;
  border-bottom: 2px solid #0a246a;
}
.tela-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Sidebar sections */
.sidebar-section {
  font-size: 9px;
  font-weight: bold;
  color: #444;
  text-transform: uppercase;
  padding: 4px 6px 1px;
  letter-spacing: 0.5px;
  border-top: 1px solid #999;
  margin-top: 2px;
}
.sidebar-btn.active {
  background: #316ac5;
  color: #fff;
  border-color: #0a246a;
}

/* Panel box (resumo cards) */
.win-panel-box {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 6px 8px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Botões padrão e mini ────────────────────────────────────── */
.btn-padrao {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #e8e8e8;
  cursor: pointer;
  white-space: nowrap;
}
.btn-padrao:hover { background: #d0d0d0; }

.btn-mini {
  padding: 2px 5px;
  font-size: 11px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #f0f0f0;
  cursor: pointer;
  line-height: 1.2;
}
.btn-mini:hover { background: #ddd; }
.btn-mini-danger { border-color: #c00; color: #c00; }
.btn-mini-danger:hover { background: #ffe0e0; }

/* ── CONTAS A PAGAR / RECEBER — Abas internas ──────────── */
.contas-aba {
  padding: 3px 18px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid #808080;
  border-bottom: none;
  background: #c8d4e8;
  color: #000;
  margin-right: 2px;
  margin-top: 2px;
  border-radius: 3px 3px 0 0;
}
.contas-aba.aba-ativa {
  background: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  color: #1a4a8a;
}
.contas-aba:hover:not(.aba-ativa) { background: #d8e4f4; }

/* Linha da conta selecionada */
.contas-row-sel td { background: #316ac5 !important; color: #fff !important; }

/* Pg? badge */
.pg-pago    { color: #155724; font-weight: bold; }
.pg-parcial { color: #e87000; font-weight: bold; }
.pg-pend    { color: #721c24; }
.pg-vencida { color: #c00; font-weight: bold; }

/* ── Botões com ícones Lucide ───────────────────────────── */
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
}
.ct-btn i, .ct-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 2;
}

/* ── Dropdown menu dos botões de toolbar ────────────────── */
.ct-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5000;
  background: #fff;
  border: 1px solid #888;
  box-shadow: 3px 3px 8px rgba(0,0,0,.25);
  min-width: 200px;
  margin-top: 1px;
  font-size: 11px;
}
.ct-dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.ct-dropdown-item:hover { background: #316ac5; color: #fff; }
.ct-dropdown-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.ct-dropdown-sep { border-top: 1px solid #ddd; margin: 2px 0; }

/* ── MOTORISTA — agenda semanal ────────────────────────────
   As cores desta tela ficam AQUI, em classes, e nao inline no
   motorista.js. Motivo: o dark.css so alcanca estilo inline
   adivinhando o hex por substring de style="", e essa adivinhacao
   errava metade dos casos (clareava o texto sem escurecer o fundo).
   Pior: os cards fazem this.style.opacity='.45' ao arrastar, o que
   re-serializa o style inteiro para rgb(...) e faz o seletor por hex
   parar de casar no meio da sessao. Com classe, nao ha o que adivinhar.
   Estes valores sao o modo CLARO; o escuro vive no dark.css.  */
.mot-col        { background:#fff; border:1px solid #ccc; border-radius:4px;
                  display:flex; flex-direction:column; min-height:200px; }
.mot-col--hoje  { background:#e8f0fe; border:2px solid #1a4a8a; }

.mot-dia        { background:#dde3ed; color:#333; font-weight:bold; font-size:11px;
                  text-align:center; padding:6px 4px; border-radius:2px 2px 0 0; position:relative; }
.mot-col--hoje .mot-dia { background:#1a4a8a; color:#fff; }
.mot-dia-data   { font-size:13px; }

.mot-faixa      { padding:2px 5px; display:flex; align-items:center; gap:3px; }
.mot-faixa-lbl  { font-size:9px; font-weight:bold; flex:1; }
.mot-faixa--manha { background:#fffbe6; border-bottom:1px solid #f0e68c; }
.mot-faixa--manha .mot-faixa-lbl { color:#7a6000; }
.mot-faixa--tarde { background:#e8f4ff; border-top:2px solid #b0d0f0; border-bottom:1px solid #b0d0f0; }
.mot-faixa--tarde .mot-faixa-lbl { color:#004080; }

.mot-drop       { flex:1; padding:5px; overflow-y:auto; min-height:60px; transition:background .15s; }
.mot-drop--over { background:#dceeff; outline:2px dashed #1a4a8a; }
.mot-vazio      { font-size:9px; color:#ccc; text-align:center; margin-top:10px; font-style:italic; }

.mot-card       { background:#fff8e1; border-left:4px solid #e87000; padding:5px 7px;
                  margin-bottom:4px; cursor:grab; border-radius:2px; font-size:10px; line-height:1.4; }
.mot-card--ok   { background:#d4edda; border-left-color:#28a745; }
.mot-card--fin  { background:#ffdede; border-left-color:#cc0000; }
.mot-card-hora  { display:flex; align-items:center; font-weight:bold; color:#333; margin-bottom:1px; }
.mot-card-nome  { color:#000080; font-weight:bold; white-space:nowrap; overflow:hidden;
                  text-overflow:ellipsis; padding-left:23px; }
.mot-card--fin .mot-card-nome { color:#cc0000; }
.mot-card-os    { color:#666; font-size:9px; padding-left:23px; }

.mot-badge      { display:inline-flex; align-items:center; justify-content:center;
                  background:#1a4a8a; color:#fff; font-weight:900; font-size:10px;
                  min-width:18px; height:18px; border-radius:50%; margin-right:5px; flex-shrink:0; }
.mot-badge--ent { background:#155724; }
.mot-badge--fin { background:#cc0000; }

/* Lista "Marcado para Retirada": o hover era this.style.background='#dce8ff'
   por JS, e no escuro pintava a linha de azul CLARO sob texto claro. Vira
   classe pelo mesmo motivo das .mot-* acima. */
.mot-ret-row       { cursor:pointer; }
.mot-ret-row:hover { background:#dce8ff; }

/* ── Contas Fixas (gerenciador e cadastro): cor por classe, nunca hex
   inline — o modo escuro sobrescreve estas classes no dark.css. */
.cf-instrucao  { font-size:11px; color:#333; margin-bottom:6px; }
.cfe-recorbox  { border:1px solid #cbd6b0; border-radius:4px; padding:8px; background:#f6f9f0; }
.cfe-hint      { color:#666; }
.cf-rec-parc   { color:#8a4a00; font-weight:bold; }
.cf-rec-mensal { color:#2a6a2a; }
.cf-rec-sub    { font-size:9px; color:#666; }
