:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --line: #d8e0e7;
  --text: #163650;
  --muted: #6c7f92;
  --primary: #163f63;
  --primary-2: #4d95c6;
  --primary-3: #0f2f49;
  --success: #2f8057;
  --warning: #c98d2f;
  --danger: #b84a4a;
  --shadow: 0 18px 38px rgba(21, 55, 85, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-gradient-1, #f4f8fb) 0%, var(--bg-gradient-2, #ebf0f4) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark-theme {
  --bg: #0f1721;
  --surface: #16212d;
  --surface-2: #1c2a38;
  --line: #29394a;
  --text: #edf4fb;
  --muted: #a8bacd;
  --primary: #4d95c6;
  --primary-2: #77b1d8;
  --primary-3: #0e1722;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  --bg-gradient-1: #0d1520;
  --bg-gradient-2: #111d29;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-3) 100%);
  color: #fff;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 6px 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 22px;
}

.brand img {
  width: 190px;
  max-width: 100%;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.80);
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
}

.nav button:hover,
.nav button.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.main {
  padding: 28px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -0.035em; }
h3 { margin: 0 0 12px; font-size: 18px; }
p { line-height: 1.55; }
small { color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.metric {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric strong { font-size: 38px; letter-spacing: -0.06em; }
.metric .hint { color: var(--muted); font-size: 12px; }

.btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #21557f 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}
.btn.secondary {
  background: #eef4f8;
  color: var(--text);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.small {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.btn.danger { background: linear-gradient(135deg, #b84a4a 0%, #8e3535 100%); }
.btn:hover { filter: brightness(.98); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  outline: none;
}
.textarea { min-height: 110px; resize: vertical; }
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.full { grid-column: 1 / -1; }

.table { width: 100%; border-collapse: collapse; table-layout: auto; }
.table th {
  text-align: left;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table .row-clickable { cursor: pointer; }
.table .row-clickable:hover { background: #f7fafc; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #ecf3f8;
  color: var(--text);
  white-space: nowrap;
}
.badge.Ideia { background: #e5e7eb; color: #4b5563; }
.badge.Em-producao { background: #f4d35e; color: #6b4f00; }
.badge.Arte-pronta, .badge.Legenda-pronta { background: #e8f1fa; color: #46789d; }
.badge.Enviado-para-aprovacao { background: #e5f0f8; color: #2f6f95; }
.badge.Ajuste-solicitado { background: #f8e6e6; color: #aa4a4a; }
.badge.Aprovado, .badge.Agendado, .badge.Concluido, .badge.Concluídos, .badge.Concluidos { background: #b785d5; color: #fff; }
.badge.Publicado, .badge.Postado { background: #5ab784; color: #fff; }

.badge.Gravacao { background: #e5f0f8; color: #275d81; }
.badge.Reuniao { background: #ececf9; color: #5956a5; }
.badge.Outro { background: #f2f2f2; color: #666; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.tabs button.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--primary);
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.link { color: #2e7097; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(14, 37, 57, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface-2);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.24);
  padding: 22px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: var(--surface);
  font-size: 24px;
  color: var(--text);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: var(--surface-2);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #eff5f9 100%);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(77,149,198,0.18) 0%, rgba(77,149,198,0) 68%);
}

.calendar-presentation {
  background: #e7eaed;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d0d7de;
}

.calendar-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 36px 18px 132px;
}

.month-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.05em;
  text-transform: capitalize;
  line-height: 0.9;
  align-self: stretch;
}

.calendar-title {
  text-align: center;
}
.calendar-title h2 {
  font-size: 52px;
  margin: 0;
  color: var(--primary);
}
.calendar-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.calendar-logo img {
  width: 120px;
  display: block;
}

.calendar-board {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0;
}

.calendar-grid-wrap { overflow: auto; }

.calendar-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #ccd4dc;
  border-left: 1px solid #ccd4dc;
}

.week-head {
  background: #d7dde3;
  color: #52687a;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.calendar-cell {
  min-height: 170px;
  padding: 10px;
  background: #eef1f3;
  border-right: 1px solid #ccd4dc;
  border-bottom: 1px solid #ccd4dc;
}
.calendar-cell.muted { opacity: 0.48; }
.cell-number {
  font-size: 13px;
  font-weight: 700;
  color: #52687a;
  margin-bottom: 10px;
}
.cal-post {
  font-size: 12px;
  line-height: 1.25;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #dde4ea;
  cursor: pointer;
}
.cal-post strong { display: block; font-size: 12px; margin-bottom: 5px; color: #1d3143; }
.cal-post small { display: block; font-weight: 800; color: #3d7da9; }
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.group-stack { display: flex; flex-direction: column; gap: 16px; }
.client-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.client-group-head {
  background: #f4f8fb;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.client-group-body { padding: 12px 16px; }

.agenda-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 10px;
}
.agenda-day {
  min-height: 124px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.agenda-day strong { font-size: 13px; color: var(--muted); display: block; margin-bottom: 8px; }
.agenda-event {
  padding: 8px;
  border-radius: 12px;
  background: #eef4f8;
  font-size: 12px;
  margin-bottom: 8px;
}
.agenda-event .time { font-weight: 900; display: block; margin-bottom: 4px; }

@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .calendar-head, .calendar-board { grid-template-columns: 1fr; }
  .month-side { writing-mode: horizontal-tb; transform: none; font-size: 38px; padding: 0 20px 10px; }
  .calendar-title h2 { font-size: 34px; }
  .calendar-logo { padding: 0 20px 10px; }
  .agenda-calendar { grid-template-columns: 1fr; }
}


.cal-post[draggable="true"] {
  cursor: grab;
}

.cal-post[draggable="true"]:active {
  cursor: grabbing;
  opacity: 0.72;
}

.calendar-cell {
  transition: background .15s ease, box-shadow .15s ease;
}

.calendar-cell:hover {
  background: #f7fafc;
  box-shadow: inset 0 0 0 2px rgba(77, 149, 198, 0.16);
}


.cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-add {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #d7dde3;
  color: #52687a;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-add:hover {
  background: #c6d0d8;
}

.drive-open-btn {
  text-align: center;
  text-decoration: none;
}

.mini-demand-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
}

.mini-demand {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}

.mini-demand:hover {
  background: #f4f8fb;
}


.calendar-cell.weekend {
  background: #e2e5e8;
}

.calendar-cell.weekend:hover {
  background: #e8ebee;
}

.calendar-title h2 {
  text-align: center;
}


.modal-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .modal-header {
    flex-direction: column;
  }

  .modal-top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.table td strong,
.table td small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge.Ideia,
.status-chip.status-ideia {
  background: #e5e7eb;
  color: #4b5563;
}

.badge.Em-producao,
.status-chip.status-em-producao {
  background: #f4d35e;
  color: #6b4f00;
}

.badge.Aprovado,
.badge.Agendado,
.badge.Concluido,
.badge.Concluídos,
.badge.Concluidos,
.status-chip.status-concluido {
  background: #b785d5;
  color: #fff;
}

.badge.Publicado,
.badge.Postado,
.status-chip.status-postado {
  background: #5ab784;
  color: #fff;
}

.cal-post {
  font-size: 12px;
  line-height: 1.25;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #dde4ea;
  cursor: pointer;
}
.cal-post.status-ideia {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.cal-post.status-em-producao {
  background: #fff3c6;
  border-color: #efcd55;
}
.cal-post.status-concluido {
  background: #f1e6f8;
  border-color: #c69adf;
}
.cal-post.status-postado {
  background: #e3f4ea;
  border-color: #7dca9b;
}

.cal-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}


/* Status oficiais LEME Flow */
.badge.Ideia,
.status-chip.status-ideia {
  background: #e5e7eb !important;
  color: #4b5563 !important;
}

.badge.Em-producao,
.status-chip.status-em-producao {
  background: #f4d35e !important;
  color: #6b4f00 !important;
}

.badge.Concluido,
.badge.Conclu-do,
.status-chip.status-concluido {
  background: #b785d5 !important;
  color: #fff !important;
}

.badge.Postado,
.status-chip.status-postado {
  background: #5ab784 !important;
  color: #fff !important;
}


/* Status oficiais LEME Flow v12 */
.badge.Ideia,
.status-chip.status-ideia {
  background: #e5e7eb !important;
  color: #4b5563 !important;
}

.badge.Em-andamento,
.status-chip.status-em-andamento {
  background: #f4d35e !important;
  color: #6b4f00 !important;
}

.badge.Concluidos,
.status-chip.status-concluidos {
  background: #b785d5 !important;
  color: #fff !important;
}

.badge.Publicado,
.status-chip.status-publicado {
  background: #5ab784 !important;
  color: #fff !important;
}

.cal-post.status-ideia {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}
.cal-post.status-em-andamento {
  background: #fff3c6 !important;
  border-color: #efcd55 !important;
}
.cal-post.status-concluidos {
  background: #f1e6f8 !important;
  border-color: #c69adf !important;
}
.cal-post.status-publicado {
  background: #e3f4ea !important;
  border-color: #7dca9b !important;
}


.dashboard-main-grid > .card {
  min-width: 0;
}

.money-card {
  background: linear-gradient(135deg, #f7fbf8, #e8f6ee);
  border: 1px solid #cfe8d8;
}

.money-card h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 10px;
  color: #163f63;
}

.money-card p {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.money-value {
  display: inline-flex;
  margin-top: 12px;
  background: #5ab784;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
}


.client-cell,
.client-card-head,
.client-name-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-name-logo {
  gap: 6px;
  vertical-align: middle;
}

.client-logo,
.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.client-logo.xs,
.client-avatar.xs {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 10px;
}

.client-logo.md,
.client-avatar.md {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.client-logo.lg,
.client-avatar.lg {
  width: 74px;
  height: 74px;
  border-radius: 18px;
}

.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4f8;
  color: var(--primary);
  font-weight: 900;
}

.logo-upload-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 16px;
}

.logo-preview {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.agenda-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.agenda-day-head strong {
  margin-bottom: 0;
}

.agenda-add {
  width: 24px;
  height: 24px;
  font-size: 14px;
}


.client-cell,
.client-card-head,
.client-name-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-name-logo {
  gap: 6px;
  vertical-align: middle;
}

.client-logo,
.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.client-logo.xs,
.client-avatar.xs {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 10px;
}

.client-logo.md,
.client-avatar.md {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.client-logo.lg,
.client-avatar.lg {
  width: 74px;
  height: 74px;
  border-radius: 18px;
}

.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4f8;
  color: var(--primary);
  font-weight: 900;
}

.logo-upload-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 16px;
}

.logo-preview {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.agenda-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.agenda-day-head strong {
  margin-bottom: 0;
}

.agenda-add {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.runtime-error {
  max-width: 760px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}


.report-uploader {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-preview {
  margin-top: 18px;
}

.report-kpi-mini {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.report-kpi-mini div {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-2);
  border-radius: 14px;
  padding: 14px;
}

.report-kpi-mini small {
  color: var(--muted);
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.report-kpi-mini strong {
  color: var(--primary);
  font-size: 22px;
}

@media (max-width: 900px) {
  .report-kpi-mini {
    grid-template-columns: 1fr 1fr;
  }
}


.theme-toggle {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.theme-toggle.active {
  background: rgba(255,255,255,0.18);
}

body.dark-theme .card,
body.dark-theme .hero-card,
body.dark-theme .money-card,
body.dark-theme .agenda-day,
body.dark-theme .logo-preview,
body.dark-theme .logo-upload-row,
body.dark-theme .client-group-head,
body.dark-theme .calendar-presentation,
body.dark-theme .kanban-column,
body.dark-theme .traffic-card,
body.dark-theme .report-preview {
  color: var(--text);
}

body.dark-theme .hero-card {
  background: linear-gradient(135deg, #16222d 0%, #1b2b3b 100%);
}
body.dark-theme .money-card {
  background: linear-gradient(135deg, #16252d, #1d3430);
  border-color: #32504b;
}
body.dark-theme .money-card h2 { color: #edf4fb; }
body.dark-theme .table .row-clickable:hover,
body.dark-theme .mini-demand:hover { background: rgba(255,255,255,0.04); }
body.dark-theme .agenda-event,
body.dark-theme .mini-demand,
body.dark-theme .cal-post,
body.dark-theme .kanban-card { background: #1d2a37; border-color: #314457; color: var(--text); }
body.dark-theme .calendar-presentation { background: #151f2a; border-color: #27384a; }
body.dark-theme .week-head { background: #18314a; color: #edf4fb; }
body.dark-theme .calendar-cell { background: #13202c; border-color: #26384b; }
body.dark-theme .calendar-cell.weekend { background: #101a25; }
body.dark-theme .calendar-cell:hover { background: #182737; }
body.dark-theme .cell-number,
body.dark-theme .cal-post strong,
body.dark-theme .calendar-title h2,
body.dark-theme .month-side { color: #edf4fb; }
body.dark-theme .calendar-add { background: #243647; color: #edf4fb; }
body.dark-theme .badge { background: #223242; color: #edf4fb; }
body.dark-theme .btn.secondary { background: #223242; color: #edf4fb; }
body.dark-theme .btn.ghost { border-color: #32475c; color: #edf4fb; }
body.dark-theme .list-item { background: #152230; }
body.dark-theme .client-avatar,
body.dark-theme .client-logo { background: #0f1721; }

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kanban-column {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 18px;
  min-height: 360px;
  padding: 12px;
}
.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.kanban-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: grab;
  box-shadow: var(--shadow);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card strong {
  display: block;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.35;
}
.kanban-card-top,
.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.kanban-card-top { justify-content: flex-start; }
.kanban-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.traffic-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.traffic-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.traffic-card.is-active {
  border-color: rgba(90, 183, 132, 0.6);
  box-shadow: 0 12px 28px rgba(90, 183, 132, 0.16);
}
.traffic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.traffic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.traffic-switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
}
.traffic-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.traffic-switch span {
  position: absolute;
  inset: 0;
  background: #c7d0d9;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s ease;
}
.traffic-switch span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .2s ease;
}
.traffic-switch input:checked + span {
  background: #5ab784;
}
.traffic-switch input:checked + span::after {
  transform: translateX(24px);
}
.traffic-expand {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.traffic-card-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.traffic-inline-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1150px) {
  .kanban-board { grid-template-columns: 1fr; }
}


/* Ajustes v24 */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-bottom {
  margin-top: 24px;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,0.84);
  font-weight: 800;
  font-size: 13px;
}

.switch-toggle {
  position: relative;
  width: 54px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  cursor: pointer;
  padding: 0;
}

.switch-toggle span {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
  transition: .2s ease;
}

.switch-toggle.active {
  background: #4d95c6;
}

.switch-toggle.active span {
  transform: translateX(24px);
}

.theme-toggle {
  display: none;
}

.responsible-card {
  background: linear-gradient(135deg, #163f63 0%, #21577f 100%);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.responsible-card h2,
.responsible-card small,
.responsible-card .section-title small {
  color: #fff;
}

.responsible-item {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.responsible-item small {
  color: rgba(255,255,255,0.76);
}

.responsible-item .btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.kanban-drive-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #2e7097;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.dark-theme .responsible-card {
  background: linear-gradient(135deg, #112d45 0%, #1a4b70 100%);
}

body.dark-theme .responsible-item {
  background: rgba(255,255,255,0.08);
}

body.dark-theme .traffic-expand {
  background: #182737;
  color: #edf4fb;
}


/* Ajustes v25 */
.drive-status-btn {
  text-decoration: none;
  justify-content: center;
  min-width: 72px;
}

.drive-status-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #21557f 100%);
  color: #fff;
}

.drive-status-btn.disabled,
.drive-status-btn:disabled {
  background: #e6edf2;
  color: #9aacbc;
  cursor: not-allowed;
  opacity: .74;
}

body.dark-theme .drive-status-btn.disabled,
body.dark-theme .drive-status-btn:disabled {
  background: #223242;
  color: #6f8397;
}

body.dark-theme .sidebar {
  background: linear-gradient(180deg, #132333 0%, #0e1a26 100%) !important;
}

body.dark-theme .nav button:hover,
body.dark-theme .nav button.active {
  background: rgba(255,255,255,0.09) !important;
}

body.dark-theme .switch-toggle.active {
  background: #2f5f83 !important;
}

body.dark-theme .brand {
  border-bottom-color: rgba(255,255,255,0.10);
}


/* Correções v26 */
body.dark-theme .calendar-title h2 {
  color: #f4f8fb !important;
}

body.dark-theme .cal-post {
  background: #f4f6f8 !important;
  border-color: #d8e0e7 !important;
  color: #0f1f2d !important;
}

body.dark-theme .cal-post strong {
  color: #0f1f2d !important;
  opacity: 1 !important;
}

body.dark-theme .cal-post small {
  color: #2f7fae !important;
}

body.dark-theme .cal-post.status-ideia {
  background: #f4f6f8 !important;
  border-color: #d8e0e7 !important;
}

body.dark-theme .cal-post.status-em-andamento {
  background: #fff3c6 !important;
  border-color: #efcd55 !important;
}

body.dark-theme .cal-post.status-concluidos {
  background: #f1e6f8 !important;
  border-color: #c69adf !important;
}

body.dark-theme .cal-post.status-publicado {
  background: #e3f4ea !important;
  border-color: #7dca9b !important;
}

body.dark-theme .status-chip.status-ideia {
  background: #e5e7eb !important;
  color: #4b5563 !important;
}

body.dark-theme .status-chip.status-em-andamento {
  background: #f4d35e !important;
  color: #6b4f00 !important;
}

body.dark-theme .status-chip.status-concluidos {
  background: #b785d5 !important;
  color: #fff !important;
}

body.dark-theme .status-chip.status-publicado {
  background: #5ab784 !important;
  color: #fff !important;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, #0f2f49 0%, #163f63 100%);
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(16px);
}

.login-card h1,
.login-card p,
.login-card small,
.login-card .eyebrow {
  color: #fff;
}

.login-logo {
  width: 170px;
  display: block;
  margin-bottom: 24px;
}

.login-form {
  margin: 20px 0;
}

.login-form label {
  color: rgba(255,255,255,0.80);
}

.login-form .input {
  background: rgba(255,255,255,0.96);
  color: #163650;
}

.login-btn {
  width: 100%;
  margin-bottom: 14px;
  background: #4d95c6;
}

.sidebar-user {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  color: #fff;
}

.sidebar-user small {
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
}

.sidebar-logout {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}


/* Ajustes v27 */
.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.password-field .input {
  padding-right: 86px;
}

.password-field button {
  position: absolute;
  right: 7px;
  top: 7px;
  bottom: 7px;
  border: 0;
  border-radius: 10px;
  background: #eef4f8;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  padding: 0 12px;
}

body.dark-theme .password-field button {
  background: #223242;
  color: #edf4fb;
}

body.dark-theme .login-form .password-field button {
  background: #163f63;
  color: #fff;
}

/* Cards do calendário em modo escuro com faixa de status */
body.dark-theme .calendar-cell .cal-post {
  position: relative;
  overflow: hidden;
  background: #182737 !important;
  border: 1px solid #33506a !important;
  color: #edf4fb !important;
  padding: 12px 12px 28px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

body.dark-theme .calendar-cell .cal-post strong {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 13px;
  line-height: 1.32;
}

body.dark-theme .calendar-cell .cal-post small {
  color: #9fd0ef !important;
  font-weight: 900;
}

body.dark-theme .calendar-cell .cal-post .status-chip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  border-radius: 0;
  padding: 6px 8px;
  font-size: 10px;
  letter-spacing: .02em;
}

body.dark-theme .calendar-cell .cal-post.status-ideia {
  background: #182737 !important;
  border-color: #3a4b5b !important;
}

body.dark-theme .calendar-cell .cal-post.status-em-andamento {
  background: #1f2930 !important;
  border-color: #b98922 !important;
}

body.dark-theme .calendar-cell .cal-post.status-concluidos {
  background: #241c31 !important;
  border-color: #8f62ac !important;
}

body.dark-theme .calendar-cell .cal-post.status-publicado {
  background: #173023 !important;
  border-color: #4c9c6d !important;
}

body.dark-theme .calendar-cell .cal-post.status-ideia .status-chip {
  background: #3a4b5b !important;
  color: #e7eef5 !important;
}

body.dark-theme .calendar-cell .cal-post.status-em-andamento .status-chip {
  background: #c7962c !important;
  color: #1f1600 !important;
}

body.dark-theme .calendar-cell .cal-post.status-concluidos .status-chip {
  background: #9a6abb !important;
  color: #fff !important;
}

body.dark-theme .calendar-cell .cal-post.status-publicado .status-chip {
  background: #5ab784 !important;
  color: #fff !important;
}

body.dark-theme .calendar-cell .cal-post .cal-post-meta {
  gap: 8px;
  align-items: flex-start;
}


/* Correções v28 - página do colaborador no modo escuro */
body.dark-theme .client-group {
  background: #142130;
  border-color: #2c4156;
}

body.dark-theme .client-group-head {
  background: #1a2a3a !important;
  border-bottom-color: #2c4156 !important;
  color: #edf4fb !important;
}

body.dark-theme .client-group-head strong {
  color: #ffffff !important;
}

body.dark-theme .client-group-head small {
  color: #a8bacd !important;
}

body.dark-theme .client-group-body {
  background: #142130;
}

body.dark-theme .table th {
  color: #b9cce0;
  border-bottom-color: #2c4156;
}

body.dark-theme .table td {
  border-bottom-color: #2c4156;
  color: #edf4fb;
}

body.dark-theme .table td strong {
  color: #ffffff;
}

body.dark-theme .table td small {
  color: #a8c2dc;
}

body.dark-theme .card {
  background: #142130;
  border-color: #2c4156;
}

body.dark-theme .card .section-title small,
body.dark-theme .card p {
  color: #a8bacd;
}

body.dark-theme .list-item {
  background: #1a2a3a;
  border-color: #2c4156;
}

body.dark-theme .btn.small.ghost {
  border-color: #3a536b;
  color: #edf4fb;
}

body.dark-theme .drive-status-btn.active {
  background: #2f7fae;
  color: #fff;
}

body.dark-theme .drive-status-btn.disabled,
body.dark-theme .drive-status-btn:disabled {
  background: #1d2c3b;
  color: #61798f;
  opacity: .75;
}


/* Correções v30 - sincronização n8n */
.sidebar-sync {
  width: 100%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.sidebar-sync:hover {
  background: rgba(255,255,255,.18);
}


/* Correções v36 - agenda dos colaboradores */
.collaborator-agenda-card .section-title {
  margin-bottom: 18px;
}

.collaborator-agenda-calendar {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.agenda-week-head {
  color: #52687a;
  background: #f4f8fb;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collaborator-agenda-calendar .agenda-day {
  min-height: 170px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef1f3;
  transition: background .15s ease, box-shadow .15s ease;
}

.collaborator-agenda-calendar .agenda-day:hover {
  background: #f7fafc;
  box-shadow: inset 0 0 0 2px rgba(77,149,198,.16);
}

.collaborator-agenda-calendar .agenda-day.muted {
  opacity: .52;
}

.collaborator-agenda-calendar .agenda-day.weekend {
  background: #e7ebef;
}

.agenda-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.agenda-day-head strong {
  margin: 0;
}

.agenda-event {
  cursor: pointer;
  line-height: 1.25;
  border: 1px solid #dde4ea;
}

.agenda-event[draggable="true"] {
  cursor: grab;
}

.agenda-event[draggable="true"]:active {
  cursor: grabbing;
  opacity: .72;
}

.agenda-event strong {
  color: #1d3143;
  font-size: 12px;
  margin: 0 0 5px;
}

.agenda-event small {
  color: #3d7da9;
  font-weight: 800;
}

body.dark-theme .collaborator-agenda-calendar {
  border-color: #2c4156;
}

body.dark-theme .agenda-week-head {
  background: #102030;
  color: #a8c2dc;
  border-color: #2c4156;
}

body.dark-theme .collaborator-agenda-calendar .agenda-day {
  background: #112131;
  border-color: #2c4156;
}

body.dark-theme .collaborator-agenda-calendar .agenda-day.weekend {
  background: #0e1c2a;
}

body.dark-theme .collaborator-agenda-calendar .agenda-day:hover {
  background: #14283a;
  box-shadow: inset 0 0 0 2px rgba(77,149,198,.20);
}

body.dark-theme .agenda-day-head strong {
  color: #edf4fb;
}

body.dark-theme .agenda-event {
  background: #172b3d;
  border-color: #38546e;
  color: #edf4fb;
  box-shadow: inset 0 -28px 0 rgba(100,128,153,.32);
}

body.dark-theme .agenda-event strong {
  color: #ffffff;
}

body.dark-theme .agenda-event .time {
  color: #dbe8f4;
}

body.dark-theme .agenda-event small {
  color: #b9d4ec;
}


/* Correções v43 - Blog retrátil com imagem destacada */
.blog-card .form-grid {
  margin-bottom: 14px;
}

.blog-top-actions {
  margin-bottom: 16px;
}

.blog-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-article-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.blog-article-card.expanded {
  box-shadow: var(--shadow);
}

.blog-article-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.blog-article-toggle strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.blog-article-toggle small {
  color: var(--muted);
  display: block;
  max-width: 720px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-article-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.blog-article-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-textarea {
  min-height: 170px;
}

.blog-image-box {
  border: 1px dashed var(--line);
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-image-box strong {
  display: block;
}

.blog-image-box small {
  color: var(--muted);
}

.blog-image-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
}

.blog-image-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.65);
}

.blog-image-preview img {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.blog-file-button {
  width: fit-content;
  cursor: pointer;
}

.blog-file-button input {
  display: none;
}

body.dark-theme .blog-article-card {
  background: #142130;
  border-color: #2c4156;
}

body.dark-theme .blog-article-toggle {
  color: #edf4fb;
}

body.dark-theme .blog-image-box,
body.dark-theme .chevron {
  background: #172636;
  border-color: #2c4156;
}

body.dark-theme .blog-image-empty,
body.dark-theme .blog-image-preview {
  background: #101c29;
  border-color: #2c4156;
}

@media (max-width: 760px) {
  .blog-article-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
  .blog-article-status {
    width: 100%;
    justify-content: space-between;
  }
  .blog-image-preview {
    grid-template-columns: 1fr;
  }
  .blog-image-preview img {
    width: 100%;
  }
}



/* Correções v44 - Blog simplificado e imagem por arrastar */
.blog-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-article-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.blog-article-toggle strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.blog-article-toggle small {
  color: var(--muted);
}

.blog-article-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.blog-article-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-textarea {
  min-height: 260px;
}

.blog-image-dropzone {
  border: 2px dashed var(--line);
  background: var(--surface-2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: .2s ease;
}

.blog-image-dropzone.dragging {
  border-color: var(--primary);
  background: rgba(22, 63, 99, .08);
  transform: translateY(-1px);
}

.blog-image-dropzone-text strong {
  display: block;
}

.blog-image-dropzone-text small {
  color: var(--muted);
}

.blog-image-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  text-align: center;
}

.blog-image-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.65);
}

.blog-image-preview img {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.blog-file-button {
  width: fit-content;
  cursor: pointer;
}

.blog-file-button input {
  display: none;
}

body.dark-theme .blog-article-toggle {
  color: #edf4fb;
}

body.dark-theme .blog-image-dropzone,
body.dark-theme .chevron {
  background: #172636;
  border-color: #2c4156;
}

body.dark-theme .blog-image-dropzone.dragging {
  border-color: #4d95c6;
  background: rgba(77, 149, 198, .12);
}

body.dark-theme .blog-image-empty,
body.dark-theme .blog-image-preview {
  background: #101c29;
  border-color: #2c4156;
}

@media (max-width: 760px) {
  .blog-article-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
  .blog-article-status {
    width: 100%;
    justify-content: space-between;
  }
  .blog-image-preview {
    grid-template-columns: 1fr;
  }
  .blog-image-preview img {
    width: 100%;
  }
}


/* Correções v45 - Upload do Blog igual ao relatório */
.blog-image-upload {
  border: 1px dashed var(--line);
  background: var(--surface-2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-file-input {
  min-height: 82px;
  padding: 26px 18px;
  cursor: pointer;
  border-style: dashed;
  background: rgba(255,255,255,.72);
}

.blog-file-input.dragging,
.blog-file-input:hover {
  border-color: var(--primary);
  background: rgba(22, 63, 99, .08);
}

.blog-file-button {
  display: none;
}

body.dark-theme .blog-image-upload {
  background: #172636;
  border-color: #2c4156;
}

body.dark-theme .blog-file-input {
  background: #101c29;
  border-color: #2c4156;
}

body.dark-theme .blog-file-input.dragging,
body.dark-theme .blog-file-input:hover {
  border-color: #4d95c6;
  background: rgba(77, 149, 198, .12);
}


/* Correções v46 - Arrastar arquivos na área inteira do relatório */
.report-uploader {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface-2);
  transition: .2s ease;
}

.report-uploader.dragging {
  border-color: var(--primary);
  background: rgba(22, 63, 99, .08);
  transform: translateY(-1px);
}

.report-file-input {
  min-height: 82px;
  padding: 26px 18px;
  cursor: pointer;
  border-style: dashed;
  background: rgba(255,255,255,.72);
}

.report-file-input:hover {
  border-color: var(--primary);
  background: rgba(22, 63, 99, .08);
}

.report-files-feedback {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
}

body.dark-theme .report-uploader {
  background: #172636;
  border-color: #2c4156;
}

body.dark-theme .report-uploader.dragging {
  border-color: #4d95c6;
  background: rgba(77, 149, 198, .12);
}

body.dark-theme .report-file-input,
body.dark-theme .report-files-feedback {
  background: #101c29;
  border-color: #2c4156;
}
