/* Redesign visual Rota de Negócios — preserva os contratos de dados e eventos do app. */
:root {
  --ui-navy-950: #062b35;
  --ui-navy-900: #0a3440;
  --ui-navy-800: #123f4b;
  --ui-ink: #102a35;
  --ui-ink-soft: #587078;
  --ui-muted: #8aa0a6;
  --ui-bg: #f4f7f7;
  --ui-card: #ffffff;
  --ui-line: #e1e9e8;
  --ui-teal: #18a878;
  --ui-teal-strong: #087653;
  --ui-teal-soft: #e6f7f0;
  --ui-blue: #2d7fe8;
  --ui-amber: #d88b28;
  --ui-red: #c7545e;
  --ui-radius: 10px;
  --ui-shadow: 0 8px 22px rgba(6, 43, 53, .045);
}

html, body { background: var(--ui-bg); color: var(--ui-ink); }
body { min-width: 320px; }

.app-shell { grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 5; height: 100vh; padding: 28px 16px 18px; background: var(--ui-navy-950); }
.brand { min-height: 42px; padding: 0 12px 30px; }
.brand-logo { width: 176px; max-height: 42px; }
.nav-list { gap: 5px; }
.nav-item { min-height: 42px; padding: 11px 13px; border: 0; border-radius: 8px; color: #9ab5b9; font-size: 13px; font-weight: 650; }
.nav-item span { width: 20px; height: 20px; color: #77989e; }
.nav-item span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.active { background: var(--ui-navy-800); color: #fff; box-shadow: inset 3px 0 var(--ui-teal); }
.nav-item.active span { color: #45d7a2; }
.sidebar-foot { padding: 15px 10px 1px; border-top-color: rgba(221, 244, 239, .14); }
.sidebar-logout { margin-left: auto; border: 0; background: transparent; color: #7f9ca1; }
.sidebar-logout:hover { color: #fff; }

.main-content { min-width: 0; background: var(--ui-bg); }
.page { width: min(1440px, 100%); max-width: none; margin: 0 auto; padding: 30px clamp(24px, 4vw, 56px) 58px; }
.page-intro { align-items: flex-end; gap: 20px; margin: 0 0 22px; }
.page-header { display: grid; gap: 6px; }
.page-header h1 { color: var(--ui-ink); font-size: clamp(24px, 2.2vw, 31px); font-weight: 780; letter-spacing: -.055em; line-height: 1.08; }
.page-intro .page-description { color: var(--ui-ink-soft); font-size: 13px; line-height: 1.5; }
.page-actions { align-self: center; margin-left: auto; }
.actions { gap: 8px; }
.btn { min-height: 38px; border-radius: 7px; padding: 9px 14px; background: var(--ui-navy-900); font-size: 12px; font-weight: 750; }
.btn:hover { background: var(--ui-navy-800); }
.btn.primary { background: var(--ui-teal); }
.btn.primary:hover { background: var(--ui-teal-strong); }
.btn.secondary { border-color: var(--ui-line); background: #fff; color: var(--ui-ink-soft); }
.btn.secondary:hover { border-color: #b8cfca; background: #f8fbfa; }
.btn.danger { border-color: #f1d3d1; background: #fff4f2; color: var(--ui-red); }

.cards { grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; }
.metric-card { min-height: 116px; padding: 17px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-card); box-shadow: var(--ui-shadow); }
.metric-card .label { color: var(--ui-ink-soft); font-size: 11px; font-weight: 750; }
.metric-card .value { margin: 12px 0 7px; color: var(--ui-ink); font-size: 29px; font-weight: 820; letter-spacing: -.065em; }
.metric-card .hint { color: var(--ui-muted); font-size: 11px; }
.metric-card.highlight { border-color: #a7dfcb; background: var(--ui-teal-soft); box-shadow: var(--ui-shadow); }
.metric-card.highlight .label { color: var(--ui-teal-strong); }
.metric-card.highlight .value { color: var(--ui-ink); }

.card { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-card); box-shadow: var(--ui-shadow); }
.card-title { margin-bottom: 16px; }
.card-title h2 { color: var(--ui-ink); font-size: 15px; font-weight: 750; }
.card-title p { color: var(--ui-ink-soft); font-size: 12px; }
.dashboard-grid, .grid-2 { gap: 20px; margin-top: 20px; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.activity-card { min-height: 320px; }
.funnel-card { min-height: 220px; }
table { font-size: 12px; }
th { padding: 9px 0; border-bottom-color: var(--ui-line); color: var(--ui-muted); font-size: 10px; letter-spacing: .05em; }
td { padding: 12px 0; border-bottom-color: #eef3f2; color: var(--ui-ink-soft); }
td strong { color: var(--ui-ink); font-weight: 700; }
tbody tr:hover { background: transparent; }
.pill, .tag { border: 0; border-radius: 5px; background: var(--ui-teal-soft); color: var(--ui-teal-strong) !important; font-weight: 750; }
.progress { background: #edf3f1; }
.progress span.green { background: var(--ui-teal); }
.progress span.blue { background: var(--ui-blue); }
.progress span.amber { background: var(--ui-amber); }

.filter-card { margin-bottom: 20px; border-top: 3px solid var(--ui-teal); }
.filter-head { gap: 16px; }
.filter-grid { gap: 12px; }
.filter-grid select, .filter-grid input { min-height: 38px; }
.filter-status { background: #eff5f4; color: var(--ui-ink-soft); }
.advanced-filters { border-top-color: var(--ui-line); }
.advanced-filters summary { color: var(--ui-ink); }
.notice { border-color: #f0ddb9; background: #fffaf0; color: #785c2d; }

.counter-card { border-radius: var(--ui-radius); background: linear-gradient(145deg, var(--ui-navy-900), var(--ui-navy-950)); box-shadow: var(--ui-shadow); }
.counter-card .label { color: #a7c2c4; }
.counter-number { color: #5fe0ae; }
.btn.counter-btn { min-height: 46px; border: 0; }
.btn.counter-btn:hover, .btn.attended { background: #6af0bb; color: var(--ui-navy-950); }
.counter-undo .btn { min-height: 36px; }
.list-row, .settings-item { border-color: var(--ui-line); border-radius: 8px; background: #fff; }
.list-row strong, .settings-item strong { color: var(--ui-ink); }

.settings-primary-grid, .sync-layout { gap: 20px; }
.settings-section, .sync-card { border-radius: var(--ui-radius); }
.settings-section .settings-item { min-height: 48px; }
.settings-pipeline-card, .sync-import-card { border-top: 3px solid var(--ui-teal); }
.sync-backup-card { border-top: 3px solid var(--ui-blue); }
.sync-card .dropzone { min-height: 180px; border-color: #9dd5bf; background: var(--ui-teal-soft); }
.sync-card .actions .btn { width: 100%; }
.meeting-history, .call-history-card, .agenda-card, .ranking-card { margin-top: 20px; }
.meetings-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.agenda-notice { border-left-color: var(--ui-teal); border-color: #bfe7d6; background: var(--ui-teal-soft); color: var(--ui-teal-strong); }
.rank-position { background: var(--ui-teal-soft); color: var(--ui-teal-strong); }
.rank-score { color: var(--ui-teal-strong); }

.auth-page { background: var(--ui-bg); }
.auth-card { border-color: var(--ui-line); border-radius: 12px; box-shadow: var(--ui-shadow); }
.auth-brand { background: var(--ui-navy-950); }

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid, .grid-2 { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .dashboard-grid, .grid-2, .section-grid, .settings-primary-grid, .sync-layout { grid-template-columns: 1fr; }
  .meetings-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; height: auto; padding: 14px 16px; }
  .brand { min-height: 35px; padding: 0; }
  .brand-logo { width: 150px; }
  .nav-list { display: flex; overflow-x: auto; gap: 4px; margin-top: 11px; padding-bottom: 2px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; min-height: 36px; width: auto; padding: 9px 11px; font-size: 12px; }
  .sidebar-foot { display: none; }
  .page { padding: 24px 20px 42px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-actions { align-self: flex-start; margin-left: 0; }
  .filter-head { align-items: flex-start; flex-direction: column; }
  .filter-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .page { padding: 20px 16px 32px; }
  .cards, .meetings-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 104px; padding: 13px; }
  .metric-card .value { font-size: 24px; }
  .card { padding: 17px; }
  .filter-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

.settings-layout { display: grid; grid-template-columns: 312px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-side-nav { display: grid; gap: 4px; padding: 17px 14px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-card); box-shadow: var(--ui-shadow); }
.settings-summary { margin-top: 14px; padding: 15px 13px; border: 1px solid #e5efec; border-radius: 10px; background: #f8fbfa; }
.settings-summary-head h3 { margin: 0 0 4px; color: var(--ui-ink); font-size: 14px; }
.settings-summary-head p { margin: 0; color: var(--ui-ink-soft); font-size: 11px; }
.settings-summary-list { display: grid; gap: 8px; margin-top: 13px; }
.settings-summary-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid #e5efec; }
.settings-summary-list span { color: var(--ui-ink-soft); font-size: 11px; }
.settings-summary-list strong { color: var(--ui-ink); font-size: 14px; }
.settings-nav-item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 15px; border-radius: 8px; color: var(--ui-ink); text-decoration: none; }
.settings-nav-item:hover, .settings-nav-item.active { background: var(--ui-teal-soft); color: var(--ui-teal-strong); }
.settings-nav-icon { display: grid; width: 27px; height: 27px; place-items: center; color: var(--ui-ink); font-size: 25px; line-height: 1; }
.settings-nav-item.active .settings-nav-icon { color: var(--ui-teal); }
.settings-nav-item strong, .settings-nav-item small { display: block; }
.settings-nav-item strong { font-size: 14px; font-weight: 750; }
.settings-nav-item small { margin-top: 4px; color: var(--ui-ink-soft); font-size: 11px; }
.settings-content { display: grid; gap: 18px; min-width: 0; }
.settings-section { scroll-margin-top: 22px; padding: 20px; }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.settings-card-head h2 { margin: 0 0 5px; color: var(--ui-ink); font-size: 20px; letter-spacing: -.035em; }
.settings-card-head p { margin: 0; color: var(--ui-ink-soft); font-size: 12px; }
.settings-team-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.settings-tabs, .pipeline-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.settings-tab, .pipeline-tab { min-height: 39px; padding: 9px 16px; border: 1px solid var(--ui-line); border-radius: 7px; background: #fff; color: var(--ui-ink-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.settings-tab.active, .pipeline-tab.active { border-color: #b3ead4; background: var(--ui-teal-soft); color: var(--ui-teal-strong); box-shadow: inset 0 -2px var(--ui-teal); }
.settings-search { display: flex; align-items: center; gap: 9px; width: min(375px, 100%); min-height: 39px; padding: 0 12px; border: 1px solid var(--ui-line); border-radius: 7px; color: var(--ui-muted); }
.settings-search span { font-size: 22px; line-height: 1; }
.settings-search input { min-width: 0; min-height: 36px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.settings-search input:focus { box-shadow: none; }
.settings-table-wrap { overflow-x: auto; border: 1px solid #edf2f1; border-radius: 8px; }
.settings-table { min-width: 700px; }
.settings-table th { padding: 12px 14px; background: #f8fbfa; color: var(--ui-ink-soft); font-size: 11px; letter-spacing: 0; text-transform: none; }
.settings-table td { padding: 10px 14px; vertical-align: middle; }
.person-cell { display: flex; align-items: center; gap: 10px; color: var(--ui-ink); }
.person-avatar { display: grid; width: 32px; height: 32px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #dce8e7; color: var(--ui-ink); font-size: 10px; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; min-width: 66px; justify-content: center; padding: 7px 10px; border-radius: 7px; background: var(--ui-teal-soft); color: var(--ui-teal-strong); font-size: 11px; font-weight: 750; }
.status-pill.inactive { background: #f1f3f3; color: var(--ui-muted); }
.settings-row-actions { justify-content: flex-end; }
.icon-action { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ui-line); border-radius: 7px; background: #fff; color: var(--ui-ink-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.icon-action:hover { border-color: #afdcc9; color: var(--ui-teal-strong); }
.pipeline-tabs { margin-bottom: 14px; }
.pipeline-tab span { color: inherit; font-weight: 500; }
.pipeline-stages { display: flex; min-height: 84px; overflow-x: auto; padding: 2px 0; }
.pipeline-stage { display: grid; min-width: 132px; flex: 1 0 132px; min-height: 78px; align-content: center; justify-items: center; gap: 5px; padding: 10px 22px 10px 30px; background: #f1f6f7; color: var(--ui-ink); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.pipeline-stage + .pipeline-stage { margin-left: -12px; }
.pipeline-stage.last { background: #b9f2df; }
.pipeline-stage span { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pipeline-stage strong { font-size: 24px; line-height: 1; }
.pipeline-stage .btn { min-height: 0; padding: 2px 5px; font-size: 9px; }
.pipeline-empty { min-height: 80px; width: 100%; }
.settings-secondary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.settings-secondary-grid > #settings-access > .card { height: 100%; }
.settings-inline-form { align-items: end; margin-bottom: 16px; }
.settings-data-card { display: grid; gap: 4px; }
.settings-data-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1080px) {
  .settings-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .settings-nav-item { padding-inline: 10px; }
  .settings-nav-item strong { font-size: 12px; }
}
@media (max-width: 900px) {
  .settings-layout, .settings-secondary-grid { grid-template-columns: 1fr; }
  .settings-side-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .settings-nav-item { min-width: 190px; min-height: 58px; }
  .settings-summary { display: none; }
}
@media (max-width: 640px) {
  .settings-section { padding: 15px; }
  .settings-card-head, .settings-team-toolbar { align-items: stretch; flex-direction: column; }
  .settings-card-head .btn { align-self: flex-start; }
  .settings-search { width: 100%; }
  .settings-tabs { width: 100%; }
  .settings-tab { flex: 1 1 150px; }
  .pipeline-stage { min-width: 120px; }
}
/* Tasks confirmed by the CRM use the existing cards, filters and table layout. */
.crm-overdue { color: #a61b1b; background: #fff0f0; }
.crm-create-message:empty { display: none; }

/* Prospecção Ativa — Planilha de Leads */
.quick-add-card { border-top: 3px solid var(--ui-teal); margin-bottom: 20px; }
.prospect-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) 170px; gap: 10px; align-items: end; }
.prospect-quick-grid .field-btn { align-self: end; }
.prospect-quick-grid .field-btn .btn { width: 100%; height: 38px; }
.prospect-table-card { margin-top: 20px; }
.prospect-table { width: 100%; min-width: 980px; }
.prospect-table th { padding: 11px 12px; background: #f8fbfa; color: var(--ui-ink); font-weight: 700; }
.prospect-table td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #edf2f1; }
.lead-link { color: var(--ui-teal-strong); text-decoration: none; font-weight: 600; }
.lead-link:hover { text-decoration: underline; }
.cell-select {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--ui-line);
  cursor: pointer;
  transition: all .15s ease;
}
.cell-badge-success { background: #e6f7f0; color: #087653; border-color: #a7dfcb; }
.cell-badge-neutral { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.cell-badge-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.nav-item.is-hidden { display: none !important; }

/* Tarefas Diárias com Contador */
.daily-alert-card {
  background: linear-gradient(135deg, #0a3440 0%, #062b35 100%);
  border: 1px solid rgba(24, 168, 120, 0.4);
  border-radius: var(--ui-radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(6, 43, 53, 0.18), 0 0 15px rgba(24, 168, 120, 0.12);
  position: relative;
  overflow: hidden;
}
.daily-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 168, 120, 0.2);
  border: 1px solid rgba(24, 168, 120, 0.4);
  color: #45d7a2;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45d7a2;
  box-shadow: 0 0 8px #45d7a2;
  animation: pulse-ring 1.4s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.daily-alert-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.daily-alert-info {
  flex: 1 1 280px;
}
.daily-alert-title {
  font-size: 18px;
  font-weight: 750;
  color: #fff;
  margin: 0 0 8px;
}
.daily-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.daily-alert-tag {
  font-size: 12px;
  color: #b3c9ce;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}
.daily-alert-tag strong {
  color: #fff;
}
.daily-alert-timer {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.timer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8faab0;
  margin-bottom: 2px;
}
.timer-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.timer-remaining {
  font-size: 13px;
  font-weight: 600;
}
.timer-remaining.on-time {
  color: #45d7a2;
}
.timer-remaining.overtime {
  color: #f87171;
}
.daily-alert-actions {
  display: flex;
  gap: 10px;
}
.daily-alert-actions .btn {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13px;
}
.btn.warning {
  background: var(--ui-amber);
  color: #fff;
  border: 0;
}
.btn.warning:hover {
  background: #b8731d;
}
.btn.success {
  background: var(--ui-teal);
  color: #fff;
  border: 0;
}
.btn.success:hover {
  background: var(--ui-teal-strong);
}

/* Date Navigator */
.daily-tasks-filter-card {
  padding: 14px 20px;
  margin-bottom: 18px;
}
.daily-date-navigator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.date-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-date-input {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  font-weight: 700;
  color: var(--ui-ink);
  background: #fff;
}
.responsible-filter-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ui-ink-soft);
}
.responsible-filter-control select {
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid var(--ui-line);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}

/* Table and Rows */
.daily-tasks-table {
  width: 100%;
  min-width: 960px;
}
.daily-tasks-table th {
  padding: 12px 14px;
  background: #f8fbfa;
  color: var(--ui-ink);
  font-weight: 750;
  font-size: 12px;
  border-bottom: 2px solid var(--ui-line);
}
.daily-tasks-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ui-line);
}
.daily-task-row.row-running {
  background: rgba(45, 127, 232, 0.04);
  box-shadow: inset 3px 0 var(--ui-blue);
}
.daily-task-row.row-done {
  opacity: 0.9;
}
.col-status-dot {
  text-align: center;
  font-size: 16px;
}
.status-circle {
  display: inline-block;
  line-height: 1;
}
.time-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef4f6;
  color: var(--ui-navy-950);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.task-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.responsible-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ui-ink-soft);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
}
.daily-subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.daily-subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ui-ink);
  cursor: pointer;
  user-select: none;
}
.daily-subtask-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--ui-teal);
}
.daily-subtask-item.is-done span {
  text-decoration: line-through;
  color: var(--ui-muted);
}
.col-conf {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag.tag-running {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 750;
}
.tag.tag-success {
  background: var(--ui-teal-soft);
  color: var(--ui-teal-strong);
  font-weight: 750;
}
.tag.tag-pending {
  background: #f1f5f9;
  color: #64748b;
}
.subtask-progress {
  font-size: 10px;
  color: var(--ui-muted);
  font-weight: 600;
}
.daily-task-obs-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--ui-ink);
  background: #fff;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}
.daily-task-obs-input:focus {
  outline: none;
  border-color: var(--ui-teal);
  box-shadow: 0 0 0 2px var(--ui-teal-soft);
}
.timer-display-box {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
  margin-bottom: 6px;
  border: 1px solid #1e293b;
}
.timer-display-box.timer-active {
  background: #062b35;
  border-color: var(--ui-teal);
  box-shadow: 0 0 10px rgba(24, 168, 120, 0.25);
}
.timer-digits-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.timer-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.time-slot-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ui-ink-soft);
  margin-top: 3px;
}
.user-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--ui-line);
  color: var(--ui-navy-950);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.user-lock-badge strong {
  color: var(--ui-teal-strong);
}
.locked-input {
  background: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed;
}
.subtask-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}
.subtask-text {
  font-size: 12px;
  color: var(--ui-ink);
}
.subtask-del-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  opacity: 0;
  transition: all 0.15s ease;
}
.daily-subtask-item:hover .subtask-del-btn {
  opacity: 1;
  color: #94a3b8;
}
.subtask-del-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}
.inline-add-subtask-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.inline-subtask-input {
  flex: 1;
  min-height: 28px;
  padding: 3px 8px;
  font-size: 11px;
  border: 1px dashed var(--ui-line);
  border-radius: 4px;
  background: #fafcfb;
  color: var(--ui-ink);
  transition: all 0.15s ease;
}
.inline-subtask-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--ui-teal);
  background: #fff;
}
.inline-subtask-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  border-radius: 4px;
}

/* Módulo de Vendas, Comissões e OTE */
.tag.tag-approved {
  background: #e0e7ff;
  color: #3730a3 !important;
  font-weight: 750;
}
.tag.tag-paid {
  background: #dcfce7;
  color: #15803d !important;
  font-weight: 750;
}
.tag.tag-cancelled {
  background: #fee2e2;
  color: #b91c1c !important;
  font-weight: 750;
}
.tag.tag-draft {
  background: #f1f5f9;
  color: #475569 !important;
  font-weight: 750;
}

.sale-preview-box {
  background: #f8fafc;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.sale-preview-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ui-navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sale-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sale-preview-card {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  padding: 10px 12px;
}
.sale-preview-card.highlight {
  border-color: rgba(24, 168, 120, 0.4);
  background: var(--ui-teal-soft);
}
.sale-preview-role {
  font-size: 11px;
  font-weight: 800;
  color: var(--ui-ink-soft);
}
.sale-preview-val {
  font-size: 18px;
  font-weight: 850;
  color: var(--ui-navy-950);
  margin: 4px 0 2px;
}
.sale-preview-sub {
  font-size: 11px;
  color: var(--ui-muted);
}

/* Barra de Metas OTE */
.ote-meta-progress {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--ui-shadow);
}
.ote-meta-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ote-meta-progress-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ui-navy-950);
}
.ote-meta-track {
  position: relative;
  height: 14px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: visible;
  margin: 16px 0 28px;
}
.ote-meta-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #18a878 0%, #2d7fe8 100%);
  transition: width 0.3s ease;
  max-width: 100%;
}
.ote-meta-marker {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.ote-meta-marker-pin {
  width: 2px;
  height: 22px;
  background: #475569;
}
.ote-meta-marker-label {
  position: absolute;
  top: 26px;
  font-size: 10px;
  font-weight: 750;
  color: var(--ui-ink-soft);
  white-space: nowrap;
}

/* Memória de Cálculo Modal & Tabela */
.memoria-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}
.memoria-calc-table th {
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink-soft);
  font-weight: 750;
}
.memoria-calc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.memoria-calc-table tr:last-child td {
  border-bottom: none;
}
.memoria-calc-table tfoot td {
  border-top: 2px solid var(--ui-line);
  font-weight: 800;
  background: #fafcfb;
}

/* Gráficos de barras de evolução */
.evolution-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 180px;
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--ui-line);
}
.evolution-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}
.evolution-bar {
  width: 100%;
  max-width: 42px;
  background: var(--ui-teal);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}
.evolution-bar:hover {
  background: var(--ui-teal-strong);
}
.evolution-label {
  position: absolute;
  bottom: -22px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ui-muted);
}
.evolution-val {
  font-size: 10px;
  font-weight: 750;
  color: var(--ui-ink);
  margin-bottom: 4px;
}




