:root {
  --crm-primary: #0c1b33;
  --crm-primary-strong: #0a162a;
  --crm-surface-bg: #ffffff;
  --crm-surface-bg-soft: #fafaf9;
  --crm-surface-border: #e7e5e4;
  --crm-input-bg: #ffffff;
  --crm-input-border: #d6d3d1;
  --crm-sidebar-bg: #ffffff;
  --crm-sidebar-border: #e7e5e4;
  --crm-sidebar-text: #78716c;
  --crm-sidebar-text-strong: #0f172a;
  --crm-sidebar-logo-color: #0f172a;
  --crm-wallpaper: #fafaf9;
  --crm-overlay: transparent;
  --crm-ink-swatch: #fafaf9;
  --crm-page-text-strong: #000000;
  --crm-page-text-muted: rgba(0, 0, 0, 0.8);
  --crm-page-text-soft: rgba(0, 0, 0, 0.66);
  --crm-surface-text-strong: #0f172a;
  --crm-surface-text-muted: #475569;
  --crm-surface-text-soft: #64748b;
  --crm-glass-bg-classic: rgba(255, 255, 255, 0.68);
  --crm-glass-border-classic: rgba(255, 255, 255, 0.6);
}

body[data-theme='classic'] {
  --crm-primary: #0c1b33;
  --crm-primary-strong: #0a162a;
  --crm-ink-swatch: #fafaf9;
}

