/* Painel Mestre CRM v4.0 */
:root {
  --ccrm-navy-950: #061427;
  --ccrm-navy-900: #071a33;
  --ccrm-navy-800: #0a2345;
  --ccrm-gold-500: #d4a233;
  --ccrm-gold-400: #f0c766;
  --ccrm-gold-300: #ffe09b;
  --ccrm-white: #ffffff;
  --ccrm-muted: #9fb0c5;
  --ccrm-line: rgba(255,255,255,.14);
  --ccrm-danger: #ff6b6b;
  --ccrm-success: #45d483;
  --ccrm-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.ccrm-app, .ccrm-app * { box-sizing: border-box; }
.ccrm-app {
  width: 100%;
  min-height: 780px;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #133b70 0, var(--ccrm-navy-950) 42%, #020914 100%);
  color: var(--ccrm-white);
  border-radius: 24px;
}
.ccrm-app button, .ccrm-app input, .ccrm-app select, .ccrm-app textarea { font-family: inherit; }
.ccrm-login-box { padding: 26px; border: 1px solid #e0e0e0; border-radius: 18px; background: #fff; color: #111; }
.ccrm-login-btn { display: inline-block; background: #d4a233; color: #071a33 !important; font-weight: 800; padding: 11px 16px; border-radius: 10px; text-decoration: none; }
.ccrm-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--ccrm-line); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); box-shadow: var(--ccrm-shadow); }
.ccrm-brand { display: flex; align-items: center; gap: 14px; }
.ccrm-logo { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--ccrm-gold-400), #8d641a); display: grid; place-items: center; color: #071a33; font-size: 24px; font-weight: 900; box-shadow: 0 0 0 4px rgba(240,199,102,.12); }
.ccrm-brand h1 { margin: 0; font-size: 20px; letter-spacing: .2px; color: #fff; }
.ccrm-brand p { margin: 3px 0 0; color: var(--ccrm-muted); font-size: 12px; }
.ccrm-top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ccrm-btn { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: var(--ccrm-white); border-radius: 12px; padding: 10px 13px; cursor: pointer; font-weight: 800; font-size: 13px; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.ccrm-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); border-color: rgba(240,199,102,.45); }
.ccrm-gold { background: linear-gradient(135deg, var(--ccrm-gold-400), var(--ccrm-gold-500)); color: #071a33; border-color: transparent; }
.ccrm-green { background: rgba(69,212,131,.12); border-color: rgba(69,212,131,.4); color: #d9ffe9; }
.ccrm-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.ccrm-tabs button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #dce7f5; border-radius: 14px; padding: 11px 14px; cursor: pointer; font-weight: 900; }
.ccrm-tabs button.active { background: rgba(240,199,102,.14); border-color: rgba(240,199,102,.45); color: var(--ccrm-gold-300); }
.ccrm-tab-panel { display: none; }
.ccrm-tab-panel.active { display: block; }
.ccrm-toolbar { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(130px, .5fr)); gap: 10px; margin: 18px 0; align-items: center; }
.ccrm-field { width: 100%; background: rgba(255,255,255,.07) !important; border: 1px solid var(--ccrm-line) !important; border-radius: 14px !important; color: var(--ccrm-white) !important; padding: 12px 14px !important; outline: none !important; min-width: 0; font-size: 14px !important; }
.ccrm-field::placeholder { color: #8393a9; }
select.ccrm-field option { color: #111827; }
.ccrm-dashboard { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ccrm-metric { border: 1px solid var(--ccrm-line); background: rgba(255,255,255,.06); border-radius: 18px; padding: 13px 14px; min-height: 82px; position: relative; overflow: hidden; }
.ccrm-metric:after { content: ""; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; background: rgba(240,199,102,.09); }
.ccrm-metric span { color: var(--ccrm-muted); font-size: 12px; }
.ccrm-metric strong { display: block; font-size: 28px; margin-top: 6px; color: var(--ccrm-gold-400); }
.ccrm-kanban-wrap { overflow-x: auto; padding-bottom: 18px; }
.ccrm-kanban { display: flex; gap: 14px; min-height: 530px; width: max-content; padding-bottom: 8px; }
.ccrm-column { width: 310px; max-width: 310px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(3,13,28,.55); box-shadow: 0 10px 38px rgba(0,0,0,.22); display: flex; flex-direction: column; max-height: 680px; }
.ccrm-column-header { padding: 14px 14px 10px; border-bottom: 1px solid var(--ccrm-line); background: rgba(4,16,33,.96); border-radius: 21px 21px 0 0; }
.ccrm-column-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ccrm-column-title h2 { margin: 0; font-size: 14px; color: var(--ccrm-gold-300); text-transform: uppercase; letter-spacing: .35px; }
.ccrm-badge { font-size: 12px; border: 1px solid rgba(240,199,102,.35); color: var(--ccrm-gold-300); padding: 3px 8px; border-radius: 999px; background: rgba(240,199,102,.08); }
.ccrm-column-sub { color: var(--ccrm-muted); font-size: 11px; margin-top: 6px; }
.ccrm-cards { padding: 12px; overflow-y: auto; min-height: 180px; height: 100%; }
.ccrm-cards.drag-over { outline: 2px dashed rgba(240,199,102,.6); outline-offset: -8px; background: rgba(240,199,102,.04); }
.ccrm-card { border: 1px solid rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.045)); border-radius: 18px; padding: 13px; margin-bottom: 12px; cursor: grab; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.ccrm-card.dragging { opacity: .45; transform: rotate(1deg); }
.ccrm-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ccrm-company { font-weight: 900; font-size: 15px; line-height: 1.25; color: #fff; }
.ccrm-temp { font-size: 11px; border-radius: 999px; padding: 3px 7px; color: #061427; font-weight: 900; white-space: nowrap; }
.ccrm-temp.frio { background: #c7d2fe; }
.ccrm-temp.morno { background: #fde68a; }
.ccrm-temp.quente { background: #86efac; }
.ccrm-temp.urgente { background: #fca5a5; }
.ccrm-meta { color: var(--ccrm-muted); font-size: 12px; margin-top: 8px; line-height: 1.45; }
.ccrm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ccrm-chip { font-size: 11px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #dce7f5; }
.ccrm-chip.warn { background: rgba(255,209,102,.12); border-color: rgba(255,209,102,.3); color: #ffe5a9; }
.ccrm-chip.due { background: rgba(255,107,107,.15); border-color: rgba(255,107,107,.32); color: #ffd9d9; }
.ccrm-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ccrm-mini { border: 1px solid rgba(255,255,255,.14); color: #eaf2ff; background: rgba(255,255,255,.07); padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; }
.ccrm-mini:hover { border-color: rgba(240,199,102,.45); }
.ccrm-mini.whats { background: rgba(69,212,131,.13); border-color: rgba(69,212,131,.35); }
.ccrm-mini.copy { background: rgba(240,199,102,.12); border-color: rgba(240,199,102,.3); }
.ccrm-mini.del { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.3); }
.ccrm-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; padding: 18px; z-index: 99999; }
.ccrm-modal-backdrop.active { display: flex; }
.ccrm-modal { width: min(980px, 100%); max-height: 94vh; overflow-y: auto; background: linear-gradient(145deg, #0a1c35, #071426); border: 1px solid rgba(240,199,102,.28); border-radius: 26px; box-shadow: 0 24px 80px rgba(0,0,0,.62); color: #fff; }
.ccrm-modal-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ccrm-line); gap: 16px; }
.ccrm-modal-head h3 { margin: 0; font-size: 20px; color: #fff; }
.ccrm-modal-body { padding: 20px; }
.ccrm-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ccrm-full { grid-column: 1 / -1; }
.ccrm-app label { display: block; color: #dce7f5; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
textarea.ccrm-field { min-height: 90px; resize: vertical; }
.ccrm-notice { padding: 12px 14px; border-radius: 16px; background: rgba(240,199,102,.1); border: 1px solid rgba(240,199,102,.28); color: #ffedbd; font-size: 13px; line-height: 1.5; margin: 14px 0; }
.ccrm-modal-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.ccrm-empty { color: #71839a; text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 16px; padding: 18px 10px; font-size: 12px; }
.ccrm-toast { position: fixed; right: 20px; bottom: 20px; background: #071a33; color: white; border: 1px solid rgba(240,199,102,.4); padding: 12px 14px; border-radius: 14px; box-shadow: var(--ccrm-shadow); display: none; z-index: 100000; max-width: 360px; }
.ccrm-toast.show { display: block; }
.ccrm-help-launch { position: fixed; right: 22px; bottom: 82px; z-index: 9990; width: 54px; height: 54px; border-radius: 18px; border: 1px solid rgba(240,199,102,.42); background: linear-gradient(135deg, var(--ccrm-gold-400), var(--ccrm-gold-500)); color: #071a33; font-weight: 1000; font-size: 22px; cursor: pointer; box-shadow: 0 14px 42px rgba(0,0,0,.34); }
.ccrm-section-head { display:flex; justify-content:space-between; gap:16px; align-items:center; border:1px solid var(--ccrm-line); background:rgba(255,255,255,.06); border-radius:20px; padding:18px; margin-bottom:16px; }
.ccrm-section-head h2 { margin:0 0 4px; color:#fff; }
.ccrm-section-head p { margin:0; color:var(--ccrm-muted); }
.ccrm-team-grid { display:grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap:12px; }
.ccrm-team-card { border:1px solid var(--ccrm-line); background:rgba(255,255,255,.06); border-radius:20px; padding:16px; }
.ccrm-team-card h3 { margin:0 0 6px; color:var(--ccrm-gold-300); }
.ccrm-team-card p { margin:0 0 12px; color:var(--ccrm-muted); font-size:12px; }
.ccrm-team-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.ccrm-team-stats div { background:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:10px; }
.ccrm-team-stats span { display:block; color:var(--ccrm-muted); font-size:11px; }
.ccrm-team-stats strong { display:block; color:var(--ccrm-gold-400); font-size:21px; margin-top:4px; }
.ccrm-activity-feed { display:grid; gap:10px; }
.ccrm-activity { border:1px solid var(--ccrm-line); background:rgba(255,255,255,.06); border-radius:18px; padding:14px; display:grid; grid-template-columns:140px 1fr; gap:12px; }
.ccrm-activity time { color:var(--ccrm-gold-300); font-weight:900; font-size:12px; }
.ccrm-activity strong { color:#fff; }
.ccrm-activity p { margin:4px 0 0; color:#dce7f5; }
.ccrm-activity small { color:var(--ccrm-muted); }
.ccrm-learn-hero { display:flex; justify-content:space-between; gap:16px; align-items:center; border:1px solid rgba(240,199,102,.24); background:linear-gradient(145deg, rgba(240,199,102,.13), rgba(255,255,255,.04)); border-radius:24px; padding:22px; margin-bottom:16px; }
.ccrm-learn-hero h2 { margin:0 0 6px; color:#fff; }
.ccrm-learn-hero p { margin:0; color:#dce7f5; }
.ccrm-learn-badge { border:1px solid rgba(240,199,102,.44); color:var(--ccrm-gold-300); border-radius:999px; padding:9px 13px; font-weight:1000; white-space:nowrap; }
.ccrm-learning-layout { display:grid; grid-template-columns:260px 1fr; gap:16px; }
.ccrm-learning-menu { border:1px solid var(--ccrm-line); background:rgba(255,255,255,.05); border-radius:20px; padding:10px; align-self:start; }
.ccrm-learning-menu button { width:100%; text-align:left; border:1px solid transparent; background:rgba(255,255,255,.045); color:#dce7f5; border-radius:12px; padding:10px 11px; cursor:pointer; font-weight:800; font-size:12px; margin-bottom:7px; }
.ccrm-learning-menu button.active { border-color:rgba(240,199,102,.42); background:rgba(240,199,102,.12); color:var(--ccrm-gold-300); }
.ccrm-learning-content { min-height:450px; }
.ccrm-learn-panel { display:none; border:1px solid var(--ccrm-line); background:rgba(255,255,255,.045); border-radius:20px; padding:20px; color:#dce7f5; line-height:1.62; }
.ccrm-learn-panel.active { display:block; }
.ccrm-learn-panel h3 { margin:0 0 10px; color:var(--ccrm-gold-300); }
.ccrm-visual-cards { display:grid; grid-template-columns:repeat(2,minmax(180px,1fr)); gap:10px; margin-top:12px; }
.ccrm-visual-cards div { border:1px solid rgba(255,255,255,.11); background:rgba(0,0,0,.14); border-radius:16px; padding:14px; }
.ccrm-visual-cards strong { display:block; color:var(--ccrm-gold-300); margin-bottom:6px; }
.ccrm-visual-cards span { display:block; color:#dce7f5; font-size:13px; }
.ccrm-flow-list { counter-reset: step; padding:0 !important; list-style:none; }
.ccrm-flow-list li { counter-increment: step; display:grid; grid-template-columns:38px 1fr; gap:10px; padding:10px; border:1px solid rgba(255,255,255,.1); border-radius:14px; margin-bottom:8px; background:rgba(255,255,255,.035); }
.ccrm-flow-list li::before { content: counter(step); width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:linear-gradient(135deg, var(--ccrm-gold-400), var(--ccrm-gold-500)); color:#071a33; font-weight:1000; }

/* MODO TELA CHEIA DO CRM
   Use o shortcode [crm_credifis_fullscreen] para esconder cabeçalho/rodapé do tema
   e abrir o CRM como sistema interno, sem aparência de site público. */
body.ccrm-crm-page-fullscreen {
  background: #061427 !important;
  overflow-x: hidden !important;
}
body.ccrm-crm-page-fullscreen header:not(.ccrm-topbar),
body.ccrm-crm-page-fullscreen footer,
body.ccrm-crm-page-fullscreen .site-header,
body.ccrm-crm-page-fullscreen .site-footer,
body.ccrm-crm-page-fullscreen #masthead,
body.ccrm-crm-page-fullscreen #colophon,
body.ccrm-crm-page-fullscreen .wp-block-template-part,
body.ccrm-crm-page-fullscreen .entry-title,
body.ccrm-crm-page-fullscreen .wp-block-post-title,
body.ccrm-crm-page-fullscreen h1.wp-block-post-title {
  display: none !important;
}
body.ccrm-crm-page-fullscreen .site,
body.ccrm-crm-page-fullscreen .site-main,
body.ccrm-crm-page-fullscreen .content-area,
body.ccrm-crm-page-fullscreen .entry-content,
body.ccrm-crm-page-fullscreen .wp-site-blocks,
body.ccrm-crm-page-fullscreen .wp-block-post-content,
body.ccrm-crm-page-fullscreen main,
body.ccrm-crm-page-fullscreen article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ccrm-app.ccrm-app-fullscreen {
  width: 100vw !important;
  max-width: none !important;
  min-height: calc(100vh - 32px) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}
body.ccrm-crm-page-fullscreen .ccrm-app {
  box-shadow: none !important;
}
body.ccrm-crm-page-fullscreen .ccrm-column {
  max-height: calc(100vh - 310px);
}
@media (max-width: 782px) {
  .ccrm-app.ccrm-app-fullscreen {
    min-height: 100vh !important;
  }
}

@media (max-width: 1050px) {
  .ccrm-topbar, .ccrm-section-head, .ccrm-learn-hero { flex-direction: column; align-items: stretch; }
  .ccrm-toolbar { grid-template-columns: 1fr 1fr; }
  .ccrm-dashboard { grid-template-columns: repeat(3, 1fr); }
  .ccrm-form-grid { grid-template-columns: 1fr; }
  .ccrm-team-grid { grid-template-columns: repeat(2, 1fr); }
  .ccrm-learning-layout { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .ccrm-app { padding: 12px; }
  .ccrm-toolbar { grid-template-columns: 1fr; }
  .ccrm-dashboard { grid-template-columns: repeat(2, 1fr); }
  .ccrm-column { width: 285px; max-width: 285px; }
  .ccrm-brand h1 { font-size: 17px; }
  .ccrm-team-grid, .ccrm-visual-cards { grid-template-columns:1fr; }
  .ccrm-activity { grid-template-columns:1fr; }
}


.ccrm-manual-banner{display:block;width:100%;max-width:980px;border-radius:18px;margin:18px 0 24px;border:1px solid rgba(255,255,255,.10);box-shadow:0 12px 34px rgba(0,0,0,.30)}
.ccrm-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
.ccrm-manual-card{background:rgba(17,37,68,.72);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px 20px;box-shadow:0 10px 25px rgba(0,0,0,.18)}
.ccrm-manual-card h4{margin:0 0 12px;color:#f4c453;font-size:18px}
.ccrm-manual-card ul{margin:0;padding-left:18px;color:#d9e5f7;line-height:1.65}
.ccrm-manual-card li{margin:0 0 8px}
@media (max-width: 900px){.ccrm-manual-grid{grid-template-columns:1fr}}

/* reforço visual v3.5 */

.ccrm-manual-banner {
  display: block;
  width: 100%;
  max-width: 1180px;
  border-radius: 22px;
  margin: 18px 0 24px;
  border: 1px solid rgba(240,199,102,.20);
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
}
.ccrm-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin: 18px 0;
}
.ccrm-manual-card {
  background: linear-gradient(145deg, rgba(17,37,68,.78), rgba(3,13,28,.58));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.ccrm-manual-card h4,
.ccrm-learn-highlight h4 {
  margin: 0 0 12px;
  color: var(--ccrm-gold-300);
  font-size: 18px;
}
.ccrm-manual-card ul,
.ccrm-manual-card ol,
.ccrm-learn-highlight ol,
.ccrm-learn-highlight ul {
  margin: 0;
  padding-left: 20px;
  color: #d9e5f7;
  line-height: 1.65;
}
.ccrm-manual-card li,
.ccrm-learn-highlight li {
  margin-bottom: 8px;
}
.ccrm-learn-highlight {
  background: rgba(240,199,102,.09);
  border: 1px solid rgba(240,199,102,.24);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 18px 0;
  color: #dce7f5;
}
.ccrm-manual-hero {
  background:
    radial-gradient(circle at top right, rgba(240,199,102,.16), transparent 34%),
    linear-gradient(145deg, rgba(240,199,102,.13), rgba(255,255,255,.04));
}
@media (max-width: 900px) {
  .ccrm-manual-grid { grid-template-columns: 1fr; }
}


.ccrm-data-grid{display:grid;gap:12px}
.ccrm-row-card{display:grid;grid-template-columns:2fr repeat(4,minmax(120px,1fr)) auto;gap:12px;align-items:center;border:1px solid var(--ccrm-line);background:rgba(255,255,255,.055);border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.ccrm-row-card h3{margin:0 0 5px;color:#fff;font-size:16px}.ccrm-row-card p{margin:0;color:var(--ccrm-muted);font-size:12px}.ccrm-row-card span{display:block;color:var(--ccrm-muted);font-size:11px;font-weight:800}.ccrm-row-card strong{display:block;color:var(--ccrm-gold-300);font-size:14px;margin-top:4px}.ccrm-row-actions{display:flex;gap:6px;justify-content:flex-end}.ccrm-mini.post{background:rgba(240,199,102,.13);border-color:rgba(240,199,102,.38);color:#fff}.ccrm-chip.gold{background:rgba(240,199,102,.12);border-color:rgba(240,199,102,.35);color:var(--ccrm-gold-300)}.ccrm-danger-text{color:#ffb1b1!important}.ccrm-manual-card p{margin:0;color:#dce7f5}.ccrm-logo{font-size:16px;letter-spacing:-.5px}.ccrm-form-grid .ccrm-finance-field{display:block}
@media (max-width:1100px){.ccrm-row-card{grid-template-columns:1fr 1fr}.ccrm-row-actions{justify-content:flex-start}}
@media (max-width:680px){.ccrm-row-card{grid-template-columns:1fr}.ccrm-dashboard{grid-template-columns:1fr 1fr}}
