/* Tema RumBee para Chatwoot v4.20.2 — PROTÓTIPO.
 * Valores do RumBee Brand Book v1.3 (docsales/rumbee-design-system, tokens.css), em tripletas
 * RGB porque é o formato das variáveis do Chatwoot. Degraus intermediários das escalas que o
 * Brand Book não define foram interpolados. Revisar a cada upgrade do Chatwoot.
 */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap");

html:root {
  --rb-accent-ink: #8a5a05;
  --slate-1: 255 255 255;
  --slate-2: 247 246 242;
  --slate-3: 243 241 235;
  --slate-4: 239 237 230;
  --slate-5: 228 225 216;
  --slate-6: 221 217 205;
  --slate-7: 207 202 189;
  --slate-8: 181 176 165;
  --slate-9: 107 110 114;
  --slate-10: 107 110 114;
  --slate-11: 95 98 102;
  --slate-12: 23 24 27;
  --blue-1: 255 252 246;
  --blue-2: 253 243 226;
  --blue-3: 253 243 226;
  --blue-4: 251 228 184;
  --blue-5: 251 228 184;
  --blue-6: 243 192 101;
  --blue-7: 243 192 101;
  --blue-8: 232 160 32;
  --blue-9: 232 160 32;
  --blue-10: 201 125 6;
  --blue-11: 138 90 5;
  --blue-12: 23 19 10;
  --background-color: 247 246 242;
  --surface-1: 255 255 255;
  --surface-2: 255 255 255;
  --surface-active: 255 255 255;
  --solid-1: 255 255 255;
  --solid-2: 255 255 255;
  --solid-3: 255 255 255;
  --solid-active: 255 255 255;
  --card-color: 255 255 255;
  --button-color: 255 255 255;
  --label-background: 239 237 230;
  --border-weak: 228 225 216;
  --border-strong: 221 217 205;
  --border-container: 228, 225, 216, 1;
  --border-blue: 232, 160, 32, 0.5;
  --border-blue-strong: 138 90 5;
  --solid-blue: 251 228 184;
  --solid-blue-2: 253 243 226;
  --text-blue: 23 19 10;
}

html.dark,
html .dark {
  --rb-accent-ink: #e8a020;
  --slate-1: 14 16 19;
  --slate-2: 23 27 33;
  --slate-3: 27 32 40;
  --slate-4: 32 38 47;
  --slate-5: 38 43 51;
  --slate-6: 46 52 61;
  --slate-7: 51 57 68;
  --slate-8: 90 97 108;
  --slate-9: 138 144 153;
  --slate-10: 154 160 168;
  --slate-11: 185 190 197;
  --slate-12: 236 233 226;
  --blue-1: 18 17 15;
  --blue-2: 26 23 18;
  --blue-3: 38 32 22;
  --blue-4: 50 40 23;
  --blue-5: 65 49 24;
  --blue-6: 85 62 25;
  --blue-7: 110 78 26;
  --blue-8: 143 99 28;
  --blue-9: 232 160 32;
  --blue-10: 243 192 101;
  --blue-11: 232 160 32;
  --blue-12: 251 228 184;
  --background-color: 14 16 19;
  --surface-1: 11 13 16;
  --surface-2: 23 27 33;
  --surface-active: 32 38 47;
  --solid-1: 23 27 33;
  --solid-2: 27 32 40;
  --solid-3: 32 38 47;
  --solid-active: 38 43 51;
  --card-color: 27 32 40;
  --button-color: 32 38 47;
  --label-background: 32 38 47;
  --border-weak: 38 43 51;
  --border-strong: 51 57 68;
  --border-container: 38, 43, 51, 1;
  --border-blue: 232, 160, 32, 0.5;
  --border-blue-strong: 251 228 184;
  --solid-blue: 58 47 28;
  --solid-blue-2: 27 32 40;
  --text-blue: 236 233 226;
}

