/* ============================================================
   Aurum Venture · design system
   Paleta da marca (warm neutrals + dourado) usada como pele;
   áreas de dados em superfície de alto contraste pra legibilidade.
   ============================================================ */
:root {
  --cream: #F2EDE3;
  --cream-2: #F7F3EB;
  --surface: #FFFFFF;
  --gold: #B89A63;
  --gold-deep: #9C7D4E;
  --gold-soft: #D6C29B;
  --mocha: #A98C6B;
  --ink: #3E362C;
  --ink-soft: #6B6052;
  --line: #E6DDCB;
  --line-soft: #EFE8DA;
  --ok: #4C8A44;    /* verde mais vivo (mantendo a base nude) */
  --warn: #C6871A;  /* âmbar mais vivo */
  --bad: #C2493A;   /* terracota mais vivo */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(62,54,44,.04), 0 8px 24px rgba(62,54,44,.06);
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #fff; }
::-moz-selection { background: var(--gold); color: #fff; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0 0 .3em; letter-spacing: .2px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--cream-2);
  border-right: 1px solid var(--line);
  padding: 26px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.brand { text-align: center; padding: 6px 0 22px; }
.brand .mono {
  font-family: var(--font-head); font-size: 34px; font-weight: 700;
  letter-spacing: 6px; color: var(--gold-deep); line-height: 1;
}
.brand .wm { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--mocha); margin-top: 6px; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 500; font-size: 14px;
}
.nav a:hover { background: var(--line-soft); text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.nav a .ic { width: 18px; text-align: center; opacity: .9; }
.sidebar .foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12.5px; color: var(--ink-soft); }
.sidebar .foot form { margin-top: 8px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 16px;
}
.topbar .crumb { color: var(--ink-soft); font-size: 13px; letter-spacing: .3px; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.empresa-switch select {
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--cream-2); cursor: pointer;
}
.who { font-size: 13px; color: var(--ink-soft); }
.content { padding: 30px 28px 60px; max-width: 1180px; width: 100%; }
.content.wide { max-width: none; padding: 24px 24px 40px; } /* board/funil usam a tela toda */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .hd { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .hd h3 { margin: 0; }
.card .bd { padding: 18px 20px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* stat cards */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.stat .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--mocha); }
.stat .val { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--ink); margin-top: 4px; line-height: 1.1; }
.stat .hint { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--mocha); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream-2); }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; }
.badge.ativo, .badge.concluida, .badge.done { background: #DEEFD8; color: var(--ok); }
.badge.pausado, .badge.em_andamento, .badge.doing, .badge.enviado { background: #FBEBC6; color: var(--warn); }
.badge.encerrado, .badge.pendente, .badge.todo, .badge.rascunho { background: #F8DDD7; color: var(--bad); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-link { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 12.5px; padding: 4px 6px; font-family: var(--font-body); }
.btn-link:hover { color: var(--bad); }
.btn-icon { background: none; border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.btn-icon:hover { background: var(--cream-2); color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,154,99,.15); }
.field textarea { resize: vertical; min-height: 80px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { padding: 8px 10px; font-size: 13px; }

/* ---------- misc ---------- */
.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }
.empty { text-align: center; color: var(--ink-soft); padding: 26px; font-size: 13.5px; }
.divider-gold { width: 44px; height: 2px; background: var(--gold); border: none; margin: 0 0 14px; }
.progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.tag-pill { display: inline-block; font-size: 11.5px; color: var(--mocha); background: var(--cream-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: none; }
.flash-erro { background: #F6E9E6; border: 1px solid #E3C6C0; color: var(--bad); padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background:
  radial-gradient(1200px 500px at 50% -10%, #fff 0%, var(--cream) 55%); padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(62,54,44,.12); padding: 38px 34px; text-align: center; }
.login-card .mono { font-family: var(--font-head); font-size: 44px; font-weight: 700; letter-spacing: 8px; color: var(--gold-deep); }
.login-card .wm { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--mocha); margin: 6px 0 26px; }
.login-card .field { text-align: left; }

/* ---------- processo / etapas (progresso ao vivo) ---------- */
.proc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.proc-pct-wrap { font-family: var(--font-head); color: var(--gold-deep); line-height: 1; }
#proc-pct { font-size: 32px; font-weight: 700; }
.proc-pct-sign { font-size: 17px; font-weight: 700; margin-left: 1px; }
.proc-bar-track { height: 12px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.proc-bar-track > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 999px; transition: width .55s cubic-bezier(.34,1.2,.4,1); }
.proc-count { font-size: 12.5px; color: var(--ink-soft); margin-top: 9px; }
.etapa-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.etapa-row:last-child { border-bottom: 0; }
.check-etapa { position: relative; flex-shrink: 0; cursor: pointer; display: flex; }
.check-etapa input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-etapa .box { width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; transition: .15s; position: relative; }
.check-etapa:hover .box { border-color: var(--gold); }
.check-etapa input:checked + .box { background: var(--gold); border-color: var(--gold); }
.check-etapa input:checked + .box::after { content: '✓'; color: #fff; font-size: .82rem; position: absolute; top: 0; left: 5px; }
.etapa-titulo { flex: 1; font-size: 14px; color: var(--ink); transition: .15s; }
.etapa-row.done .etapa-titulo { text-decoration: line-through; color: var(--ink-soft); }
.etapa-del { flex-shrink: 0; }

/* ---------- tarefas (checklist gostoso, com responsável) ---------- */
.tarefa-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.tarefa-item:last-child { border-bottom: 0; }
.tarefa-body { flex: 1; min-width: 0; }
.tarefa-titulo { font-size: 14px; color: var(--ink); transition: .15s; }
.tarefa-item.done .tarefa-titulo { text-decoration: line-through; color: var(--ink-soft); }
.tarefa-item { cursor: pointer; }
.tarefa-item:hover { background: var(--cream-2); }
.tarefa-meta { font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tarefa-meta a { color: var(--mocha); }
.tarefa-desc { color: var(--ink-soft); }
.tarefa-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.resp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); padding: 3px 11px 3px 3px; border-radius: 999px; white-space: nowrap; }
.resp-ini { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.t-edit { padding: 4px 0 14px 35px; }
.t-edit-grid { display: flex; flex-direction: column; gap: 8px; }
.t-edit-grid > input[name=titulo], .t-edit-grid > textarea { width: 100%; font-family: var(--font-body); font-size: 13.5px; color: var(--ink); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.t-edit-grid > textarea { min-height: 52px; resize: vertical; }

/* ---------- processos: links na ficha ---------- */
.proc-bar-track.sm { height: 7px; }
.proc-link { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); text-decoration: none; transition: .15s; }
.proc-link:hover { border-color: var(--gold); text-decoration: none; }
.proc-link-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink); }
.indic-badge { margin-top: 14px; background: #f1e6d8; color: var(--gold-deep); border-radius: 9px; padding: 9px 13px; font-size: 12.5px; font-weight: 600; text-align: center; }
.proc-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.proc-add form { margin: 0; }

/* ---------- reuniões: linha do tempo + tipos ---------- */
.badge.tipo-processo { background: #E8F0E6; color: var(--ok); }
.badge.tipo-financeiro { background: #F6ECD6; color: var(--warn); }
.badge.tipo-outro { background: #F0E7E5; color: var(--ink-soft); }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line-soft); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; position: relative; z-index: 1; }
.tipo-dot-financeiro { background: var(--warn); }
.tipo-dot-processo { background: var(--ok); }
.tipo-dot-outro { background: var(--ink-soft); }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.tl-notas { font-size: 13px; color: var(--ink-soft); margin-top: 4px; white-space: pre-wrap; }
.tl-link { font-size: 12.5px; color: var(--gold-deep); display: inline-block; margin-top: 5px; }
.chk-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.chk-inline input { width: auto; }
.reuniao-add > summary { display: inline-flex; cursor: pointer; list-style: none; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; }
.reuniao-add > summary::-webkit-details-marker { display: none; }
.reuniao-add > summary:hover { border-color: var(--gold); }

/* ---------- agenda ---------- */
.agenda-dia { margin-bottom: 18px; }
.agenda-data { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.agenda-item { display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item:hover { background: var(--cream-2); }
.agenda-link { flex: 1; display: flex; align-items: center; gap: 14px; padding: 13px 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.agenda-link:hover { text-decoration: none; }
.agenda-item form { padding-right: 12px; margin: 0; }
.agenda-hora { font-weight: 700; color: var(--gold-deep); font-size: 14px; min-width: 54px; }
.agenda-cli { flex: 1; font-weight: 500; }

/* ---------- kanban board ---------- */
.board { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding: 4px 2px 18px; min-height: calc(100vh - 200px); }
.lista { flex: 0 0 330px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; max-height: calc(100vh - 185px); }
.lista-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 0 2px; }
.lista-nome { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.lista-cards { flex: 1; overflow-y: auto; min-height: 12px; display: flex; flex-direction: column; gap: 8px; }
.cardk { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; }
.cardk:hover { border-color: var(--gold-soft); }
.cardk.dragging { opacity: .4; }
.cardk-titulo { font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.cardk-meta { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cardk-chk { font-size: 11px; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.cardk-chk.full { color: var(--ok); background: #E8F0E6; border-color: transparent; }
.lista-add { margin-top: 8px; }
.lista-add input, .lista-nova input { width: 100%; font-family: var(--font-body); font-size: 13px; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); }
.lista-add input:hover, .lista-nova input:hover { background: var(--surface); }
.lista-add input:focus, .lista-nova input:focus { outline: none; background: var(--surface); border-color: var(--gold); }
.lista-nova { flex: 0 0 330px; background: rgba(255,255,255,.4); border: 1px dashed var(--line); border-radius: 12px; padding: 6px; }

/* ---------- modal do card ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(44,39,34,.4); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.2); width: 100%; max-width: 540px; padding: 26px; position: relative; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 22px; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.modal-titulo { width: 100%; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin-bottom: 14px; }
.modal-titulo:focus { outline: none; border-color: var(--gold); }
.modal-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--mocha); font-weight: 600; margin: 12px 0 6px; }
.modal textarea { width: 100%; min-height: 90px; font-family: var(--font-body); font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; resize: vertical; }
.modal input[type=date] { font-family: var(--font-body); font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
.modal textarea:focus, .modal input:focus { outline: none; border-color: var(--gold); }
.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.modal-check { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 6px; }
.mcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.mcheck:last-child { border-bottom: 0; }
.mcheck-txt { flex: 1; font-size: 13.5px; color: var(--ink); }
.mcheck.done .mcheck-txt { text-decoration: line-through; color: var(--ink-soft); }

/* ============================================================
   CARD MODAL AMPLIADO · etiquetas + 2 colunas + comentários
   ============================================================ */
.modal-card { max-width: min(1480px, 96vw); width: 96vw; padding: 26px 34px 32px; border-top: 3px solid var(--gold); }
.mc-head { max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.mc-etiquetas { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 16px; }
.mc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.mc-col { min-width: 0; }
.mc-side { border-left: 1px solid var(--line-soft); padding-left: 30px; }
.modal-card .modal-titulo { font-size: 24px; }
.modal-card textarea[name=descricao] { min-height: 170px; font-size: 14.5px; }
.modal-card .mc-com-list { max-height: 46vh; }
.modal-card .mc-com-add textarea { min-height: 64px; }

/* etiquetas (chips de status estilo Trello) */
.etq { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .3px; border-radius: 999px; padding: 3px 11px; border: 1px solid transparent; line-height: 1.4; }
.etq-verde    { background: #DEEFD8; color: #367C2B; }
.etq-ambar    { background: #FBEBC6; color: #A5721A; }
.etq-azul     { background: #DBE9F5; color: #2C5D86; }
.etq-cinza    { background: #ECE8E1; color: #5F564A; }
.etq-vermelho { background: #F8DDD7; color: #B03D2E; }
/* botões de etiqueta no modal: off = esmaecido, on = anel dourado */
button.etq { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
button.etq.off { opacity: .5; }
button.etq.off:hover { opacity: 1; transform: translateY(-1px); }
button.etq.on { box-shadow: 0 0 0 2px var(--gold); opacity: 1; }
.cardk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cardk-com { font-size: 11px; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* comentários (coluna direita) */
.mc-com-add { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mc-com-add textarea { min-height: 52px; }
.mc-com-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }
.mcom { background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 11px; }
.mcom-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.mcom-quando { font-size: 11px; font-weight: 600; color: var(--gold-deep); letter-spacing: .3px; }
.mcom-texto { font-size: 13.5px; color: var(--ink); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.mcom-vazio { font-size: 12.5px; color: var(--ink-soft); font-style: italic; padding: 6px 2px; }

@media (max-width: 760px) {
  .modal-card { padding: 18px 16px 20px; }
  .mc-grid { grid-template-columns: 1fr; gap: 18px; }
  .mc-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .mc-com-list { max-height: none; }
}

/* ============================================================
   PREMIUM POLISH · micro-interações e acabamento
   ============================================================ */
.content { animation: pageIn .35s cubic-bezier(.22,.9,.36,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card, .stat { transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.card:hover { box-shadow: 0 2px 4px rgba(62,54,44,.05), 0 14px 34px rgba(62,54,44,.09); }
.stat:hover { transform: translateY(-2px); box-shadow: 0 3px 6px rgba(62,54,44,.06), 0 16px 36px rgba(62,54,44,.10); }

.btn { transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-gold:hover { box-shadow: 0 6px 16px rgba(156,125,78,.28); }
.btn.loading { pointer-events: none; opacity: .75; position: relative; }
.btn.loading::after { content: ''; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; margin-left: 8px; }
.btn-ghost.loading::after { border-color: var(--line); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.nav a { transition: background .18s ease, color .18s ease, padding-left .18s ease; }
.nav a:hover { padding-left: 17px; }
.nav a.active { position: relative; }

::-webkit-scrollbar { height: 9px; width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

.modal-bg { animation: fadeBg .2s ease both; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal { animation: modalIn .25s cubic-bezier(.22,1.1,.36,1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.cardk { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cardk:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(62,54,44,.10); }
.cardk.dragging { opacity: .5; transform: rotate(2.5deg) scale(1.02); box-shadow: 0 12px 28px rgba(62,54,44,.18); }
.lista.drop-alvo { border-color: var(--gold); background: #f3ecdd; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty::before { content: '◆'; color: var(--gold-soft); font-size: 15px; }

/* toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; padding: 12px 18px; border-radius: 11px; box-shadow: 0 10px 30px rgba(0,0,0,.22); display: flex; align-items: center; gap: 10px; animation: toastIn .3s cubic-bezier(.22,1.2,.36,1) both; max-width: 340px; }
.toast.ok::before { content: '✓'; color: #A8C69F; font-weight: 700; }
.toast.erro { background: #7C4A40; }
.toast.erro::before { content: '!'; font-weight: 700; }
.toast.out { animation: toastOut .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* confirm modal */
.confirm-bg { position: fixed; inset: 0; background: rgba(44,39,34,.42); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 250; padding: 20px; animation: fadeBg .18s ease both; }
.confirm-box { background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); padding: 26px 28px; max-width: 380px; width: 100%; animation: modalIn .22s cubic-bezier(.22,1.1,.36,1) both; }
.confirm-box p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink); }
.confirm-box .acts { display: flex; gap: 10px; justify-content: flex-end; }

/* banner aviso (senha padrão etc.) */
.banner-aviso { background: #F6ECD6; border: 1px solid #E8D5AC; color: #7A5B2E; border-radius: var(--radius-sm); padding: 11px 15px; font-size: 13.5px; margin-bottom: 18px; }
.banner-aviso a { font-weight: 700; }
.flash-ok { background: #E8F0E6; border: 1px solid #CBDEC5; color: var(--ok); padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- financeiro ---------- */
.fin-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fin-val { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.fin-val.pos { color: var(--ok); }
.fin-val.neg { color: var(--bad); }
.fin-cell { font-variant-numeric: tabular-nums; font-size: 12px; text-align: right; white-space: nowrap; }
.fin-cell.pos { color: var(--ok); } .fin-cell.neg { color: var(--bad); }
.stat-alerta::before { background: var(--bad); }
.fin-form-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr 1.2fr 1fr .8fr; gap: 12px; align-items: end; margin-bottom: 12px; }
.fin-table th { text-align: left; } .fin-table td { font-size: 13px; }
.dre-table th, .dre-table td { padding: 8px 9px; }
.dre-secao td { background: var(--cream-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--mocha); }
.dre-total td { border-top: 1.5px solid var(--line); font-weight: 600; }
.dre-resultado td { background: #f7f2e8; border-top: 2px solid var(--gold); }
.fin-mini { background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.fin-mini .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--mocha); }
.fin-mini .v { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-top: 2px; }
.fin-mini .v.pos { color: var(--ok); } .fin-mini .v.neg { color: var(--bad); }
.fin-mini.alerta { border-color: #E3C6C0; background: #F8F0EE; }

/* portal link row */
.portal-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.portal-row input { flex: 1; min-width: 220px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--cream-2); }

@media (max-width: 1080px) { .fin-form-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .row-2 { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 50px; }
  .fin-form-grid { grid-template-columns: 1fr 1fr; }
  #toasts { left: 16px; right: 16px; }
}

/* ============================================================
   RELATÓRIO DE PERÍODO
   ============================================================ */
.rel-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rel-periodo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.rel-periodo label { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.rel-periodo input[type=date] { font-family: var(--font-body); font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.rel-acoes { display: flex; gap: 8px; }

.rel-folha { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 40px 44px; max-width: 820px; }
.rel-cab { border-bottom: 2px solid var(--gold); padding-bottom: 18px; margin-bottom: 24px; }
.rel-marca { font-size: 11px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 700; }
.rel-titulo { font-family: var(--font-head); font-size: 27px; font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.rel-cliente { font-size: 15px; font-weight: 600; color: var(--ink); }
.rel-intervalo { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.rel-vazio { font-size: 14px; color: var(--ink-soft); font-style: italic; }
.rel-sec { margin-bottom: 26px; }
.rel-sec h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--gold-deep); border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; margin: 0 0 12px; }
.rel-item { margin-bottom: 12px; }
.rel-item-hd { font-size: 13.5px; color: var(--ink); }
.rel-item-tx { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 3px; white-space: pre-wrap; }
.rel-linha { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; }
.rel-check { color: var(--ok); font-weight: 700; }
.rel-ctx { font-size: 11.5px; color: var(--mocha); }
.rel-tag { font-size: 11px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--ink-soft); }
.rel-rodape { border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 12px; font-size: 11px; color: var(--mocha); text-align: center; }

@media print {
  .sidebar, .topbar, .no-print, #toasts, .banner-aviso { display: none !important; }
  body, .app, .main, .content { background: #fff !important; margin: 0 !important; padding: 0 !important; display: block !important; }
  .content { animation: none !important; }
  .rel-folha, .ct-folha { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .rel-sec { break-inside: avoid; }
  .ct-clausula, .ct-assinaturas { break-inside: avoid; }
  .ct-anexo { break-before: page; }
}

/* agenda: remanejar e compromisso avulso */
.remanejar-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 10px 0 4px; border-top: 1px dashed var(--line); margin-top: 8px; }
.remanejar-box input { font-family: var(--font-body); font-size: 13px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; }
.agenda-compromisso { background: #FBF8F1; }
.agenda-compromisso .agenda-cli { color: var(--ink-soft); }

/* anexos do card */
.anexo-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.anexo-item:last-child { border-bottom: 0; }
.anexo-nome { flex: 1; font-size: 13.5px; color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-nome:hover { color: var(--gold-deep); text-decoration: underline; }
.anexo-meta { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.anexo-vazio { font-size: 12.5px; color: var(--ink-soft); font-style: italic; padding: 4px 0; }
.anexo-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 9px; transition: all .15s ease; }
.anexo-drop.sobre { border-color: var(--gold); background: #F8F1E2; }
.cardk-anexos { font-size: 11px; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* etapa de conclusão do kanban */
.lista-final { box-shadow: inset 0 3px 0 var(--ok); }
.lista-final-btn { opacity: .3; font-size: 12px; }
.lista-final-btn:hover { opacity: .7; }
.lista-final-btn.on { opacity: 1; color: var(--ok); font-weight: 700; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .row-3 { grid-template-columns: 1fr; } }

/* descrição do card em modo leitura (markdown renderizado) */
.mc-desc-lida { font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 9px; padding: 11px 13px; min-height: 44px; cursor: text; }
.mc-desc-lida:hover { border-color: var(--gold-soft); }
.mc-desc-lida:empty::before { content: 'Sem descrição. Clique pra escrever.'; color: var(--ink-soft); font-style: italic; }
.mc-desc-lida strong { color: var(--ink); }

/* edição inline (clique no texto pra renomear) — usado em todo o sistema */
.edit-inline { cursor: text; border-radius: 6px; padding: 1px 5px; margin-left: -5px; transition: background .15s ease, box-shadow .15s ease; }
.edit-inline:hover { background: #F6EFE1; box-shadow: inset 0 0 0 1px var(--gold-soft); }
.edit-inline:hover::after { content: ' ✎'; font-size: .62em; color: var(--gold-deep); vertical-align: middle; }
.edit-inline[data-editando="1"]:hover::after { content: ''; }
.edit-inline-input { font: inherit; color: inherit; background: #fff; border: 1px solid var(--gold); border-radius: 6px; padding: 2px 7px; width: 100%; min-width: 120px; max-width: 100%; }
.edit-inline-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(184,154,99,.18); }
.lista-hd .lista-nome { flex: 1; min-width: 0; }
.lista-nova-dica { font-size: 10.5px; color: var(--mocha); padding: 2px 11px 4px; }

/* processos na ficha do cliente: renomear/excluir sem sair da tela */
.proc-linha { display: flex; align-items: center; gap: 8px; }
.proc-linha .proc-link { flex: 1; min-width: 0; }
.proc-acoes { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }

/* contrato preenchido (imprimível) */
.ct-folha { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 48px 56px; max-width: 820px; margin: 0 auto; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.ct-titulo { font-family: var(--font-head); font-size: 22px; font-weight: 700; text-align: center; color: var(--black, var(--ink)); margin-bottom: 22px; }
.ct-folha p { margin: 0 0 11px; text-align: justify; }
.ct-clausula { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--gold-deep); margin: 20px 0 8px; }
.ct-alinea { padding-left: 22px; }
.ct-branco { color: var(--mocha); letter-spacing: 1px; }
.ct-assinaturas { display: flex; gap: 40px; margin-top: 34px; }
.ct-assina { flex: 1; text-align: center; font-size: 12.5px; }
.ct-linha { border-top: 1px solid var(--ink); margin-bottom: 6px; height: 30px; }
.ct-testemunhas { display: flex; gap: 40px; }
.ct-testemunhas .ct-linha { flex: 1; }
.ct-anexo { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--gold-soft); }
.ct-forte { font-weight: 700; margin-top: 12px !important; }
.ct-lista { margin: 4px 0 10px 22px; }
.ct-lista li { margin-bottom: 3px; }
@media (max-width: 620px) {
  .rel-folha { padding: 24px 20px; }
  .rel-controls { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   DINAMISMO · identidade Aurum com mais vida
   ============================================================ */
/* fundo com respiro dourado no topo */
body { background: radial-gradient(1100px 380px at 18% -80px, #F8F2E4 0%, var(--cream) 62%); background-attachment: fixed; }

/* botões dourados: gradiente + brilho que atravessa no hover */
.btn-gold { background: linear-gradient(135deg, #C6A96E 0%, var(--gold) 45%, var(--gold-deep) 100%); position: relative; overflow: hidden; border: 0; }
.btn-gold::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent); transform: skewX(-20deg); transition: left .45s ease; }
.btn-gold:hover::after { left: 125%; }
.btn-gold:active { transform: scale(.975); }
.btn:active { transform: scale(.975); }

/* sidebar: item ativo com barra dourada, hover deslizando */
.nav a { position: relative; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav a:hover { transform: translateX(2px); }
.nav a.active { background: linear-gradient(135deg, #C6A96E, var(--gold-deep)); }
.nav a.active::before { content: ''; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold-deep); }
.brand .mono { background: linear-gradient(135deg, var(--gold-deep), #C9A468 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* traço dourado do título cresce ao carregar */
.page-head .divider-gold { transform-origin: left; animation: growLine .55s cubic-bezier(.22,.9,.36,1) both; }
@keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* stats: fio dourado no topo ao passar o mouse */
.stat { position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: 0; transition: opacity .25s ease; }
.stat:hover::after { opacity: 1; }

/* kanban: cards entram em cascata, etiqueta pinta a borda esquerda */
.cardk { animation: cardIn .3s ease both; border-left: 3px solid transparent; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lista-cards .cardk:nth-child(1) { animation-delay: .02s; } .lista-cards .cardk:nth-child(2) { animation-delay: .05s; }
.lista-cards .cardk:nth-child(3) { animation-delay: .08s; } .lista-cards .cardk:nth-child(4) { animation-delay: .11s; }
.lista-cards .cardk:nth-child(5) { animation-delay: .14s; } .lista-cards .cardk:nth-child(n+6) { animation-delay: .17s; }
.cardk.etqb-verde { border-left-color: #5E7D5A; } .cardk.etqb-ambar { border-left-color: #C9A244; }
.cardk.etqb-azul { border-left-color: #5A7A96; } .cardk.etqb-cinza { border-left-color: #A79F93; }
.cardk.etqb-vermelho { border-left-color: #A6584E; }
.lista-hd { border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 11px; }
.lista-n { font-size: 11px; font-weight: 700; color: var(--mocha); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 7px; }

/* scrollbars finas douradas */
.lista-cards::-webkit-scrollbar, .mc-com-list::-webkit-scrollbar, .board::-webkit-scrollbar { width: 6px; height: 8px; }
.lista-cards::-webkit-scrollbar-thumb, .mc-com-list::-webkit-scrollbar-thumb, .board::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 99px; }
.lista-cards::-webkit-scrollbar-track, .mc-com-list::-webkit-scrollbar-track, .board::-webkit-scrollbar-track { background: transparent; }

/* tabelas: linha ganha fio dourado à esquerda no hover */
.card table tbody tr { transition: background .16s ease, box-shadow .16s ease; }
.card table tbody tr:hover { background: #FBF7EE; box-shadow: inset 3px 0 0 var(--gold); }

/* listas (list-row) respiram no hover */
.list-row { transition: background .16s ease; border-radius: 7px; }
.list-row:hover { background: #FAF6EC; }

/* foco acessível dourado */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* saudação do dashboard */
.saudacao { font-size: 13px; color: var(--mocha); letter-spacing: .4px; margin-bottom: 2px; animation: pageIn .4s ease both; }

/* painel Hoje (dashboard) */
.hoje-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hoje-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 11px; padding: 10px 16px; font-size: 13.5px; color: var(--ink); box-shadow: var(--shadow); }
.hoje-chip b { font-family: var(--font-head); font-size: 18px; color: var(--gold-deep); }
.hoje-chip.alerta { border-left-color: var(--bad); }
.hoje-chip.alerta b { color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   COMERCIAL · funil de leads
   ============================================================ */
.funil .lista { flex: 0 0 300px; }
.funil .lista-nome { text-transform: uppercase; font-size: 12px; letter-spacing: .8px; color: var(--mocha); }
.leadk-valor { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--gold-deep); }
.leadk-meta { display: flex; gap: 6px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.leadk-dias { font-size: 10.5px; color: var(--ink-soft); }
.leadk-dias.parado { color: var(--bad); font-weight: 600; }
.funil-resumo { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.funil-pill { font-size: 12px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.funil-pill b { color: var(--gold-deep); }

/* card Resumo IA (ficha do cliente) */
.ia-box { background: linear-gradient(160deg, #FDFBF6, var(--surface)); border: 1px solid var(--gold-soft); border-radius: 12px; padding: 14px 16px; }
.ia-box .ia-meta { font-size: 11px; color: var(--mocha); margin-bottom: 6px; letter-spacing: .3px; }
.ia-box .ia-texto { font-size: 13.5px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.ia-off { font-size: 13px; color: var(--ink-soft); font-style: italic; }

/* dashboard: tarefas em destaque + prioridade visual */
.card-tarefas { border-top: 3px solid var(--gold); }
.card-tarefas .hd h3 { font-size: 19px; }
.tarefa-item.prio-atrasada { border-left: 3px solid var(--bad); padding-left: 11px; }
.tarefa-item.prio-hoje { border-left: 3px solid var(--gold); padding-left: 11px; }
.prio-chip { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; letter-spacing: .3px; }
.prio-chip.atrasada { background: #F8DDD7; color: var(--bad); }
.prio-chip.hoje { background: #FBEBC6; color: var(--warn); }

/* agenda: presença/falta */
.agenda-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agenda-presenca { display: flex; align-items: center; gap: 6px; padding-right: 12px; }
.btn-pres { width: 28px; height: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 12px; color: var(--ink-soft); transition: .15s; }
.btn-pres:hover { border-color: var(--gold); }
.btn-pres.on-ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-pres.on-bad { background: var(--bad); color: #fff; border-color: var(--bad); }

/* formatação do card: toolbar negrito/itálico + preview */
.rt-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rt-btn { width: 30px; height: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 14px; transition: .15s; }
.rt-btn:hover { border-color: var(--gold); background: #FBF7EE; }
.rt-dica { font-size: 11px; color: var(--sub); }
.rt-preview { display: none; margin-top: 8px; padding: 10px 12px; background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 9px; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.rt-preview b { color: var(--ink); }

/* financeiro v2: DRE por grupo, metas, gráficos, plano de contas */
.dre-grupo { cursor: pointer; background: #F7F2E7; }
.dre-grupo:hover td { background: #F3ECDC; }
.dre-caret { display: inline-block; width: 14px; color: var(--gold-deep); font-size: 11px; }
.dre-grupo-orc td { background: #F7F2E7; padding-top: 10px; }
.dre-orc-dif td { border-bottom: 1px solid var(--line); }
.metas-table input { width: 86px; font-family: var(--font-body); font-size: 12px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; text-align: right; background: #FFFDF9; }
.metas-table input:focus { outline: none; border-color: var(--gold); }
.metas-cell { padding: 4px 3px !important; }
.meta-bar { height: 10px; background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 99px; overflow: hidden; }
.meta-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.22,.9,.36,1); }
.meta-bar i.pos { background: linear-gradient(90deg, #C6A96E, var(--gold-deep)); }
.meta-bar i.neg { background: linear-gradient(90deg, #D9C9AE, var(--mocha)); }
.graf-legenda { display: flex; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.graf-legenda i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.graf-hbar { display: flex; align-items: center; gap: 12px; }
.graf-hbar-nome { flex: 0 0 180px; font-size: 13px; color: var(--ink); text-align: right; }
.graf-hbar-track { flex: 1; height: 14px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.graf-hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, #C6A96E, var(--gold-deep)); border-radius: 99px; }
.graf-hbar-val { flex: 0 0 110px; font-size: 12.5px; color: var(--ink-soft); }
.pc-grupo { margin-bottom: 20px; background: #FCFAF5; border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px 14px; }
.pc-grupo-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--gold-soft); padding-bottom: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pc-abas { display: flex; gap: 8px; margin-bottom: 16px; }
.pc-aba-n { display: inline-block; font-size: 10.5px; background: rgba(255,255,255,.35); border-radius: 99px; padding: 0 6px; margin-left: 5px; }
.btn-ghost .pc-aba-n { background: var(--cream-2); }
.pc-cod { display: inline-block; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--gold-deep); background: #F3EBDA; border-radius: 6px; padding: 2px 8px; min-width: 34px; text-align: center; }
.pc-cod-cat { background: var(--cream-2); color: var(--mocha); font-weight: 600; }
.pc-cod-prev { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--gold-deep); background: #F3EBDA; border-radius: 6px; padding: 4px 9px; }
.pc-cat { padding-left: 8px; }
.pc-vazio { font-size: 12.5px; color: var(--ink-soft); font-style: italic; padding: 6px 4px 6px 14px; }
.pc-novo-grupo { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
@media (max-width: 620px) { .graf-hbar-nome { flex-basis: 110px; font-size: 11.5px; } .graf-hbar-val { flex-basis: 80px; font-size: 11px; } }

/* página pública de agendamento */
.ag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin: 10px 0 4px; }
.ag-slot { position: relative; cursor: pointer; }
.ag-slot input { position: absolute; opacity: 0; }
.ag-slot .bx { display: block; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 9px 6px; font-size: 13px; background: var(--surface); transition: all .15s ease; }
.ag-slot .bx small { display: block; color: var(--ink-soft); font-size: 11px; }
.ag-slot input:checked + .bx { border-color: var(--gold); background: #F8F1E2; box-shadow: 0 0 0 1px var(--gold); font-weight: 600; }
.ag-slot:hover .bx { border-color: var(--gold-soft); }
