/* Base legada do app (antigo styles.css), parte 25 (#533) · Chat do Comercial Rico e cards de tarefa. Ordem de carga: scripts/helpers/styles-source.js. */

/* Comercial Rico chat */
.commercial-chat-page {
  display: grid;
  gap: 18px;
}

.commercial-chat-hero,
.commercial-chat-shell {
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 16%);
  border-radius: 22px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 9%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 12%), 0 24px 70px rgba(0,0,0,.22);
}

.commercial-chat-hero span,
.commercial-chat-status small,
.commercial-chat-message span,
.commercial-chat-message small {
  color: rgba(247,248,251,.62);
  font-size: 12px;
}

.commercial-chat-shell {
  min-height: 580px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.commercial-chat-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  background: rgba(12,16,24,.24);
}

.commercial-chat-toolbar span {
  display: block;
  color: rgba(247,248,251,.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.commercial-chat-toolbar strong {
  color: #fff;
  font-size: 14px;
}

.commercial-chat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.commercial-chat-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 12px;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  font-weight: 800;
  cursor: pointer;
}

.commercial-chat-actions button:hover,
.commercial-chat-actions button.active {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 15%);
}

.commercial-chat-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.commercial-chat-saved-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 14px;
  width: min(360px, calc(100vw - 48px));
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 16%);
  border-radius: 16px;
  background: rgba(18,22,31,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.commercial-chat-saved-menu button {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.commercial-chat-saved-menu button:hover {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.commercial-chat-saved-menu p {
  margin: 0;
  padding: 12px;
  color: rgba(247,248,251,.64);
}

.commercial-chat-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  overflow: auto;
}

.commercial-chat-message,
.commercial-chat-empty {
  max-width: min(780px, 100%);
  padding: 15px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 13%);
  border-radius: 18px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.commercial-chat-message.user {
  justify-self: end;
  background: rgba(31,111,235,.2);
}

.commercial-chat-message.assistant {
  justify-self: start;
}

.commercial-chat-message p,
.commercial-chat-empty p {
  margin: 7px 0;
  color: #fff;
  line-height: 1.5;
  white-space: pre-wrap;
}

.commercial-chat-message.loading p {
  color: rgba(247,248,251,.72);
}

.commercial-chat-chart {
  height: 260px;
  margin-top: 12px;
}

.commercial-chat-table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 12px;
}

.commercial-chat-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  color: #fff;
  font-size: 12px;
}

.commercial-chat-table th,
.commercial-chat-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 10%);
  text-align: left;
}

.commercial-chat-table th {
  color: rgba(247,248,251,.72);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%);
}

.commercial-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  background: rgba(12,16,24,.36);
}

.commercial-chat-form textarea {
  min-height: 46px;
  max-height: 160px;
  resize: none;
  padding: 13px 14px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 14px;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  line-height: 1.35;
}

.commercial-chat-form button {
  min-width: 116px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,104,24,.96);
  font-weight: 850;
  cursor: pointer;
}

.commercial-chat-form button:disabled,
.commercial-chat-form textarea:disabled {
  opacity: .62;
  cursor: wait;
}

@media (max-width: 780px) {

  .commercial-chat-form {
    grid-template-columns: 1fr;
  }

  .commercial-chat-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-chat-actions {
    justify-content: flex-start;
  }
}

.kanban-card {
  background: rgb(var(--mix-fx-paper, 248 250 252));
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 86%);
  border-left-width: 3px;
  color: rgb(var(--mix-fx-ink, 16 24 40));
  gap: 8px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 92%);
}

.kanban-card:hover {
  transform: translateY(-1px);
}

.priority-icon {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgb(var(--mix-fx-paper, 238 242 247));
  color: rgb(var(--mix-fx-ink, 52 64 84));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.priority-urgente,
.priority-alta {
  background: rgb(var(--mix-fx-tint-orange, 255 243 214));
  color: rgb(var(--mix-fx-ink-orange, 154 75 0));
}

.priority-media {
  background: rgb(var(--mix-fx-paper, 232 241 255));
  color: rgb(var(--mix-fx-ink-blue, 23 92 211));
}

.priority-baixa {
  background: rgb(var(--mix-fx-paper, 233 248 239));
  color: rgb(var(--mix-fx-ink-green, 15 111 83));
}

.kanban-card .pill {
  min-height: 21px;
  padding: 3px 8px;
  font-size: 10px;
}

.kanban-owner strong,
.kanban-time-chip strong {
  color: rgb(var(--mix-fx-ink, 16 24 40));
}

.kanban-owner span,
.kanban-time-chip span {
  color: rgb(var(--mix-fx-body, 102 112 133));
}

.kanban-actions {
  gap: 8px;
  margin-top: 2px;
}

.modal-head {
  background: rgba(22, 27, 38, 0.98);
  border-bottom: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  color: #fff;
}

.modal-head h2 {
  color: #fff;
}

.modal-head p {
  color: rgba(247, 248, 251, 0.72);
}

.modal-head .modal-close,
.modal-head .btn.secondary {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 18%);
  color: #fff;
}