body[data-theme='aurora'] {
  --crm-primary: #16a06d;
  --crm-primary-strong: #0f7a53;
  --crm-surface-bg: rgba(255, 255, 255, 0.88);
  --crm-surface-bg-soft: rgba(248, 250, 255, 0.74);
  --crm-surface-border: rgba(164, 180, 217, 0.42);
  --crm-input-bg: rgba(255, 255, 255, 0.9);
  --crm-input-border: rgba(120, 137, 174, 0.48);
  --crm-sidebar-bg: linear-gradient(
    180deg,
    rgba(34, 62, 142, 0.84) 0%,
    rgba(53, 65, 152, 0.8) 45%,
    rgba(98, 58, 154, 0.77) 100%
  );
  --crm-sidebar-border: rgba(195, 219, 255, 0.34);
  --crm-sidebar-text: rgba(230, 239, 255, 0.82);
  --crm-sidebar-text-strong: #f5f9ff;
  --crm-wallpaper:
    radial-gradient(130% 120% at 8% 10%, rgba(31, 94, 200, 0.9) 0%, rgba(31, 94, 200, 0) 52%),
    radial-gradient(95% 85% at 92% 14%, rgba(229, 102, 166, 0.9) 0%, rgba(229, 102, 166, 0) 50%),
    radial-gradient(90% 86% at 60% 100%, rgba(238, 127, 88, 0.78) 0%, rgba(238, 127, 88, 0) 54%),
    linear-gradient(118deg, #2549b6 0%, #5762ca 40%, #c85f9e 73%, #f18d55 100%);
  --crm-overlay: linear-gradient(180deg, rgba(17, 31, 68, 0.24) 0%, rgba(52, 36, 88, 0.13) 100%);
  --crm-ink-swatch: #3f58bb;
}

body[data-theme='oceano'] {
  --crm-primary: #1d4ed8;
  --crm-primary-strong: #1e40af;
  --crm-surface-bg: rgba(250, 254, 255, 0.88);
  --crm-surface-bg-soft: rgba(240, 249, 255, 0.72);
  --crm-surface-border: rgba(132, 169, 197, 0.42);
  --crm-input-bg: rgba(255, 255, 255, 0.92);
  --crm-input-border: rgba(106, 152, 181, 0.42);
  --crm-sidebar-bg: linear-gradient(
    180deg,
    rgba(10, 63, 122, 0.88) 0%,
    rgba(12, 86, 133, 0.8) 52%,
    rgba(15, 111, 135, 0.74) 100%
  );
  --crm-sidebar-border: rgba(176, 225, 246, 0.32);
  --crm-sidebar-text: rgba(214, 240, 248, 0.84);
  --crm-sidebar-text-strong: #f1fdff;
  --crm-wallpaper:
    radial-gradient(140% 120% at 12% 15%, rgba(29, 78, 216, 0.56) 0%, rgba(29, 78, 216, 0) 55%),
    radial-gradient(90% 85% at 90% 8%, rgba(14, 165, 233, 0.45) 0%, rgba(14, 165, 233, 0) 50%),
    radial-gradient(110% 86% at 50% 100%, rgba(45, 212, 191, 0.36) 0%, rgba(45, 212, 191, 0) 58%),
    linear-gradient(120deg, #123f80 0%, #155fa1 44%, #2d8bbf 78%, #5cc6c2 100%);
  --crm-overlay: linear-gradient(180deg, rgba(11, 38, 66, 0.29) 0%, rgba(11, 45, 71, 0.16) 100%);
  --crm-ink-swatch: #155fa1;
}

body[data-theme='amanhecer'] {
  --crm-primary: #7e22ce;
  --crm-primary-strong: #6b21a8;
  --crm-surface-bg: rgba(255, 251, 255, 0.88);
  --crm-surface-bg-soft: rgba(255, 247, 250, 0.74);
  --crm-surface-border: rgba(192, 151, 206, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.9);
  --crm-input-border: rgba(189, 130, 195, 0.42);
  --crm-sidebar-bg: linear-gradient(
    180deg,
    rgba(74, 34, 128, 0.86) 0%,
    rgba(109, 41, 156, 0.8) 52%,
    rgba(183, 78, 124, 0.72) 100%
  );
  --crm-sidebar-border: rgba(243, 210, 255, 0.35);
  --crm-sidebar-text: rgba(248, 232, 255, 0.84);
  --crm-sidebar-text-strong: #fff7ff;
  --crm-wallpaper:
    radial-gradient(125% 130% at 18% 12%, rgba(129, 67, 206, 0.82) 0%, rgba(129, 67, 206, 0) 52%),
    radial-gradient(85% 95% at 92% 16%, rgba(236, 72, 153, 0.74) 0%, rgba(236, 72, 153, 0) 53%),
    radial-gradient(80% 90% at 75% 95%, rgba(251, 146, 60, 0.65) 0%, rgba(251, 146, 60, 0) 55%),
    linear-gradient(118deg, #5030a2 0%, #7a39b8 44%, #cb4e8f 74%, #f58f5e 100%);
  --crm-overlay: linear-gradient(180deg, rgba(58, 24, 79, 0.27) 0%, rgba(96, 33, 83, 0.15) 100%);
  --crm-ink-swatch: #7a39b8;
}

body[data-theme='esmeralda'] {
  --crm-primary: #0f8f6d;
  --crm-primary-strong: #0a7659;
  --crm-surface-bg: rgba(246, 255, 252, 0.9);
  --crm-surface-bg-soft: rgba(230, 247, 241, 0.76);
  --crm-surface-border: rgba(128, 188, 171, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.94);
  --crm-input-border: rgba(116, 174, 158, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(16, 98, 79, 0.9) 0%, rgba(23, 118, 94, 0.82) 52%, rgba(31, 145, 112, 0.76) 100%);
  --crm-sidebar-border: rgba(175, 242, 219, 0.3);
  --crm-sidebar-text: rgba(217, 255, 244, 0.86);
  --crm-sidebar-text-strong: #f1fff9;
  --crm-wallpaper:
    radial-gradient(125% 125% at 12% 14%, rgba(20, 161, 133, 0.62) 0%, rgba(20, 161, 133, 0) 54%),
    radial-gradient(90% 90% at 88% 12%, rgba(34, 197, 94, 0.44) 0%, rgba(34, 197, 94, 0) 48%),
    linear-gradient(122deg, #0f5f57 0%, #157a6f 45%, #1f9e87 82%, #64d7b7 100%);
  --crm-overlay: linear-gradient(180deg, rgba(9, 41, 34, 0.25) 0%, rgba(8, 46, 37, 0.14) 100%);
  --crm-ink-swatch: #1f7f63;
}

body[data-theme='grafite'] {
  --crm-primary: #e2e8f0;
  --crm-primary-strong: #f1f5f9;
  --crm-surface-bg: rgba(24, 28, 36, 0.86);
  --crm-surface-bg-soft: rgba(36, 41, 50, 0.76);
  --crm-surface-border: rgba(95, 108, 130, 0.42);
  --crm-input-bg: rgba(22, 27, 34, 0.88);
  --crm-input-border: rgba(110, 122, 145, 0.46);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(28, 33, 44, 0.92) 0%, rgba(34, 40, 53, 0.9) 52%, rgba(42, 49, 64, 0.84) 100%);
  --crm-sidebar-border: rgba(125, 141, 168, 0.34);
  --crm-sidebar-text: rgba(218, 227, 241, 0.82);
  --crm-sidebar-text-strong: #f8fbff;
  --crm-wallpaper:
    radial-gradient(130% 130% at 10% 10%, rgba(71, 85, 105, 0.56) 0%, rgba(71, 85, 105, 0) 52%),
    radial-gradient(95% 90% at 90% 18%, rgba(100, 116, 139, 0.38) 0%, rgba(100, 116, 139, 0) 50%),
    linear-gradient(120deg, #121722 0%, #1b2331 45%, #273248 78%, #36455f 100%);
  --crm-overlay: linear-gradient(180deg, rgba(8, 12, 20, 0.34) 0%, rgba(8, 12, 20, 0.2) 100%);
  --crm-ink-swatch: #20252f;
  --crm-surface-text-strong: #e2e8f0;
  --crm-surface-text-muted: #cbd5e1;
  --crm-surface-text-soft: #94a3b8;
}

body[data-theme='sunset'] {
  --crm-primary: #e86850;
  --crm-primary-strong: #d14d3b;
  --crm-surface-bg: rgba(255, 249, 246, 0.9);
  --crm-surface-bg-soft: rgba(255, 237, 230, 0.78);
  --crm-surface-border: rgba(232, 165, 147, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.92);
  --crm-input-border: rgba(224, 153, 132, 0.46);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(142, 50, 88, 0.9) 0%, rgba(184, 77, 89, 0.84) 50%, rgba(229, 124, 84, 0.78) 100%);
  --crm-sidebar-border: rgba(255, 220, 207, 0.34);
  --crm-sidebar-text: rgba(255, 238, 232, 0.84);
  --crm-sidebar-text-strong: #fffaf8;
  --crm-wallpaper:
    radial-gradient(128% 126% at 8% 14%, rgba(185, 77, 106, 0.66) 0%, rgba(185, 77, 106, 0) 54%),
    radial-gradient(84% 96% at 92% 10%, rgba(248, 113, 113, 0.58) 0%, rgba(248, 113, 113, 0) 48%),
    linear-gradient(122deg, #8b3b6f 0%, #b54f64 46%, #da6d57 76%, #f39f67 100%);
  --crm-overlay: linear-gradient(180deg, rgba(66, 22, 39, 0.26) 0%, rgba(84, 30, 36, 0.14) 100%);
  --crm-ink-swatch: #b84a6a;
}

body[data-theme='nebula'] {
  --crm-primary: #7c3aed;
  --crm-primary-strong: #6d28d9;
  --crm-surface-bg: rgba(247, 243, 255, 0.9);
  --crm-surface-bg-soft: rgba(234, 224, 255, 0.78);
  --crm-surface-border: rgba(165, 137, 228, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.92);
  --crm-input-border: rgba(151, 124, 214, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(48, 28, 99, 0.9) 0%, rgba(67, 36, 141, 0.84) 52%, rgba(93, 49, 174, 0.78) 100%);
  --crm-sidebar-border: rgba(213, 198, 255, 0.32);
  --crm-sidebar-text: rgba(238, 231, 255, 0.86);
  --crm-sidebar-text-strong: #f8f4ff;
  --crm-wallpaper:
    radial-gradient(128% 128% at 8% 14%, rgba(59, 130, 246, 0.52) 0%, rgba(59, 130, 246, 0) 54%),
    radial-gradient(88% 88% at 86% 12%, rgba(168, 85, 247, 0.62) 0%, rgba(168, 85, 247, 0) 52%),
    linear-gradient(122deg, #21114b 0%, #38207f 44%, #5e33aa 76%, #7b45c4 100%);
  --crm-overlay: linear-gradient(180deg, rgba(18, 8, 41, 0.28) 0%, rgba(29, 15, 56, 0.16) 100%);
  --crm-ink-swatch: #402d9a;
}

body[data-theme='tropical'] {
  --crm-primary: #0f9b8e;
  --crm-primary-strong: #0a8479;
  --crm-surface-bg: rgba(240, 253, 251, 0.9);
  --crm-surface-bg-soft: rgba(221, 247, 242, 0.78);
  --crm-surface-border: rgba(104, 191, 177, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.94);
  --crm-input-border: rgba(104, 177, 166, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(17, 98, 102, 0.9) 0%, rgba(16, 123, 120, 0.84) 52%, rgba(18, 146, 131, 0.78) 100%);
  --crm-sidebar-border: rgba(175, 244, 227, 0.34);
  --crm-sidebar-text: rgba(223, 252, 246, 0.86);
  --crm-sidebar-text-strong: #f3fffd;
  --crm-wallpaper:
    radial-gradient(128% 128% at 12% 12%, rgba(20, 184, 166, 0.62) 0%, rgba(20, 184, 166, 0) 52%),
    radial-gradient(94% 90% at 88% 10%, rgba(52, 211, 153, 0.48) 0%, rgba(52, 211, 153, 0) 50%),
    linear-gradient(122deg, #0c5d6e 0%, #14827f 45%, #1ea48d 75%, #4fd3a7 100%);
  --crm-overlay: linear-gradient(180deg, rgba(7, 36, 38, 0.25) 0%, rgba(8, 50, 48, 0.14) 100%);
  --crm-ink-swatch: #1f9d8c;
}

body[data-theme='boreal'] {
  --crm-primary: #0ea5e9;
  --crm-primary-strong: #0284c7;
  --crm-surface-bg: rgba(243, 252, 255, 0.9);
  --crm-surface-bg-soft: rgba(227, 244, 250, 0.78);
  --crm-surface-border: rgba(125, 177, 203, 0.42);
  --crm-input-bg: rgba(255, 255, 255, 0.94);
  --crm-input-border: rgba(118, 164, 189, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(22, 71, 103, 0.9) 0%, rgba(29, 93, 129, 0.84) 52%, rgba(37, 120, 154, 0.78) 100%);
  --crm-sidebar-border: rgba(175, 220, 240, 0.34);
  --crm-sidebar-text: rgba(218, 245, 255, 0.86);
  --crm-sidebar-text-strong: #f3fcff;
  --crm-wallpaper:
    radial-gradient(130% 125% at 10% 12%, rgba(56, 189, 248, 0.58) 0%, rgba(56, 189, 248, 0) 54%),
    radial-gradient(86% 90% at 86% 10%, rgba(34, 211, 238, 0.42) 0%, rgba(34, 211, 238, 0) 50%),
    linear-gradient(122deg, #103d66 0%, #1a5f89 46%, #2884a3 76%, #5fc7be 100%);
  --crm-overlay: linear-gradient(180deg, rgba(8, 32, 52, 0.25) 0%, rgba(8, 44, 60, 0.14) 100%);
  --crm-ink-swatch: #225f7d;
}

body[data-theme='coral'] {
  --crm-primary: #ec5f86;
  --crm-primary-strong: #db3f74;
  --crm-surface-bg: rgba(255, 247, 250, 0.9);
  --crm-surface-bg-soft: rgba(255, 232, 239, 0.78);
  --crm-surface-border: rgba(227, 149, 174, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.92);
  --crm-input-border: rgba(214, 137, 160, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(128, 54, 96, 0.9) 0%, rgba(168, 68, 108, 0.84) 52%, rgba(208, 85, 116, 0.78) 100%);
  --crm-sidebar-border: rgba(255, 209, 221, 0.34);
  --crm-sidebar-text: rgba(255, 235, 243, 0.86);
  --crm-sidebar-text-strong: #fff8fb;
  --crm-wallpaper:
    radial-gradient(128% 126% at 10% 12%, rgba(190, 74, 147, 0.58) 0%, rgba(190, 74, 147, 0) 54%),
    radial-gradient(88% 92% at 88% 10%, rgba(251, 113, 133, 0.54) 0%, rgba(251, 113, 133, 0) 50%),
    linear-gradient(122deg, #8d346f 0%, #bf4e7e 44%, #e06b7c 74%, #f39e76 100%);
  --crm-overlay: linear-gradient(180deg, rgba(58, 18, 43, 0.24) 0%, rgba(78, 24, 48, 0.13) 100%);
  --crm-ink-swatch: #d6687d;
}

body[data-theme='sky'] {
  --crm-primary: #2563eb;
  --crm-primary-strong: #1d4ed8;
  --crm-surface-bg: rgba(246, 251, 255, 0.9);
  --crm-surface-bg-soft: rgba(229, 241, 255, 0.8);
  --crm-surface-border: rgba(142, 175, 225, 0.44);
  --crm-input-bg: rgba(255, 255, 255, 0.94);
  --crm-input-border: rgba(131, 167, 222, 0.44);
  --crm-sidebar-bg: linear-gradient(180deg, rgba(35, 75, 149, 0.9) 0%, rgba(45, 94, 177, 0.84) 52%, rgba(62, 122, 200, 0.78) 100%);
  --crm-sidebar-border: rgba(190, 215, 255, 0.34);
  --crm-sidebar-text: rgba(231, 241, 255, 0.86);
  --crm-sidebar-text-strong: #f8fbff;
  --crm-wallpaper:
    radial-gradient(126% 125% at 12% 12%, rgba(59, 130, 246, 0.62) 0%, rgba(59, 130, 246, 0) 54%),
    radial-gradient(90% 92% at 88% 10%, rgba(147, 197, 253, 0.54) 0%, rgba(147, 197, 253, 0) 50%),
    linear-gradient(122deg, #2a4f9f 0%, #3c7ecf 46%, #5fa7e7 76%, #93d5ff 100%);
  --crm-overlay: linear-gradient(180deg, rgba(19, 46, 104, 0.2) 0%, rgba(24, 63, 123, 0.1) 100%);
  --crm-ink-swatch: #3c7ecf;
}

body.crm-theme-ready {
  position: relative;
  isolation: isolate;
  transition: color 0.2s ease;
}

body.crm-theme-ready[data-theme-ink='light'] {
  --crm-page-text-strong: #f8fbff;
  --crm-page-text-muted: rgba(248, 251, 255, 0.86);
  --crm-page-text-soft: rgba(248, 251, 255, 0.72);
  --crm-sidebar-logo-color: #f8fbff;
}

body.crm-theme-ready[data-theme-ink='dark'] {
  --crm-page-text-strong: #0f172a;
  --crm-page-text-muted: rgba(15, 23, 42, 0.82);
  --crm-page-text-soft: rgba(15, 23, 42, 0.68);
  --crm-sidebar-logo-color: #0f172a;
}

body.crm-theme-ready:not([data-theme='classic']) {
  min-height: 100vh;
  background: transparent !important;
}

body.crm-theme-ready:not([data-theme='classic'])::before,
body.crm-theme-ready:not([data-theme='classic'])::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.crm-theme-ready:not([data-theme='classic'])::before {
  z-index: -2;
  background: var(--crm-wallpaper);
}

body.crm-theme-ready:not([data-theme='classic'])::after {
  z-index: -1;
  background: var(--crm-overlay);
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main {
  color: var(--crm-page-text-strong);
}

body.crm-theme-ready:not([data-theme='classic']) .crm-page-header {
  color: var(--crm-page-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .crm-page-header h1,
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header h2,
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header h3,
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header [class*='text-2xl'],
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header [class*='text-xl'] {
  color: var(--crm-page-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .crm-page-header p,
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header [class*='text-stone-600'],
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header [class*='text-stone-500'],
body.crm-theme-ready:not([data-theme='classic']) .crm-page-header [class*='text-stone-400'] {
  color: var(--crm-page-text-muted) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-900'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-800'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-700'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-900'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-800'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-700'] {
  color: var(--crm-page-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-600'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-500'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-600'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-500'] {
  color: var(--crm-page-text-muted) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-stone-400'],
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main [class*='text-slate-400'] {
  color: var(--crm-page-text-soft) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > main :is(h1, h2, h3, h4) {
  color: var(--crm-page-text-strong);
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 {
  background: var(--crm-sidebar-bg) !important;
  border-right: 1px solid var(--crm-sidebar-border) !important;
  backdrop-filter: blur(8px) saturate(118%);
  box-shadow: 10px 0 28px -20px rgba(15, 23, 42, 0.6);
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 .crm-sidebar-logo {
  height: 5.6rem !important;
  width: auto !important;
  filter: none;
  opacity: 0.98;
}

.crm-sidebar-logo-vector {
  color: var(--crm-sidebar-logo-color, #0f172a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  line-height: 1;
  text-align: center;
  width: min(12.5rem, 100%);
  padding-top: 0.08rem;
  padding-bottom: 0.08rem;
}

.crm-sidebar-logo-vector.crm-sidebar-logo {
  height: auto !important;
  width: min(12.5rem, 100%) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 .crm-sidebar-logo-vector.crm-sidebar-logo {
  height: auto !important;
  width: min(12.5rem, 100%) !important;
}

.crm-sidebar-logo-vector .crm-sidebar-logo-mark {
  display: block;
  width: min(3rem, 39%);
}

.crm-sidebar-logo-vector .crm-sidebar-logo-mark-svg {
  display: block;
  width: 100%;
  height: auto;
}

.crm-sidebar-logo-vector .crm-sidebar-logo-wordmark {
  display: block;
  font-family: 'IBM Plex Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: clamp(1.78rem, 2.1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.crm-sidebar-logo-vector .crm-sidebar-logo-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.86;
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 .crm-sidebar-logo-vector {
  color: var(--crm-sidebar-text-strong);
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 nav a,
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 nav button {
  color: var(--crm-sidebar-text) !important;
  border-radius: 0.7rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.min-h-screen.flex > aside.w-64 nav {
  font-size: 1.08rem;
}

.min-h-screen.flex > aside.w-64 nav.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.95rem;
}

.min-h-screen.flex > aside.w-64 nav a,
.min-h-screen.flex > aside.w-64 nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  min-height: 3rem;
}

.min-h-screen.flex > aside.w-64 nav a::before,
.min-h-screen.flex > aside.w-64 nav button#logoutBtn::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0.95;
}

.min-h-screen.flex > aside.w-64 nav a[href*='dashboard']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6H11v6H6V11H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6H11v6H6V11H3z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='clientes']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zM8 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 13c-2.8 0-5 1.7-5 3.8V19h10v-2.2C13 14.7 10.8 13 8 13zm8 0c-.4 0-.8 0-1.1.1a4.9 4.9 0 0 1 2.1 3.7V19H22v-1.7c0-2.5-2.4-4.3-6-4.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zM8 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 13c-2.8 0-5 1.7-5 3.8V19h10v-2.2C13 14.7 10.8 13 8 13zm8 0c-.4 0-.8 0-1.1.1a4.9 4.9 0 0 1 2.1 3.7V19H22v-1.7c0-2.5-2.4-4.3-6-4.3z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='processos']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1v5h5M8 12h8v2H8zm0 4h8v2H8zm0-8h4v2H8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1v5h5M8 12h8v2H8zm0 4h8v2H8zm0-8h4v2H8z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='financeiro']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 2h2v3.1c2.8.4 5 2.1 5 4.8h-3c0-1.4-1.3-2.4-3-2.4s-3 .8-3 2.1c0 1.4 1.5 2 3.4 2.5 2.8.7 6.1 1.6 6.1 5.2 0 2.7-2.1 4.5-5.5 4.9V22h-2v-2.3c-3.4-.4-5.8-2.5-5.9-5.2h3c.1 1.7 1.6 2.8 3.6 2.8 1.9 0 3.3-.8 3.3-2.2 0-1.5-1.6-2.1-3.8-2.7-2.7-.7-5.7-1.7-5.7-5 0-2.6 2.1-4.4 5.5-4.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 2h2v3.1c2.8.4 5 2.1 5 4.8h-3c0-1.4-1.3-2.4-3-2.4s-3 .8-3 2.1c0 1.4 1.5 2 3.4 2.5 2.8.7 6.1 1.6 6.1 5.2 0 2.7-2.1 4.5-5.5 4.9V22h-2v-2.3c-3.4-.4-5.8-2.5-5.9-5.2h3c.1 1.7 1.6 2.8 3.6 2.8 1.9 0 3.3-.8 3.3-2.2 0-1.5-1.6-2.1-3.8-2.7-2.7-.7-5.7-1.7-5.7-5 0-2.6 2.1-4.4 5.5-4.8z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='atividades']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14zm-8.3-2.2-3-3 1.4-1.4 1.6 1.6 4.2-4.2 1.4 1.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14zm-8.3-2.2-3-3 1.4-1.4 1.6 1.6 4.2-4.2 1.4 1.4z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='publicacoes-djen']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11l3 3v15H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm9 1v4h4M8 11h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11l3 3v15H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm9 1v4h4M8 11h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='documentos']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1v5h5M8 12h8v2H8zm0 4h8v2H8zm0-8h4v2H8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1v5h5M8 12h8v2H8zm0 4h8v2H8zm0-8h4v2H8z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav a[href*='ajustes']::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.4 13a7.8 7.8 0 0 0 .1-1 7.8 7.8 0 0 0-.1-1l2.1-1.7a.5.5 0 0 0 .1-.7l-2-3.5a.5.5 0 0 0-.6-.2l-2.5 1a7.4 7.4 0 0 0-1.7-1L14.5 2a.5.5 0 0 0-.5-.4h-4a.5.5 0 0 0-.5.4l-.4 2.8a7.4 7.4 0 0 0-1.7 1l-2.5-1a.5.5 0 0 0-.6.2l-2 3.5a.5.5 0 0 0 .1.7L4.6 11a7.8 7.8 0 0 0-.1 1 7.8 7.8 0 0 0 .1 1l-2.1 1.7a.5.5 0 0 0-.1.7l2 3.5a.5.5 0 0 0 .6.2l2.5-1a7.4 7.4 0 0 0 1.7 1l.4 2.8a.5.5 0 0 0 .5.4h4a.5.5 0 0 0 .5-.4l.4-2.8a7.4 7.4 0 0 0 1.7-1l2.5 1a.5.5 0 0 0 .6-.2l2-3.5a.5.5 0 0 0-.1-.7zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.4 13a7.8 7.8 0 0 0 .1-1 7.8 7.8 0 0 0-.1-1l2.1-1.7a.5.5 0 0 0 .1-.7l-2-3.5a.5.5 0 0 0-.6-.2l-2.5 1a7.4 7.4 0 0 0-1.7-1L14.5 2a.5.5 0 0 0-.5-.4h-4a.5.5 0 0 0-.5.4l-.4 2.8a7.4 7.4 0 0 0-1.7 1l-2.5-1a.5.5 0 0 0-.6.2l-2 3.5a.5.5 0 0 0 .1.7L4.6 11a7.8 7.8 0 0 0-.1 1 7.8 7.8 0 0 0 .1 1l-2.1 1.7a.5.5 0 0 0-.1.7l2 3.5a.5.5 0 0 0 .6.2l2.5-1a7.4 7.4 0 0 0 1.7 1l.4 2.8a.5.5 0 0 0 .5.4h4a.5.5 0 0 0 .5-.4l.4-2.8a7.4 7.4 0 0 0 1.7-1l2.5 1a.5.5 0 0 0 .6-.2l2-3.5a.5.5 0 0 0-.1-.7zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
}

.min-h-screen.flex > aside.w-64 nav button#logoutBtn::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 17v-3H9v-4h7V7l5 5zM3 3h8v2H5v14h6v2H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 17v-3H9v-4h7V7l5 5zM3 3h8v2H5v14h6v2H3z'/%3E%3C/svg%3E");
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 nav a.font-medium {
  color: var(--crm-sidebar-text-strong) !important;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px -10px rgba(15, 23, 42, 0.65);
}

body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 nav a:hover,
body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 nav button:hover {
  color: var(--crm-sidebar-text-strong) !important;
  background: rgba(255, 255, 255, 0.12);
}

.crm-workspace-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.02rem 0 0.12rem;
}

#crmWorkspaceSettingsBtn {
  justify-self: end;
  margin-right: 0.15rem;
}

.crm-workspace-user {
  justify-self: end;
  margin-right: -0.35rem;
}

.min-h-screen.flex > main > #crmWorkspaceHeader + * {
  margin-top: 0.95rem !important;
}

.min-h-screen.flex > aside.w-64 {
  padding-top: 1rem !important;
}

body[data-page='dashboard'] .min-h-screen.flex > main aside.w-60.shrink-0.space-y-6.sticky {
  margin-top: 1.2rem;
}

.crm-workspace-icon-btn,
.crm-workspace-settings-btn {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(120, 113, 108, 0.24);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
}

.crm-workspace-icon-menu,
.crm-workspace-icon-gear,
.crm-workspace-icon-user {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.crm-workspace-icon-menu {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z'/%3E%3C/svg%3E");
}

.crm-workspace-icon-gear {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.4 13a7.8 7.8 0 0 0 .1-1 7.8 7.8 0 0 0-.1-1l2.1-1.7a.5.5 0 0 0 .1-.7l-2-3.5a.5.5 0 0 0-.6-.2l-2.5 1a7.4 7.4 0 0 0-1.7-1L14.5 2a.5.5 0 0 0-.5-.4h-4a.5.5 0 0 0-.5.4l-.4 2.8a7.4 7.4 0 0 0-1.7 1l-2.5-1a.5.5 0 0 0-.6.2l-2 3.5a.5.5 0 0 0 .1.7L4.6 11a7.8 7.8 0 0 0-.1 1 7.8 7.8 0 0 0 .1 1l-2.1 1.7a.5.5 0 0 0-.1.7l2 3.5a.5.5 0 0 0 .6.2l2.5-1a7.4 7.4 0 0 0 1.7 1l.4 2.8a.5.5 0 0 0 .5.4h4a.5.5 0 0 0 .5-.4l.4-2.8a7.4 7.4 0 0 0 1.7-1l2.5 1a.5.5 0 0 0 .6-.2l2-3.5a.5.5 0 0 0-.1-.7zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.4 13a7.8 7.8 0 0 0 .1-1 7.8 7.8 0 0 0-.1-1l2.1-1.7a.5.5 0 0 0 .1-.7l-2-3.5a.5.5 0 0 0-.6-.2l-2.5 1a7.4 7.4 0 0 0-1.7-1L14.5 2a.5.5 0 0 0-.5-.4h-4a.5.5 0 0 0-.5.4l-.4 2.8a7.4 7.4 0 0 0-1.7 1l-2.5-1a.5.5 0 0 0-.6.2l-2 3.5a.5.5 0 0 0 .1.7L4.6 11a7.8 7.8 0 0 0-.1 1 7.8 7.8 0 0 0 .1 1l-2.1 1.7a.5.5 0 0 0-.1.7l2 3.5a.5.5 0 0 0 .6.2l2.5-1a7.4 7.4 0 0 0 1.7 1l.4 2.8a.5.5 0 0 0 .5.4h4a.5.5 0 0 0 .5-.4l.4-2.8a7.4 7.4 0 0 0 1.7-1l2.5 1a.5.5 0 0 0 .6-.2l2-3.5a.5.5 0 0 0-.1-.7zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
}

.crm-workspace-user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 220px;
}

.crm-workspace-user-avatar {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 2px solid rgba(56, 189, 248, 0.78);
  background: rgba(14, 116, 144, 0.14);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-workspace-icon-user {
  width: 1.28rem;
  height: 1.28rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.2 0-8 2.1-8 5v1h16v-1c0-2.9-3.8-5-8-5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.2 0-8 2.1-8 5v1h16v-1c0-2.9-3.8-5-8-5z'/%3E%3C/svg%3E");
}

.crm-workspace-user-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
}

.crm-workspace-user-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 {
  width: 5.2rem !important;
  min-width: 5.2rem !important;
  overflow: hidden;
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
}

body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 .crm-sidebar-logo-wordmark,
body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 .crm-sidebar-logo-subtitle,
body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 nav a,
body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 nav button {
  font-size: 0 !important;
}

body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 nav a::before,
body.crm-sidebar-collapsed .min-h-screen.flex > aside.w-64 nav button#logoutBtn::before {
  margin-right: 0;
}

@media (max-width: 1100px) {
  .crm-workspace-header {
    grid-template-columns: auto 1fr auto auto;
  }
  .crm-workspace-user {
    min-width: 0;
  }
}

body.crm-theme-ready:not([data-theme='classic']) .bg-white,
body.crm-theme-ready:not([data-theme='classic']) .dashboard-summary-card {
  background: var(--crm-surface-bg) !important;
  border-color: var(--crm-surface-border) !important;
  color: var(--crm-surface-text-strong) !important;
  backdrop-filter: blur(6px) saturate(114%);
  box-shadow: 0 20px 32px -30px rgba(15, 23, 42, 0.58);
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  :is(h1, h2, h3, h4) {
  color: var(--crm-surface-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-900'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-800'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-700'] {
  color: var(--crm-surface-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-900'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-800'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-700'] {
  color: var(--crm-surface-text-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-600'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-500'] {
  color: var(--crm-surface-text-muted) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-600'],
body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-500'] {
  color: var(--crm-surface-text-muted) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-stone-400'] {
  color: var(--crm-surface-text-soft) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  .min-h-screen.flex
  > main
  :is(.bg-white, .dashboard-summary-card, .stats-panel)
  [class*='text-slate-400'] {
  color: var(--crm-surface-text-soft) !important;
}

body.crm-theme-ready:not([data-theme='classic']) [class*='bg-stone-50'] {
  background-color: var(--crm-surface-bg-soft) !important;
}

body.crm-theme-ready:not([data-theme='classic']) [class*='border-stone-100'],
body.crm-theme-ready:not([data-theme='classic']) [class*='border-stone-200'],
body.crm-theme-ready:not([data-theme='classic']) [class*='border-stone-300'] {
  border-color: var(--crm-surface-border) !important;
}

body.crm-theme-ready:not([data-theme='classic'])
  input:not([type='checkbox']):not([type='radio']):not([type='file']),
body.crm-theme-ready:not([data-theme='classic']) select,
body.crm-theme-ready:not([data-theme='classic']) textarea {
  background: var(--crm-input-bg);
  border-color: var(--crm-input-border);
}

body.crm-theme-ready:not([data-theme='classic']) :is(button, a)[class*='bg-[#0C1B33]'] {
  background: var(--crm-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.crm-theme-ready[data-theme='grafite'] :is(button, a)[class*='bg-[#0C1B33]'] {
  color: #0f172a !important;
}

body.crm-theme-ready:not([data-theme='classic']) :is(button, a)[class*='hover:bg-[#0A162A]']:hover,
body.crm-theme-ready:not([data-theme='classic']) :is(button, a)[class*='bg-[#0C1B33]']:hover {
  background: var(--crm-primary-strong) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .dashboard-range-btn.is-active {
  color: var(--crm-primary) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .hover\:bg-stone-50:hover {
  background-color: var(--crm-surface-bg-soft) !important;
}

body.crm-theme-ready .crm-glass-block {
  background: var(--crm-glass-bg-classic) !important;
  border-color: var(--crm-glass-border-classic) !important;
  box-shadow:
    0 18px 34px -28px rgba(15, 23, 42, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
  backdrop-filter: blur(6px) saturate(114%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(114%) !important;
}

body.crm-theme-ready:not([data-theme='classic']) .crm-glass-block {
  background: color-mix(in srgb, var(--crm-surface-bg) 84%, transparent) !important;
  border-color: color-mix(in srgb, var(--crm-surface-border) 72%, rgba(255, 255, 255, 0.55)) !important;
}

@media (max-width: 1200px) {
  body.crm-theme-ready:not([data-theme='classic']) .bg-white,
  body.crm-theme-ready:not([data-theme='classic']) .dashboard-summary-card,
  body.crm-theme-ready .crm-glass-block {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 1024px) {
  body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex {
    flex-direction: column;
  }

  body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 {
    width: 100%;
    border-right: 0 !important;
    border-bottom: 1px solid var(--crm-sidebar-border) !important;
  }

  body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 .crm-sidebar-logo {
    height: 5rem !important;
  }

  body.crm-theme-ready:not([data-theme='classic']) .min-h-screen.flex > aside.w-64 .crm-sidebar-logo-vector.crm-sidebar-logo {
    height: auto !important;
    width: min(10.7rem, 100%) !important;
  }
}

.crm-bottom-dock {
  position: relative;
  margin-top: 1.1rem;
  margin-bottom: 0.85rem;
  user-select: none;
}

.crm-bottom-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.08rem 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: #475569;
  box-shadow: none;
}

.crm-bottom-brand {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.crm-bottom-link {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  opacity: 0.92;
}

.crm-bottom-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.crm-theme-modal.hidden {
  display: none;
}

body.crm-theme-ready:not([data-theme='classic']) .crm-bottom-bar {
  border: 0;
  background: transparent;
  color: rgba(239, 246, 255, 0.92);
}

.crm-theme-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  background: rgba(15, 23, 42, 0.4);
}

.crm-theme-modal-panel {
  width: min(97vw, 98rem);
  max-height: calc(100vh - 1.1rem);
  border-radius: 1.9rem;
  background: #ffffff;
  box-shadow: 0 34px 90px -38px rgba(15, 23, 42, 0.78);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.crm-theme-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.65rem;
}

.crm-theme-modal-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.12rem + 0.52vw, 1.72rem);
  line-height: 1.1;
  font-weight: 600;
  color: #727b87;
}

.crm-theme-modal-close {
  border: 0;
  background: transparent;
  color: #a8b0bb;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.crm-theme-modal-close:hover {
  color: #64748b;
}

.crm-theme-modal-body {
  padding: 0.75rem 1rem 0;
  background: #eef1f5;
}

.crm-theme-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.7rem, 1fr));
  gap: 0.8rem;
  max-height: min(60vh, 39rem);
  overflow: auto;
  padding: 0.25rem 0.25rem 0.6rem;
}

.crm-theme-card {
  position: relative;
  border: 3px solid transparent;
  border-radius: 1.15rem;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: #d9dee5;
  min-height: 10.8rem;
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.crm-theme-card:focus-visible {
  outline: none;
  border-color: #22c3f5;
  box-shadow: 0 0 0 3px rgba(34, 195, 245, 0.26);
}

.crm-theme-card.is-active {
  border-color: #22c3f5;
  box-shadow: 0 10px 25px -18px rgba(2, 132, 199, 0.75);
}

.crm-theme-preview {
  position: absolute;
  inset: 0;
}

.crm-theme-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 8%, rgba(15, 23, 42, 0.56) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.crm-theme-card.is-active .crm-theme-card-label,
.crm-theme-card:hover .crm-theme-card-label {
  opacity: 1;
  transform: translateY(0);
}

.crm-theme-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.6rem;
  line-height: 1;
  text-indent: 0.12em;
}

.crm-theme-card-badge {
  position: absolute;
  right: 0.72rem;
  top: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.22rem 0.92rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.92);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

.crm-theme-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.05rem 1.2rem 1.15rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.crm-theme-default-all {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #4b5563;
  font-size: clamp(0.98rem, 0.91rem + 0.3vw, 1.02rem);
  font-weight: 500;
}

.crm-theme-default-all input {
  width: 1.2rem;
  height: 1.2rem;
}

.crm-theme-default-all input:disabled {
  opacity: 0.85;
}

.crm-theme-lock {
  color: #0ea5e9;
  font-size: 1rem;
}

.crm-theme-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.crm-theme-save-btn,
.crm-theme-cancel-btn,
.crm-theme-custom-btn {
  border: 0;
  border-radius: 0.58rem;
  background: transparent;
  color: #4b5563;
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 0.74rem 1.28rem;
  cursor: pointer;
}

.crm-theme-save-btn {
  background: #b9e51b;
  color: #486110;
}

.crm-theme-save-btn:disabled {
  opacity: 0.66;
  cursor: wait;
}

.crm-theme-cancel-btn:hover,
.crm-theme-custom-btn:hover {
  color: #1f2937;
}

.crm-theme-custom-btn {
  color: #4b5563;
  padding-right: 0.2rem;
}

.crm-theme-preview--classic {
  background:
    radial-gradient(130% 120% at 15% 85%, rgba(88, 65, 176, 0.85) 0%, rgba(88, 65, 176, 0) 55%),
    radial-gradient(90% 95% at 85% 20%, rgba(255, 168, 152, 0.82) 0%, rgba(255, 168, 152, 0) 50%),
    linear-gradient(122deg, #1d3f8b 0%, #3d60bf 44%, #c26195 76%, #e98278 100%);
}

.crm-theme-preview--aurora {
  background:
    radial-gradient(130% 120% at 10% 10%, rgba(43, 115, 223, 0.7) 0%, rgba(43, 115, 223, 0) 52%),
    radial-gradient(90% 90% at 90% 10%, rgba(248, 134, 172, 0.8) 0%, rgba(248, 134, 172, 0) 50%),
    linear-gradient(125deg, #2a4db7 0%, #5a64c9 44%, #c35ca2 75%, #ef8b5a 100%);
}

.crm-theme-preview--oceano {
  background:
    radial-gradient(125% 120% at 12% 12%, rgba(30, 116, 207, 0.7) 0%, rgba(30, 116, 207, 0) 54%),
    radial-gradient(90% 90% at 90% 12%, rgba(35, 211, 238, 0.45) 0%, rgba(35, 211, 238, 0) 50%),
    linear-gradient(124deg, #143f7f 0%, #1a64a4 46%, #2c8dc1 76%, #58c8c4 100%);
}

.crm-theme-preview--amanhecer {
  background:
    radial-gradient(124% 128% at 14% 12%, rgba(130, 65, 215, 0.78) 0%, rgba(130, 65, 215, 0) 52%),
    radial-gradient(88% 92% at 89% 10%, rgba(244, 114, 182, 0.64) 0%, rgba(244, 114, 182, 0) 50%),
    linear-gradient(124deg, #4f2ca4 0%, #7f38b9 43%, #cb4f91 73%, #f08e60 100%);
}

.crm-theme-preview--esmeralda {
  background:
    radial-gradient(128% 120% at 10% 12%, rgba(26, 159, 136, 0.72) 0%, rgba(26, 159, 136, 0) 54%),
    radial-gradient(90% 88% at 88% 10%, rgba(57, 214, 156, 0.5) 0%, rgba(57, 214, 156, 0) 50%),
    linear-gradient(124deg, #0f5f58 0%, #137a71 45%, #1f9e89 77%, #62d7b6 100%);
}

.crm-theme-preview--grafite {
  background:
    radial-gradient(130% 120% at 12% 10%, rgba(99, 115, 138, 0.62) 0%, rgba(99, 115, 138, 0) 52%),
    radial-gradient(92% 90% at 90% 14%, rgba(124, 140, 166, 0.4) 0%, rgba(124, 140, 166, 0) 50%),
    linear-gradient(124deg, #111827 0%, #1f2937 44%, #334155 76%, #475569 100%);
}

.crm-theme-preview--sunset {
  background:
    radial-gradient(130% 122% at 10% 12%, rgba(188, 77, 106, 0.74) 0%, rgba(188, 77, 106, 0) 54%),
    radial-gradient(88% 92% at 88% 10%, rgba(248, 114, 114, 0.58) 0%, rgba(248, 114, 114, 0) 50%),
    linear-gradient(124deg, #8f3b70 0%, #b35068 44%, #df7057 74%, #f39f67 100%);
}

.crm-theme-preview--nebula {
  background:
    radial-gradient(128% 128% at 10% 10%, rgba(46, 128, 248, 0.55) 0%, rgba(46, 128, 248, 0) 52%),
    radial-gradient(86% 90% at 88% 12%, rgba(177, 84, 246, 0.62) 0%, rgba(177, 84, 246, 0) 50%),
    linear-gradient(124deg, #21114d 0%, #3b2182 44%, #6036ab 74%, #7d46c5 100%);
}

.crm-theme-preview--tropical {
  background:
    radial-gradient(128% 124% at 12% 10%, rgba(21, 185, 167, 0.62) 0%, rgba(21, 185, 167, 0) 52%),
    radial-gradient(90% 90% at 90% 12%, rgba(77, 219, 161, 0.55) 0%, rgba(77, 219, 161, 0) 50%),
    linear-gradient(124deg, #0d5f73 0%, #14847f 44%, #20a390 75%, #55d8ab 100%);
}

.crm-theme-preview--boreal {
  background:
    radial-gradient(130% 124% at 10% 12%, rgba(50, 190, 246, 0.58) 0%, rgba(50, 190, 246, 0) 54%),
    radial-gradient(88% 92% at 88% 10%, rgba(42, 219, 213, 0.44) 0%, rgba(42, 219, 213, 0) 50%),
    linear-gradient(124deg, #113d66 0%, #1e618a 46%, #2c86a6 75%, #5ec9bf 100%);
}

.crm-theme-preview--coral {
  background:
    radial-gradient(126% 126% at 12% 12%, rgba(190, 74, 147, 0.62) 0%, rgba(190, 74, 147, 0) 54%),
    radial-gradient(88% 90% at 89% 10%, rgba(251, 113, 133, 0.58) 0%, rgba(251, 113, 133, 0) 50%),
    linear-gradient(124deg, #8c336d 0%, #be4d7f 44%, #de697f 74%, #f29d78 100%);
}

.crm-theme-preview--sky {
  background:
    radial-gradient(128% 125% at 10% 12%, rgba(67, 139, 249, 0.66) 0%, rgba(67, 139, 249, 0) 54%),
    radial-gradient(90% 92% at 88% 10%, rgba(163, 206, 255, 0.52) 0%, rgba(163, 206, 255, 0) 50%),
    linear-gradient(124deg, #2a50a1 0%, #3d80d0 46%, #62aae8 76%, #96d7ff 100%);
}

@media (max-width: 1024px) {
  .crm-bottom-dock {
    margin-top: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .crm-bottom-bar {
    width: 100%;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .crm-theme-modal {
    padding: 0;
  }

  .crm-theme-modal-panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 1rem 1rem 0 0;
  }

  .crm-theme-modal-head {
    padding: 0.95rem 0.95rem 0.8rem;
  }

  .crm-theme-modal-body {
    padding: 0.55rem 0.55rem 0;
  }

  .crm-theme-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 56vh;
  }

  .crm-theme-modal-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem 1rem;
  }

  .crm-theme-modal-actions {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .crm-theme-save-btn,
  .crm-theme-cancel-btn,
  .crm-theme-custom-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
