/* clinic_crm_shared.css — F13-e: CRM gerenciavel na conta OXXY (celular) */
.crms .crms-toolbar{display:flex;gap:8px;padding:0 18px 10px;align-items:center}.crms .crms-toolbar input{flex:1;min-width:0;background:#0d0c15;border:1px solid var(--border);border-radius:12px;color:inherit;padding:11px 12px;font:inherit;min-height:44px}.crms .crms-toolbar .cta{white-space:nowrap;min-height:44px}
.crms .crm-lead-stage{font-size:11px;border-radius:999px;padding:4px 8px;background:rgba(255,255,255,.08)}.crms-st-active{color:#6eebad}.crms-st-lead{color:#ffd47f}.crms-st-inactive{color:#c9c4d6}.crms-st-archived{color:#ff9b9b}
.crms-sheet .crm-detail-head{display:flex;gap:12px;align-items:center;margin:4px 0 8px}.crms-sheet .crm-detail-head h2{margin:0;font-size:19px}.crms-sheet .crm-detail-head p{margin:2px 0 0;color:var(--muted);font-size:12.5px}
.crms-sheet .crms-meta{margin:0 0 6px;font-size:13px;color:var(--muted)}.crms-sheet .crms-notes{margin:0 0 8px;font-size:13px;white-space:pre-wrap}
.crms-sheet .crms-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px}.crms-sheet .crms-actions button{min-height:42px;border:1px solid rgba(155,93,229,.42);border-radius:12px;background:rgba(155,93,229,.13);color:inherit;padding:9px 10px;font-weight:700;font-size:13px}.crms-sheet .crms-actions button.danger{border-color:rgba(248,113,113,.5);color:#ffb6b6;background:rgba(248,113,113,.09)}
.crms-sheet .crm-activity h3{font-size:13px;margin:8px 0 6px;color:var(--muted)}.crms-sheet .crm-activity ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}.crms-sheet .crm-activity li{font-size:13px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;display:flex;justify-content:space-between;gap:8px}.crms-sheet .crm-activity time{color:var(--muted);font-size:11.5px;white-space:nowrap}
.crms-sheet textarea{width:100%;box-sizing:border-box;background:#0d0c15;border:1px solid var(--border);border-radius:12px;color:inherit;padding:12px;font:inherit}
/* folha/modal proprios (nao depende do clinic_identity.css, que e carregado sob demanda pela tela Identidade) */
.identity-modal[data-crms]{position:fixed;inset:0;z-index:5000;background:rgba(3,3,10,.78);backdrop-filter:blur(7px);display:flex;align-items:flex-end;justify-content:center}
.identity-modal[data-crms] .identity-sheet{width:100%;max-width:540px;max-height:92vh;overflow:auto;background:#14131f;border:1px solid rgba(155,93,229,.5);border-radius:24px 24px 0 0;padding:20px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -24px 70px rgba(0,0,0,.48);box-sizing:border-box}
.identity-modal[data-crms] .identity-sheet-handle{width:42px;height:4px;border-radius:99px;background:rgba(255,255,255,.25);margin:-8px auto 16px}.identity-modal[data-crms] h2{font-size:20px;margin:0 0 4px}.identity-modal[data-crms] .identity-sheet>small{color:var(--muted);display:block;line-height:1.45}
.identity-modal[data-crms] .identity-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:17px}.identity-modal[data-crms] .identity-field{display:grid;gap:6px}.identity-modal[data-crms] .identity-field label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.identity-modal[data-crms] .identity-field input,.identity-modal[data-crms] .identity-field select,.identity-modal[data-crms] .identity-field textarea{width:100%;box-sizing:border-box;background:#0d0c15;border:1px solid var(--border);border-radius:12px;color:inherit;padding:12px;font:inherit;min-height:46px}
.identity-modal[data-crms] .identity-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.identity-modal[data-crms] .identity-sheet-actions button{min-height:44px;border:1px solid rgba(155,93,229,.42);border-radius:12px;background:rgba(155,93,229,.13);color:inherit;padding:9px 12px;font-weight:700;font:inherit}.identity-modal[data-crms] .identity-sheet-actions button.danger{border-color:rgba(248,113,113,.5);color:#ffb6b6;background:rgba(248,113,113,.09)}.identity-modal[data-crms] .identity-sheet-message{min-height:18px;color:#ffb6b6;font-size:12px}
@media(min-width:700px){.identity-modal[data-crms]{align-items:center;padding:20px}.identity-modal[data-crms] .identity-sheet{border-radius:24px}}
.crms .crms-toolbar .cta{width:auto;margin:0;flex:0 0 auto;padding:0 14px;height:44px;font-size:14px}.crms .crms-toolbar{padding:0 18px 10px}
.identity-modal[data-crms] .identity-sheet-actions.crms-one{grid-template-columns:1fr}.crms .crm-status.error{color:#ffb6b6;border-color:rgba(248,113,113,.5)}.crms #crms-empty .ghostbtn{margin-top:8px}