.profile-page {
  max-width: 1360px;
}

.profile-slice-modal {
  width: min(1120px, calc(100vw - 110px));
  max-height: none;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: linear-gradient(145deg, rgba(21, 24, 32, 0.98), rgba(45, 49, 57, 0.98) 44%, rgba(37, 62, 50, 0.98));
  box-shadow: -26px 0 90px rgba(0, 0, 0, 0.34);
}

.profile-panel {
  min-height: 640px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgb(var(--mix-fx-paper, 255 255 255) / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--mix-fx-paper, 255 255 255) / 2.5%) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(26, 147, 111, .22), transparent 28%),
    linear-gradient(145deg, rgba(27, 28, 36, .96), rgba(57, 51, 56, .96) 44%, rgba(52, 75, 63, .96));
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: 0 26px 90px rgba(0,0,0,.2);
}

.profile-slice-modal .profile-panel {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-photo-card,
.profile-mini-grid,
.profile-badges-card,
.profile-info-card {
  border-radius: 8px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 9%);
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  color: #f8fafc;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
  backdrop-filter: blur(20px) saturate(135%);
}

.profile-photo-card {
  min-height: 292px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 18px 20px 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(26,147,111,.22), rgba(31,111,235,.18));
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 950;
  border: 3px solid rgb(var(--mix-fx-line, 255 255 255) / 22%);
}

.profile-avatar.md {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.profile-avatar.xl {
  width: 132px;
  height: 132px;
  font-size: 40px;
}

.profile-avatar.xxl {
  width: 190px;
  height: 190px;
  font-size: 54px;
}

.profile-photo-card strong {
  margin-top: 8px;
  font-size: 18px;
  color: #fff;
}

.profile-photo-card p {
  margin: 0;
  color: rgba(247,248,251,.66);
  text-align: center;
}

.profile-badges-card h3,
.profile-info-card h3,
.profile-edit-surface h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.profile-info-card {
  padding: 28px;
}

.profile-popover-head .profile-avatar {
  border-width: 2px;
}

@media (max-width: 980px) {
  .profile-slice-modal {
    width: 100vw;
  }
}

.profile-photo-card {
  border: 0;
}

.profile-efficiency-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 9%);
  color: #fff;
}

.profile-efficiency-card span {
  color: rgba(247,248,251,.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-efficiency-card strong {
  font-size: 34px;
  line-height: 1;
}

.profile-efficiency-card p {
  margin: 0;
  color: rgba(247,248,251,.7);
  font-size: 12px;
}

.profile-save-inline {
  grid-column: 1 / -1;
  width: max-content;
  min-width: 132px;
}

.kanban-card.task-card-v2 {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 16%);
  border-left: 2px solid rgba(255,104,24,.98);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(255,104,24,.18), transparent 34%),
    linear-gradient(145deg, rgba(39,43,46,.92), rgba(18,20,23,.94));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.kanban-card.task-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 24%);
  border-left-color: rgba(255,104,24,1);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), 0 0 0 1px rgba(255,104,24,.08);
}

.task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-card-status,
.task-card-deadline,
.task-card-bell,
.task-card-menu {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 999px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 850;
}

.task-card-deadline {
  padding: 0 11px;
  border-radius: 8px;
  white-space: nowrap;
}

.task-card-deadline.overdue {
  color: #fecaca;
  border-color: rgba(248,113,113,.28);
}

.task-card-deadline svg,
.task-card-bell svg,
.task-card-menu svg,
.task-card-chips svg,
.task-card-stats svg,
.kanban-action-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-card-person,
.task-card-progress {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-card-person span,
.task-card-progress span,
.task-card-stats small {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
}
