/* ════════════════════════════════════════════════════════════════════════════
   LFT CRM — style_v14.css
   ════════════════════════════════════════════════════════════════════════════
   Cards do calendário bonitos + ajustes da tabela de clientes
   ══════════════════════════════════════════════════════════════════════════ */

/* ── CALENDÁRIO — header dos dias ── */
.v14-day-header {
  padding: 10px 8px !important;
  text-align: center;
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
}
.v14-day-name {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.v14-day-num {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--text);
  line-height: 1.1;
  margin-top: 2px;
}
.v14-today-header .v14-day-name,
.v14-today-header .v14-day-num {
  color: var(--primary) !important;
}

/* ── CALENDÁRIO — célula do dia ── */
.v14-cal-day {
  min-height: 140px !important;
  padding: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.v14-cal-day:hover { background: var(--bg3); }
.v14-cal-day.today {
  background: linear-gradient(135deg, rgba(26,86,219,0.10), rgba(26,86,219,0.02)) !important;
  border: 2px solid rgba(26,86,219,0.35) !important;
}
.v14-cal-day.other-month { opacity: 0.45; }
.v14-month-day-num {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

/* ── EVENTO (CARD BONITO) ── */
.v14-cal-event {
  padding: 6px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.12s;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  line-height: 1.35;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left;
  min-height: auto !important;
}
.v14-cal-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  filter: brightness(1.1);
}

.v14-cal-event-month {
  flex-direction: row !important;
  align-items: center !important;
  padding: 3px 6px !important;
  font-size: 10px !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v14-evt-time {
  font-size: 10px !important;
  font-weight: 700 !important;
  opacity: 0.85;
  margin-bottom: 2px;
}
.v14-evt-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v14-evt-meta {
  font-size: 10px !important;
  font-weight: 500 !important;
  opacity: 0.85;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v14-evt-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}
.v14-more-events {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
  text-align: center;
  padding: 2px;
  cursor: pointer;
}

/* ── COLOR PICKER NO MODAL DE AGENDAMENTO ── */
.v14-color-picker { margin-top: 12px; }
.v14-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.v14-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
  outline: none;
}
.v14-color-dot:hover { transform: scale(1.15); }
.v14-color-dot-active {
  border-color: #fff !important;
  outline: 2px solid var(--primary) !important;
  transform: scale(1.1);
}
.v14-color-custom {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 2px dashed var(--border) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  background: transparent !important;
}

/* ── LISTA (calView=list) ── */
.v14-list-card {
  padding: 14px 16px !important;
  background: var(--bg2);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.v14-list-card:hover {
  background: var(--bg3);
  transform: translateX(2px);
}
.v14-list-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
}
.v14-list-card-time { font-weight: 600; }
.v14-list-card-dur {
  background: var(--bg4);
  padding: 1px 8px;
  border-radius: 10px;
}
.v14-list-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.v14-list-card-meta {
  font-size: 11px;
  color: var(--text3);
}

/* ── BADGE SINISTRO ── */
.v14-badge-sin {
  animation: v14sinPulse 2s ease-in-out infinite;
}
@keyframes v14sinPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ── SUBSTITUIR cores antigas event-* ── */
.cal-event { white-space: normal !important; }
