:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --crm-navy: #123a70; --crm-ink: #17233a; --crm-muted: #667085; --crm-line: #e5e9f0; --crm-canvas: #f5f7fa; }
* { box-sizing: border-box; }
.auth-pending { visibility: hidden; }
body { margin: 0; background: var(--crm-canvas); color: var(--crm-ink); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #2b6fe8; outline-offset: 4px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 50; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.crm-sidebar { width: 268px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; border-right: 1px solid var(--crm-line); background: white; z-index: 20; overflow-y: auto; }
.crm-brand { display: flex; gap: 12px; align-items: center; padding: 24px; border-bottom: 1px solid var(--crm-line); text-decoration: none; }
.crm-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--crm-navy); color: #71e0b6; border-radius: 10px; font-size: 27px; }
.crm-brand strong { display: block; color: var(--crm-navy); font-size: 25px; letter-spacing: -1px; }
.crm-brand small { display: block; font-size: 8px; letter-spacing: 1.1px; color: var(--crm-muted); margin-top: 4px; }
.crm-nav-label { font-size: 10px; letter-spacing: 1.5px; color: #667085; font-weight: 700; padding: 18px 26px 6px; }
#crm-navigation { padding: 0 14px 22px; }
#crm-navigation a { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 10px 12px; border-radius: 7px; font-size: 13px; text-decoration: none; font-weight: 600; color: #475467; }
#crm-navigation a:hover { background: #f1f5fa; color: var(--crm-navy); }
#crm-navigation a.is-active { background: var(--crm-navy); color: white; box-shadow: 0 5px 12px #123a7020; }
.crm-nav-icon { width: 22px; text-align: center; font-size: 18px; }
.crm-sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 22px 26px; border-top: 1px solid var(--crm-line); }
.crm-sidebar-footer strong { display: block; font-size: 12px; }
.crm-sidebar-footer small { display: block; margin-top: 4px; font-size: 10px; color: var(--crm-muted); }
.crm-local-dot { width: 8px; height: 8px; border-radius: 50%; background: #29b57a; }
.crm-page { margin-left: 268px; }
.crm-topbar { min-height: 74px; padding: 16px 36px; display: flex; align-items: center; gap: 15px; background: white; border-bottom: 1px solid var(--crm-line); }
.crm-breadcrumb { font-size: 12px; color: var(--crm-muted); display: flex; flex-wrap: wrap; gap: 12px; }
.crm-breadcrumb strong { color: #475467; }
.crm-breadcrumb span { color: #a1a9b8; }
.crm-back { margin-left: auto; font-size: 12px; color: var(--crm-navy); text-decoration: none; white-space: nowrap; }
.crm-back:hover { text-decoration: underline; }
.crm-icon-button { display: none; border: 1px solid var(--crm-line); background: white; border-radius: 6px; width: 36px; height: 36px; flex-shrink: 0; }
#crm-content { max-width: 1500px; margin: auto; padding: 36px; outline: none; }
.crm-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.crm-eyebrow { color: #2b6fe8; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; margin: 0 0 9px; }
h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -1px; margin: 0; line-height: 1.2; }
#crm-description { margin: 10px 0 0; max-width: 650px; font-size: 13px; color: var(--crm-muted); line-height: 1.6; }
.crm-stage-badge, .crm-neutral-badge { display: inline-block; padding: 6px 10px; border-radius: 5px; background: #f0f3f7; color: #536176; font-size: 10px; font-weight: 650; }
.crm-stage-badge { color: var(--crm-navy); background: #eaf2ff; white-space: nowrap; }
.crm-notice { display: flex; align-items: center; gap: 12px; border: 1px solid #d4e3f9; background: #edf4ff; border-radius: 8px; padding: 13px 16px; margin-bottom: 22px; }
.crm-notice p { margin: 0; font-size: 12px; color: #355681; line-height: 1.6; }
.crm-notice-icon { border: 1px solid #809dc6; border-radius: 50%; height: 18px; width: 18px; flex-shrink: 0; text-align: center; font-size: 12px; color: var(--crm-navy); }
.crm-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.crm-metric { position: relative; padding: 20px; background: white; border: 1px solid var(--crm-line); border-radius: 9px; }
.crm-metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #eaf2ff; color: #2868d7; font-size: 21px; margin-bottom: 17px; }
.crm-metric:nth-child(2) .crm-metric-icon { color: #138657; background: #e6f8f0; }
.crm-metric:nth-child(3) .crm-metric-icon { color: #a46b15; background: #fff3df; }
.crm-metric h2 { font-size: 12px; color: var(--crm-muted); font-weight: 500; margin: 0; }
.crm-metric strong { display: block; font-size: 27px; margin: 8px 0; }
.crm-metric small { color: #667085; font-size: 10px; }
.crm-card { background: white; border: 1px solid var(--crm-line); border-radius: 9px; margin-bottom: 22px; overflow: hidden; }
.crm-card-header { padding: 21px 24px; border-bottom: 1px solid var(--crm-line); }
.crm-card-header h2 { font-size: 14px; margin: 0; }
.crm-card-header p { font-size: 12px; margin: 7px 0 0; color: var(--crm-muted); line-height: 1.6; }
.crm-pipeline { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 22px 24px; margin: 0; gap: 12px; }
.crm-pipeline li { padding: 14px 12px; border: 1px solid var(--crm-line); background: #fafbfd; border-radius: 7px; min-height: 92px; }
.crm-step { display: block; color: #667085; font-size: 10px; margin-bottom: 12px; }
.crm-pipeline strong { font-size: 11px; line-height: 1.5; display: block; }
.crm-pipeline li:last-child { border-color: #b9e4d3; background: #f0faf6; color: #176d4d; }
.crm-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.crm-simple-empty { text-align: center; font-size: 12px; padding: 36px 16px; color: var(--crm-muted); }
.crm-quick-links { padding: 12px 24px; display: grid; }
.crm-quick-links a { padding: 12px 0; font-size: 12px; color: var(--crm-navy); text-decoration: none; }
.crm-quick-links a:hover { text-decoration: underline; }
.crm-table-wrap { overflow-x: auto; }
.crm-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.crm-table-wrap th { padding: 14px 24px; background: #fafbfc; font-size: 11px; color: var(--crm-muted); white-space: nowrap; }
.crm-empty { padding: 64px 24px 70px; text-align: center; border-top: 1px solid var(--crm-line); }
.crm-empty-icon { display: inline-grid; place-items: center; height: 56px; width: 56px; background: #edf3fb; color: #4679b4; border-radius: 16px; font-size: 33px; }
.crm-empty h3 { font-size: 17px; margin: 22px 0 10px; }
.crm-empty p { max-width: 460px; margin: 0 auto 22px; color: var(--crm-muted); font-size: 13px; line-height: 1.8; }
.crm-settings-list { display: grid; grid-template-columns: 180px 1fr; gap: 20px; font-size: 13px; padding: 24px; margin: 0; }
.crm-settings-list dt { font-weight: 600; }
.crm-settings-list dd { margin: 0; color: var(--crm-muted); line-height: 1.6; }
.crm-integrations { padding: 0 24px; }
.crm-integration { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--crm-line); font-size: 13px; }
.crm-integration:last-child { border: 0; }
.crm-page-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 10px; color: #667085; }
.crm-sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1500px) { #crm-content { padding-top: 44px; } }
@media (max-width: 1150px) { .crm-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .crm-pipeline { grid-template-columns: repeat(3,minmax(0,1fr)); } .crm-columns { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 800px) { .crm-sidebar { display: none; top: 74px; box-shadow: 12px 0 30px #17233a20; } .crm-sidebar.is-open { display: flex; } .crm-page { margin-left: 0; } .crm-icon-button { display: block; } .crm-topbar { padding: 16px 20px; } #crm-content { padding: 26px 20px; } .crm-heading { align-items: flex-start; } }
@media (max-width: 480px) { .crm-breadcrumb { gap: 6px; font-size: 10px; } .crm-back { font-size: 10px; white-space: normal; max-width: 95px; } .crm-heading { flex-direction: column; gap: 12px; } .crm-pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px; } .crm-metrics { gap: 10px; } .crm-metric { padding: 16px; } .crm-settings-list { grid-template-columns: 1fr; gap: 10px; } .crm-settings-list dd { margin-bottom: 12px; } .crm-integration { align-items: flex-start; } .crm-page-footer { line-height: 1.6; } }

/* Operational forms preserve the original CRM palette and spacing. */
.crm-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:18px 24px; }
.crm-toolbar h2 { margin:0; margin-right:auto; font-size:18px; }
.crm-button { border:1px solid var(--crm-line); border-radius:6px; background:white; color:var(--crm-navy); padding:9px 12px; font-size:12px; }
.crm-button:hover { background:#edf4ff; }
.crm-button:disabled { opacity:.5; cursor:default; }
.crm-primary { background:var(--crm-navy); color:white; }
.crm-primary:hover { background:#205392; }
input,select,textarea { font:inherit; font-size:13px; color:var(--crm-ink); border:1px solid #cdd5df; border-radius:6px; padding:10px; background:white; max-width:100%; min-width:0; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #2b6fe8; outline-offset:2px; }
.crm-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:24px; }
.crm-field { display:flex; flex-direction:column; gap:7px; font-size:12px; min-width:0; }
.crm-field input[type=checkbox] { align-self:flex-start; width:20px; height:20px; }
.crm-field textarea { min-height:90px; resize:vertical; }
.crm-form-status { grid-column:1/-1; }
.crm-dialog { width:min(800px,94vw); max-height:90vh; border:1px solid var(--crm-line); border-radius:10px; padding:0; color:var(--crm-ink); }
.crm-dialog::backdrop { background:#17233a70; }
.crm-error { background:#fff1f0; color:#a12323; padding:14px 24px; overflow-wrap:anywhere; }
.crm-status { padding:16px 24px; color:var(--crm-muted); font-size:13px; }
.crm-table-wrap td { padding:14px 24px; border-top:1px solid var(--crm-line); font-size:12px; max-width:320px; overflow-wrap:anywhere; }
.crm-table-wrap td .crm-button { margin:3px; }
.crm-attendance > h2,.crm-attendance > p,.crm-attendance > button { margin:18px 24px; overflow-wrap:anywhere; }
.crm-history { padding:0 24px 24px; }
.crm-history section { border-top:1px solid var(--crm-line); padding:14px 0; }
.crm-history p { font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.crm-attendance select { width:100%; }
@media(max-width:600px) { .crm-form { grid-template-columns:1fr; padding:18px; } .crm-toolbar { padding:14px; } .crm-toolbar input,.crm-toolbar select { width:100%; } }
.crm-table-wrap td { min-width:125px; vertical-align:top; }
.crm-table-wrap td:last-child { min-width:170px; }
:root { --cnpj-notice-bg: #fff6dc; }
.cnpj-notice { padding: 12px 16px; background: var(--cnpj-notice-bg); border-left: 4px solid #ba7b14; color: #674309; border-radius: 6px; }
.cnpj-base { margin: 16px 0; padding: 16px; background: #f1f5fa; border-radius: 8px; }
.cnpj-table-wrap { overflow-x: auto; max-width: 100%; margin: 16px 0; }
.cnpj-table { border-collapse: collapse; width: 100%; min-width: 1050px; font-size: 13px; }
.cnpj-table th, .cnpj-table td { padding: 12px; border-bottom: 1px solid #dce3eb; text-align: left; vertical-align: top; }
.cnpj-table th { background: #edf2f8; }
.cnpj-card { padding: 20px; }
.cnpj-card > h2 { margin-top: 0; }
.cnpj-card .crm-form { padding: 16px 0; }
.cnpj-table { min-width: 2650px; }
.cnpj-table td { min-width: 110px; overflow-wrap: anywhere; }
.cnpj-table td:nth-child(3),.cnpj-table td:nth-child(10) { min-width: 220px; }
.cnpj-table td:nth-child(5),.cnpj-table td:nth-child(8) { white-space: nowrap; }
.cnpj-priority-high,.cnpj-priority-medium { display: inline-block; padding: 6px 9px; border-radius: 6px; font-weight: 600; }
.cnpj-priority-high { color: #155737; background: #e0f3e7; }
.cnpj-priority-medium { color: #74500d; background: #fff3d4; }
.cnpj-selection { padding: 12px; background: #f1f5fa; border-radius: 8px; margin: 12px 0; }
