/* Atlas CRM Enterprise Gold - Sprint 5.0.1 FINAL */
.crm-heading{flex-wrap:wrap}.crm-enterprise-heading-actions{display:flex;gap:9px;align-items:center;margin-left:auto}.crm-enterprise-heading-actions button{display:flex;gap:8px;align-items:center;padding:11px 13px;border:1px solid #cfe0ef;border-radius:11px;background:#fff;color:#18476f;font-size:10px;font-weight:850;cursor:pointer}.crm-enterprise-heading-actions button:hover{border-color:#8abceb;box-shadow:0 8px 20px rgba(12,75,128,.1)}.crm-enterprise-heading-actions kbd{padding:2px 5px;border-radius:5px;background:#eef5fb;color:#71869a;font-size:7px}.crm-enterprise-heading-actions b{min-width:19px;padding:3px 6px;border-radius:999px;background:#ffe9eb;color:#bc2837;font-size:8px;text-align:center}
.crm-enterprise-menu{position:relative}.crm-enterprise-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:30;display:none;width:220px;padding:7px;background:#fff;border:1px solid #d8e5f0;border-radius:12px;box-shadow:0 18px 42px rgba(5,33,62,.25)}.crm-enterprise-popover.open{display:grid}.crm-enterprise-popover button{width:100%;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:#274b69;text-align:left;font-size:9px}.crm-enterprise-popover button:hover{background:#edf6ff;color:#0878ef}.crm-client-alert-summary{margin-top:13px}.crm-client-alert-summary>span,.crm-client-alert-summary button{display:flex;width:100%;gap:8px;align-items:center;padding:9px 11px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;text-align:left}.crm-client-alert-summary button{cursor:pointer}.crm-client-alert-summary strong{font-size:9px}.crm-client-alert-summary span{font-size:8px;color:#d9e7f3}.crm-client-alert-summary>span.ok{color:#baf3d4}
.crm-bulk-bar{display:flex;gap:8px;align-items:center;padding:10px 15px;background:#eaf4ff;border-top:1px solid #cee2f4;border-bottom:1px solid #cee2f4}.crm-bulk-bar strong{margin-right:auto;color:#174a74;font-size:10px}.crm-bulk-bar button{padding:7px 10px;border:1px solid #bfd7eb;border-radius:8px;background:#fff;color:#235779;font-size:8px;font-weight:850;cursor:pointer}.crm-row-selector{display:inline-grid;place-items:center;margin-right:8px;vertical-align:middle}.crm-row-selector input{position:absolute;opacity:0}.crm-row-selector span{width:17px;height:17px;border:2px solid #bfd0df;border-radius:5px;background:#fff}.crm-row-selector input:checked+span{border-color:#0878ef;background:#0878ef;box-shadow:inset 0 0 0 3px #fff}
.crm-enterprise-backdrop{position:fixed;inset:0;z-index:3100;background:rgba(3,20,39,.54);backdrop-filter:blur(3px)}.crm-universal-modal,.crm-communication-admin{position:fixed;z-index:3101;top:7vh;left:50%;width:min(900px,94vw);max-height:86vh;transform:translateX(-50%);overflow:hidden;background:#f7fafc;border:1px solid #cfe0ed;border-radius:20px;box-shadow:0 28px 80px rgba(2,25,51,.35)}.crm-universal-modal header,.crm-communication-admin header,.crm-alerts-panel header{display:flex;justify-content:space-between;gap:18px;padding:22px 24px;background:linear-gradient(145deg,#072a51,#0b4b7d);color:#fff}.crm-universal-modal header span,.crm-communication-admin header span,.crm-alerts-panel header span{color:#8fd4ff;font-size:8px;font-weight:900;text-transform:uppercase}.crm-universal-modal h2,.crm-communication-admin h2,.crm-alerts-panel h2{margin:4px 0;font-size:22px}.crm-universal-modal header p,.crm-communication-admin header p{margin:0;color:#c7d9ea;font-size:9px}.crm-universal-modal header button,.crm-communication-admin header button,.crm-alerts-panel header button{width:36px;height:36px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:22px;cursor:pointer}.crm-universal-search{display:flex;gap:10px;align-items:center;margin:18px 20px 10px;padding:12px 15px;border:2px solid #cfe0ed;border-radius:13px;background:#fff}.crm-universal-search:focus-within{border-color:#1488ff;box-shadow:0 0 0 4px rgba(20,136,255,.1)}.crm-universal-search input{width:100%;border:0;outline:0;color:#153e61;font-size:13px}.crm-universal-modal nav,.crm-communication-admin nav,.crm-alerts-panel nav{display:flex;gap:6px;padding:0 20px 12px;overflow:auto}.crm-universal-modal nav button,.crm-communication-admin nav button,.crm-alerts-panel nav button{padding:8px 11px;border:1px solid #d4e2ed;border-radius:999px;background:#fff;color:#60788f;font-size:8px;font-weight:850;white-space:nowrap;cursor:pointer}.crm-universal-modal nav button.active,.crm-communication-admin nav button.active,.crm-alerts-panel nav button.active{border-color:#0878ef;background:#0878ef;color:#fff}.crm-universal-results{max-height:58vh;overflow:auto;padding:0 20px 20px}.crm-universal-results>button{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;padding:13px;border:0;border-bottom:1px solid #e4edf4;background:#fff;text-align:left;cursor:pointer}.crm-universal-results>button:first-child{border-radius:13px 13px 0 0}.crm-universal-results>button:last-child{border-radius:0 0 13px 13px;border-bottom:0}.crm-universal-results>button:hover{background:#eef7ff}.crm-universal-results strong{color:#153e61;font-size:11px}.crm-universal-results p{margin:4px 0 0;color:#74899b;font-size:9px}.crm-universal-results .kind{min-width:68px;padding:5px 7px;border-radius:999px;background:#edf4fa;color:#547088;font-size:7px;font-weight:900;text-align:center;text-transform:uppercase}.crm-universal-results .kind.client{background:#e5f3ff;color:#0878ef}.crm-universal-results .kind.certificate{background:#e5f8ed;color:#087b4c}.crm-universal-results .kind.timeline{background:#fff2dd;color:#a76200}.crm-universal-results .kind.user{background:#f0eaff;color:#7042af}
.crm-alerts-panel{position:fixed;top:0;right:0;z-index:3101;width:min(470px,96vw);height:100dvh;overflow:hidden;background:#f6f9fc;box-shadow:-25px 0 70px rgba(3,23,46,.28);transform:translateX(105%);transition:transform .25s ease}.crm-alerts-panel.open{transform:translateX(0)}.crm-alerts-panel nav{padding:14px}.crm-alert-list{height:calc(100% - 145px);overflow:auto;padding:0 14px 24px}.crm-alert-list>button{display:grid;grid-template-columns:38px 1fr;gap:11px;width:100%;margin-bottom:9px;padding:13px;border:1px solid #d9e6f0;border-radius:13px;background:#fff;text-align:left;cursor:pointer}.crm-alert-list>button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff0e0;color:#b96600;font-weight:900}.crm-alert-list>button.expired>span{background:#ffe8eb;color:#bd2635}.crm-alert-list>button.duplicate>span{background:#e8f2ff;color:#0878ef}.crm-alert-list strong{color:#1b466a;font-size:10px}.crm-alert-list p{margin:4px 0 0;color:#73889a;font-size:9px;line-height:1.5}
.crm-admin-grid,.crm-comm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-admin-grid article,.crm-comm-cards article{padding:17px;border:1px solid #dbe7f1;border-radius:14px;background:#fff}.crm-admin-grid article>span,.crm-comm-cards article>span{color:#0878ef;font-size:8px;font-weight:900;text-transform:uppercase}.crm-admin-grid h3,.crm-comm-cards h3{margin:7px 0;color:#173f62;font-size:13px}.crm-admin-grid p,.crm-comm-cards p{color:#75899b;font-size:9px;line-height:1.6}.crm-admin-grid button,.crm-comm-cards button,.crm-preferences button{padding:8px 10px;border:0;border-radius:8px;background:#0878ef;color:#fff;font-size:8px;font-weight:850;cursor:pointer}.crm-communication-admin{width:min(780px,94vw)}.crm-communication-admin>div:last-child{max-height:56vh;overflow:auto;padding:8px 20px 22px}.crm-preferences{display:grid;gap:12px;padding:18px;border:1px solid #dbe7f1;border-radius:14px;background:#fff}.crm-preferences label{color:#315575;font-size:10px}.crm-queue-list{display:grid;gap:10px}.crm-queue-list article{padding:14px;border:1px solid #dbe7f1;border-radius:12px;background:#fff}.crm-queue-list span{float:right;padding:4px 7px;border-radius:999px;background:#fff1dc;color:#a96500;font-size:7px;font-weight:900}.crm-queue-list strong{display:block;color:#173f62;font-size:11px}.crm-queue-list p,.crm-queue-list small{display:block;margin:6px 0 0;color:#75899b;font-size:8px}.crm-enterprise-toast{position:fixed;right:22px;bottom:22px;z-index:5000;max-width:360px;padding:12px 15px;border-radius:11px;background:#0a7048;color:#fff;box-shadow:0 15px 35px rgba(0,0,0,.2);font-size:9px;font-weight:800;opacity:0;transform:translateY(20px);pointer-events:none;transition:.2s}.crm-enterprise-toast.show{opacity:1;transform:none}.crm-enterprise-toast.warning{background:#a56600}
@media(max-width:700px){.crm-enterprise-heading-actions{width:100%;margin:5px 0 0}.crm-enterprise-heading-actions button{flex:1;justify-content:center}.crm-enterprise-heading-actions kbd{display:none}.crm-bulk-bar{align-items:stretch;flex-wrap:wrap}.crm-bulk-bar strong{width:100%}.crm-admin-grid,.crm-comm-cards{grid-template-columns:1fr}.crm-universal-modal,.crm-communication-admin{top:2vh;max-height:96vh}.crm-drawer-actions .crm-enterprise-menu{flex:1}.crm-drawer-actions .crm-enterprise-menu>button{width:100%}.crm-enterprise-popover{right:auto;left:0}}
@media(prefers-reduced-motion:reduce){.crm-alerts-panel,.crm-enterprise-toast{transition:none}}

/* Sprint 5.0.1 - Alertas acionaveis e duplicidades */
.crm-alert-list>.crm-alert-card{display:grid;grid-template-columns:38px 1fr;gap:11px;width:100%;margin-bottom:10px;padding:13px;border:1px solid #d9e6f0;border-radius:13px;background:#fff;text-align:left}
.crm-alert-card>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff0e0;color:#b96600;font-weight:900}.crm-alert-card.expired>span{background:#ffe8eb;color:#bd2635}.crm-alert-card.duplicate>span{background:#e8f2ff;color:#0878ef}
.crm-alert-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.crm-alert-actions button{padding:7px 10px;border:1px solid #cfe1ef;border-radius:9px;background:#f7fbff;color:#1265a7;font-size:9px;font-weight:850;cursor:pointer}.crm-alert-actions button:hover{background:#0878ef;color:#fff;border-color:#0878ef}


/* Sprint 5.0.1 - acao destrutiva visivel e segura */
.crm-popover-divider{display:block;height:1px;margin:5px 8px;background:#e5edf5}
.crm-enterprise-popover .crm-enterprise-danger{color:#b42333!important;background:#fff7f8!important}
.crm-enterprise-popover .crm-enterprise-danger:hover{background:#ffe9ec!important;color:#941b29!important}

/* Sprint 5.0.7.3.1 - Mantem o menu Mais opcoes dentro da Ficha 360 */
.crm-drawer #crm-more-popover{right:auto;left:0}
/* Sprint 5.0.4 - Atlas Intelligence Engine */
.aie-notification-wrap{position:relative}.aie-notification-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #cfe0ef;border-radius:11px;background:#fff;color:#123b62;font-size:18px;cursor:pointer}.aie-notification-count{position:absolute;right:-5px;top:-5px;min-width:18px;padding:3px 5px;border-radius:999px;background:#c92f42;color:#fff;font-size:8px;font-weight:900}.aie-notification-panel{position:absolute;right:0;top:46px;z-index:90;width:min(360px,90vw);padding:14px;border:1px solid #d8e5f0;border-radius:16px;background:#fff;box-shadow:0 22px 50px rgba(5,35,68,.2)}.aie-notification-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.aie-notification-panel header strong{color:#10395f}.aie-notification-panel header small{color:#6e8498}.aie-notification-list{display:grid;gap:7px}.aie-notification-list a{display:flex;gap:10px;align-items:center;padding:10px;border-radius:12px;background:#f4f8fc;color:#173f63;text-decoration:none}.aie-notification-list a>span{display:grid;place-items:center;min-width:29px;height:29px;border-radius:9px;background:#e5f1fb;color:#0a6aa7;font-size:9px;font-weight:900}.aie-notification-list div{display:grid}.aie-notification-list small{margin-top:2px;color:#6d8295}.aie-empty{padding:18px;text-align:center;color:#71869a}.aie-card{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:6px}.aie-score{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;border-radius:18px;background:#eef5fb;color:#17486e}.aie-score strong{font-size:52px;line-height:1}.aie-score small{text-transform:uppercase;letter-spacing:.12em;font-weight:900}.aie-score span{margin-top:10px;font-weight:800;text-align:center}.aie-score.good{background:#e8f8f0;color:#08734c}.aie-score.ok{background:#edf6ff;color:#1469a7}.aie-score.warn{background:#fff7df;color:#956900}.aie-score.danger{background:#fff0f1;color:#b52c3b}.aie-analysis h3{margin:8px 0 5px;color:#123b62;font-size:24px}.aie-analysis>p{color:#617a90}.aie-analysis ul{margin:14px 0;padding-left:20px;color:#34546f}.aie-next{padding:12px 14px;border-left:4px solid #0b9c6b;border-radius:10px;background:#f0faf6}.aie-next{display:grid;gap:3px}.aie-next small{color:#618071}.aie-next strong{color:#0b6d4e}.aie-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.aie-actions a,.aie-actions button{padding:10px 14px;border:0;border-radius:10px;background:#0b6fae;color:#fff;font-weight:800;text-decoration:none;cursor:pointer}.aie-actions button{background:#eef5fb;color:#17486e}@media(max-width:700px){.aie-card{grid-template-columns:1fr}.aie-score{min-height:130px}.aie-notification-panel{position:fixed;right:5vw;top:75px}}