/* A sidebar é grafite nos dois temas (DESIGN.md §3.1): reaplica o tema escuro nela. */
html aside.bg-n-background {
  --rb-accent-ink: #e8a020;
  --slate-1: 14 16 19;
  --slate-2: 23 27 33;
  --slate-3: 27 32 40;
  --slate-4: 32 38 47;
  --slate-5: 38 43 51;
  --slate-6: 46 52 61;
  --slate-7: 51 57 68;
  --slate-8: 90 97 108;
  --slate-9: 138 144 153;
  --slate-10: 154 160 168;
  --slate-11: 185 190 197;
  --slate-12: 236 233 226;
  --blue-1: 18 17 15;
  --blue-2: 26 23 18;
  --blue-3: 38 32 22;
  --blue-4: 50 40 23;
  --blue-5: 65 49 24;
  --blue-6: 85 62 25;
  --blue-7: 110 78 26;
  --blue-8: 143 99 28;
  --blue-9: 232 160 32;
  --blue-10: 243 192 101;
  --blue-11: 232 160 32;
  --blue-12: 251 228 184;
  --background-color: 11 13 16;
  --surface-1: 11 13 16;
  --surface-2: 23 27 33;
  --surface-active: 32 38 47;
  --solid-1: 23 27 33;
  --solid-2: 27 32 40;
  --solid-3: 32 38 47;
  --solid-active: 38 43 51;
  --card-color: 27 32 40;
  --button-color: 32 38 47;
  --label-background: 32 38 47;
  --border-weak: 38 43 51;
  --border-strong: 51 57 68;
  --border-container: 38, 43, 51, 1;
  --border-blue: 232, 160, 32, 0.5;
  --border-blue-strong: 251 228 184;
  --solid-blue: 58 47 28;
  --solid-blue-2: 27 32 40;
  --text-blue: 236 233 226;
  color: rgb(236 233 226);
}

html body,
html body :is(button, input, textarea, select, .font-inter, .font-interDisplay) {
  font-family: "Archivo", system-ui, sans-serif !important;
}

/* n-brand é hex fixo (#2781F6) no build: precisa de override por classe. */
.bg-n-brand,
.hover\:bg-n-brand:hover {
  background-color: rgb(232 160 32) !important;
}
.hover\:bg-n-brand\/90:hover {
  background-color: rgb(232 160 32 / 0.9) !important;
}
.hover\:bg-n-brand\/80:hover {
  background-color: rgb(232 160 32 / 0.8) !important;
}
.bg-n-brand\/5 {
  background-color: rgb(232 160 32 / 0.05) !important;
}
.bg-n-brand\/10,
.dark .dark\:bg-n-brand\/10,
.hover\:bg-n-brand\/10:hover {
  background-color: rgb(232 160 32 / 0.1) !important;
}
.bg-n-brand\/20 {
  background-color: rgb(232 160 32 / 0.2) !important;
}
/* Texto branco sobre âmbar reprova contraste. */
.bg-n-brand.text-white,
.bg-n-brand .text-white {
  color: #17130a !important;
}
.text-n-brand,
.dark .dark\:text-n-brand,
.hover\:text-n-brand:hover {
  color: var(--rb-accent-ink) !important;
}
.border-n-brand,
.border-n-brand\/50,
.dark .dark\:border-n-brand,
.hover\:border-n-brand:hover,
.focus\:border-n-brand:focus {
  border-color: rgb(232 160 32) !important;
}
.outline-n-brand,
.focus\:outline-n-brand:focus {
  outline-color: rgb(232 160 32) !important;
}
.ring-n-brand,
.focus\:ring-n-brand:focus,
.dark .dark\:ring-n-brand {
  --tw-ring-color: rgb(232 160 32) !important;
}
/* Botão primário sólido azul usa a escala blue em algumas telas. */
.bg-n-blue-9.text-white,
.bg-n-blue-9 .text-white {
  color: #17130a !important;
}

.text-link {
  color: var(--rb-accent-ink) !important;
}
.dark .dark\:bg-n-background {
  background-color: rgb(var(--background-color)) !important;
}
/* Âmbar nunca é fundo de página (DESIGN.md): o login usa um tint da marca no <main>. */
main.bg-n-brand\/5 {
  background-color: rgb(var(--background-color)) !important;
}

/* Logos: o caminho vem do banco (branding pago) e fica um ano em cache; troca pela URL versionada. */
img[src="/brand-assets/logo.svg"] {
  content: url("/brand-assets/logo.svg?v=rb2");
}
img[src="/brand-assets/logo_dark.svg"] {
  content: url("/brand-assets/logo_dark.svg?v=rb2");
}
img[src="/brand-assets/logo_thumbnail.svg"] {
  content: url("/brand-assets/logo_thumbnail.svg?v=rb2");
}
.after\:bg-n-brand::after {
  background-color: rgb(232 160 32) !important;
}
