:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font:15px/1.4 system-ui,Segoe UI,Roboto,sans-serif}body{margin:0}#root{min-height:100vh}*{box-sizing:border-box}:root{--brand:#c9a227;--brand-dark:#9c7a2e;--brand-light:#f0ce7e;--brand-tint:#fbf3df;--sidebar-bg:#0e2440;--sidebar-bg-2:#16324f;--sidebar-active-tint:#c9a22729;--content-bg:#f4f5f7;--card-bg:#fff;--border-color:#e5e7eb;--border-color-soft:#eef0f2;--text-primary:#14213d;--text-secondary:#5b6474;--text-muted:#98a2b3;--shadow-xs:0 1px 2px #1018280d;--shadow-sm:0 1px 2px #1018280a, 0 2px 6px #10182812;--shadow-md:0 4px 12px #10182814, 0 1px 3px #1018280f;--shadow-lg:0 12px 32px #0e244029}body{background:var(--content-bg);color:var(--text-primary);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.login-screen{background:radial-gradient(circle at 15% 15%,#c9a2271f 0%,#0000 45%),linear-gradient(160deg,#0e2440 0%,#0a1b30 55%,#081526 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:var(--card-bg);box-shadow:var(--shadow-lg);border-top:3px solid var(--brand);border-radius:18px;flex-direction:column;gap:1.1rem;width:380px;padding:2.75rem;display:flex}.login-logos{flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem;padding:.5rem 0 .75rem;display:flex}.login-logo-cantalejo{border-radius:9px;width:auto;height:84px}.login-card .subtitle{color:#667;margin:0 0 .5rem;font-size:.9rem}.login-card label{color:#333;flex-direction:column;gap:.35rem;font-size:.85rem;display:flex}.login-card input{border:1px solid #ccc;border-radius:9px;padding:.6rem .7rem;font-size:1rem}.login-card button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.7rem;font-size:1rem;font-weight:600;transition:background .15s,transform .1s}.login-card button:hover:not(:disabled){background:var(--brand-dark)}.login-card button:disabled{opacity:.6;cursor:default}.error{color:#b3261e;font-size:.85rem}.success{color:#1e8a3c;font-size:.85rem}.app-shell{height:100vh;display:flex}.mobile-topbar,.mobile-nav-backdrop{display:none}.nav-sidebar{background:linear-gradient(185deg, var(--sidebar-bg) 0%, #0a1b30 100%);color:#cbd2e0;z-index:2;flex-direction:column;width:232px;min-width:232px;display:flex;box-shadow:2px 0 12px #00000026}.nav-brand{border-bottom:1px solid #ffffff14;justify-content:center;align-items:center;gap:.85rem;padding:1.5rem 1rem;display:flex}.nav-logo-primary{object-fit:contain;border-radius:6px;width:auto;max-width:80%;height:64px;box-shadow:0 2px 8px #00000040}.nav-list{flex-direction:column;flex:1;gap:.2rem;padding:1rem .75rem;display:flex;overflow-y:auto}.nav-item{color:#9aa5bd;text-align:left;cursor:pointer;background:0 0;border:none;border-left:3px solid #0000;border-radius:8px;align-items:center;gap:.7rem;padding:.62rem .7rem;font-size:.85rem;font-weight:500;transition:background .12s,color .12s;display:flex}.nav-item:hover{color:#fff;background:#ffffff0f}.nav-item.active{background:var(--sidebar-active-tint);border-left-color:var(--brand);color:var(--brand-light);font-weight:600}.nav-badge{background:var(--sidebar-bg-2);color:var(--brand-light);border-radius:10px;margin-left:auto;padding:.1rem .45rem;font-size:.65rem;font-weight:700}.nav-item.active .nav-badge{background:var(--brand);color:var(--sidebar-bg)}.nav-group-header{width:100%}.nav-group-chevron{align-items:center;margin-left:auto;transition:transform .15s;display:flex}.nav-group-chevron.open{transform:rotate(180deg)}.nav-group-children{flex-direction:column;gap:.15rem;margin:.2rem 0 .35rem;display:flex}.nav-subitem{padding-left:2.15rem;font-size:.8rem}.nav-user{background:#0000001f;border-top:1px solid #ffffff14;align-items:center;gap:.65rem;padding:.9rem 1rem;font-size:.85rem;display:flex}.nav-user-info{flex-direction:column;flex:1;min-width:0;display:flex}.nav-user-name{color:#fff;text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.nav-user .link-button{color:#9aa5bd;padding:0;font-size:.75rem}.nav-user .link-button:hover{color:var(--brand-light)}.avatar{background:linear-gradient(135deg, var(--brand-light), var(--brand-dark));color:#14213d;letter-spacing:.02em;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:.72rem;font-weight:700;display:inline-flex}.avatar-sm{width:24px;height:24px;font-size:.62rem}.app-main{flex:1;min-width:0;height:100vh;display:flex;overflow:hidden}.app-main>*{flex:1;min-width:0}.page-placeholder{color:#8a97a1;padding:2rem}.panel{flex:1;min-width:0;display:flex}.sidebar{color:#1a2b3c;background:#fff;border-right:1px solid #e5e8eb;flex-direction:column;width:320px;display:flex}.sidebar-header{border-bottom:1px solid #eef0f2;padding:.75rem}.new-conversation-button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;width:100%;padding:.55rem;font-size:.85rem}.new-conversation-form{flex-direction:column;gap:.4rem;margin-top:.5rem;display:flex}.new-conversation-form input,.new-conversation-form textarea{resize:vertical;border:1px solid #ccc;border-radius:9px;padding:.4rem .5rem;font-family:inherit;font-size:.8rem}.new-conversation-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.45rem;font-size:.8rem}.new-conversation-form button:disabled{opacity:.6;cursor:default}.link-button{color:#2f6fed;cursor:pointer;background:0 0;border:none;font-size:.85rem}.tabs{border-bottom:1px solid #e5e8eb;gap:.25rem;padding:.5rem;display:flex}.tab{color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:9px;flex:1;padding:.5rem .6rem;font-size:.78rem;font-weight:500;transition:background .12s,color .12s}.tab:hover:not(.active){background:var(--content-bg)}.tab.active{background:var(--brand-tint);color:var(--brand-dark);font-weight:700}.conversation-list{flex:1;margin:0;padding:0;list-style:none;overflow-y:auto}.conversation-list .empty{color:#8a97a1;padding:1rem;font-size:.85rem}.conversation-item{cursor:pointer;border-bottom:1px solid #eef0f2;padding:.75rem 1rem}.conversation-item:hover{background:#f5f7f8}.conversation-item.selected{background:#eef4ff}.conversation-name{color:#1a2b3c;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:600;overflow:hidden}.conversation-meta{align-items:center;gap:.5rem;margin-top:.3rem;font-size:.7rem;display:flex}.status{border-radius:999px;align-items:center;gap:.35rem;padding:.22rem .65rem .22rem .55rem;font-size:.72rem;font-weight:600;display:inline-flex}.status:before{content:"";background:currentColor;border-radius:50%;flex-shrink:0;width:6px;height:6px;display:inline-block}.status-open{color:#2f6fed;background:#e3edff}.status-in_progress{color:#1e8a3c;background:#e3f6e8}.status-closed{color:#667685;background:#eceef0}.assigned{color:#667685}.chat{background:#eef1f3;flex-direction:column;flex:1;display:flex;position:relative}.chat-placeholder{color:#8a97a1;margin:auto}.chat-header{background:#fff;border-bottom:1px solid #e0e3e6;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.5rem;display:flex}.back-button{display:none}.chat-header-actions{align-items:center;gap:.5rem;display:flex}.chat-header button.secondary{color:#1a2b3c;background:#fff;border:1px solid #ccc}.chat-header button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.5rem 1rem}.chat-subtitle{color:#8a97a1;font-size:.75rem}.assigned-note{color:#8a97a1;font-size:.85rem}.messages{flex-direction:column;flex:1;gap:.5rem;padding:1.5rem;display:flex;overflow-y:auto}.message{border-radius:12px;max-width:60%;padding:.5rem .75rem;font-size:.9rem}.message.in{background:#fff;align-self:flex-start}.message.out{background:#d9fdd3;align-self:flex-end}.message-media{border-radius:9px;max-width:100%;max-height:320px;margin-bottom:.3rem;display:block}.message-audio{max-width:260px;margin-bottom:.3rem;display:block}.message-document{color:#1a2b3c;background:#fff9;border:1px solid #0000001a;border-radius:10px;align-items:center;gap:.5rem;max-width:260px;margin-bottom:.3rem;padding:.5rem .7rem;text-decoration:none;display:flex}.message-document:hover{background:#ffffffe6}.message-document-icon{flex-shrink:0;font-size:1.3rem}.message-document-name{text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.audio-record-btn{white-space:nowrap;align-items:center;gap:.35rem;display:flex}.audio-recorder{background:#fff;border:1px solid #ccc;border-radius:20px;align-items:center;gap:.6rem;padding:.4rem .9rem;display:flex}.audio-recorder-dot{background:#d03b3b;border-radius:50%;width:9px;height:9px;animation:1.2s infinite audio-pulse}@keyframes audio-pulse{0%,to{opacity:1}50%{opacity:.3}}.audio-recorder-time{font-variant-numeric:tabular-nums;color:#333;font-size:.85rem}.audio-recorder button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:14px;padding:.3rem .8rem;font-size:.8rem}.message-time{color:#8a97a1;text-align:right;margin-top:.2rem;font-size:.65rem}.composer{background:#fff;border-top:1px solid #e0e3e6;gap:.5rem;padding:1rem 1.5rem;display:flex}.composer input{border:1px solid #ccc;border-radius:20px;flex:1;padding:.6rem .8rem;font-size:.95rem}.composer button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:20px;padding:0 1.2rem}.composer button:disabled{opacity:.6;cursor:default}.attach-input{display:none}.composer button.attach-button{padding:0 .9rem;font-size:1.1rem}.quick-replies{position:relative}.quick-replies>button{white-space:nowrap;color:#1a2b3c;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:20px;padding:.6rem 1rem}.quick-replies-popover{z-index:10;background:#fff;border-radius:12px;flex-direction:column;gap:.5rem;width:320px;max-height:360px;padding:.75rem;display:flex;position:absolute;bottom:calc(100% + .5rem);left:0;box-shadow:0 4px 24px #00000026}.quick-replies-list{flex-direction:column;gap:.35rem;max-height:220px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.quick-replies-list .empty{color:#8a97a1;padding:.4rem;font-size:.85rem}.quick-replies-list li{cursor:pointer;border-radius:9px;justify-content:space-between;align-items:flex-start;gap:.5rem;padding:.5rem;display:flex}.quick-replies-list li:hover{background:#f2f4f5}.quick-reply-title{font-size:.8rem;font-weight:600}.quick-reply-body{color:#667;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.75rem;display:-webkit-box;overflow:hidden}.quick-reply-delete{color:#b3261e;cursor:pointer;background:0 0;border:none;padding:.1rem .3rem;font-size:1.1rem;line-height:1}.quick-reply-form{border-top:1px solid #e0e3e6;flex-direction:column;gap:.4rem;padding-top:.5rem;display:flex}.quick-reply-form input,.quick-reply-form textarea{resize:vertical;border:1px solid #ccc;border-radius:9px;padding:.4rem .5rem;font-family:inherit;font-size:.8rem}.quick-reply-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;align-self:flex-end;padding:.35rem .9rem}.quick-reply-form button:disabled{opacity:.6;cursor:default}.notes-panel{background:#fff;border-left:1px solid #e0e3e6;flex-direction:column;gap:.75rem;width:300px;padding:1rem;display:flex;overflow-y:auto}.notes-header{justify-content:space-between;align-items:center;display:flex}.notes-form{flex-direction:column;gap:.5rem;display:flex}.notes-form textarea{resize:vertical;border:1px solid #ccc;border-radius:9px;padding:.5rem;font-family:inherit;font-size:.85rem}.notes-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;align-self:flex-end;padding:.4rem .9rem}.notes-form button:disabled{opacity:.6;cursor:default}.notes-list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.notes-list .empty{color:#8a97a1;font-size:.85rem}.note-item{background:#fdf6e3;border-radius:10px;padding:.6rem .75rem}.note-body{white-space:pre-wrap;font-size:.85rem}.note-meta{color:#8a97a1;margin-top:.35rem;font-size:.7rem}.users-page{flex-direction:column;gap:1.4rem;padding:1.75rem 2rem;display:flex;overflow-y:auto}.users-header{justify-content:space-between;align-items:center;display:flex}.contacts-header-actions{align-items:center;gap:.6rem;display:flex}.contacts-search{border:1px solid var(--border-color);background:var(--card-bg);border-radius:9px;width:240px;padding:.55rem .9rem;font-size:.85rem}.contacts-search:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint);outline:none}.users-header h2{color:var(--text-primary);letter-spacing:-.01em;margin:0;font-size:1.3rem;font-weight:700}.users-header button{background:var(--brand);color:#fff;box-shadow:var(--shadow-xs);cursor:pointer;border:none;border-radius:9px;padding:.55rem 1.1rem;font-weight:600;transition:background .12s,box-shadow .12s}.users-header button:hover{background:var(--brand-dark);box-shadow:var(--shadow-sm)}.users-form{background:#fff;border-radius:12px;flex-wrap:wrap;align-items:center;gap:.6rem;padding:1rem 1.25rem;display:flex;box-shadow:0 1px 2px #1018280a,0 2px 6px #10182812}.users-form input,.users-form select{border:1px solid #ccc;border-radius:9px;padding:.5rem .6rem;font-size:.85rem}.users-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.5rem 1rem}.users-form button:disabled{opacity:.6;cursor:default}.agenda-page{flex-direction:column;gap:1rem;padding:1.5rem;display:flex;overflow-y:auto}.agenda-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.agenda-toolbar h2{color:#1a2b3c;margin:0;font-size:1.4rem}.agenda-toolbar-actions{align-items:center;gap:.6rem;display:flex}.agenda-subtoolbar{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.agenda-nav{align-items:center;gap:.5rem;display:flex}.agenda-nav h3{color:#1a2b3c;text-transform:capitalize;margin:0 0 0 .5rem;font-size:1.05rem;font-weight:600}.agenda-nav button.secondary{cursor:pointer;color:#1a2b3c;background:#fff;border:1px solid #ccc;border-radius:9px;width:2rem;height:2rem;font-size:.9rem}.agenda-new-button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.5rem 1rem}.agenda-scope-tabs{background:#fff;border-radius:10px;padding:.2rem;box-shadow:0 1px 2px #1018280a,0 2px 6px #10182812}.icon-button{cursor:pointer;color:#667685;background:#fff;border:1px solid #e5e8eb;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:2.1rem;height:2.1rem;display:inline-flex}.icon-button:hover{color:var(--brand);background:#f7f8fa}.agenda-fab{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;justify-content:center;align-items:center;width:2.3rem;height:2.3rem;display:inline-flex}.agenda-fab:hover{opacity:.9}.dropdown-wrap{position:relative}.dropdown-button{text-transform:uppercase;letter-spacing:.02em;color:#4b5a68;cursor:pointer;background:#f7f8fa;border:1px solid #e5e8eb;border-radius:9px;align-items:center;gap:.3rem;padding:.45rem .7rem;font-size:.72rem;font-weight:700;display:inline-flex}.dropdown-button:hover{background:#eef1f4}.dropdown-menu{box-shadow:var(--shadow-lg);z-index:50;background:#fff;border:1px solid #e5e8eb;border-radius:10px;flex-direction:column;min-width:190px;max-height:280px;padding:.3rem;display:flex;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto}.dropdown-empty{color:#8a97a1;padding:.5rem .6rem;font-size:.8rem}.searchable-select{display:inline-block}.searchable-select input{width:260px}.searchable-select-menu{width:100%;min-width:260px}.dropdown-menu button{text-align:left;color:#333;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:.45rem .6rem;font-size:.8rem}.dropdown-menu button:hover{background:#f0f4fa}.dropdown-menu button.active{background:var(--brand-tint);color:var(--brand-dark);font-weight:600}.agenda-search{align-items:center;display:inline-flex}.agenda-search input{border:1px solid #e5e8eb;border-radius:9px;width:200px;padding:.45rem .7rem;font-family:inherit;font-size:.8rem}.agenda-day-layout{flex:1;align-items:flex-start;gap:1rem;min-height:0;display:flex}.agenda-timeline{background:#fff;border:1px solid #e5e8eb;border-radius:12px;flex:3;min-width:0;min-height:300px;max-height:calc(100vh - 260px);display:flex;overflow:hidden auto}.agenda-timeline-hours{background:#fafbfc;border-right:1px solid #e5e8eb;flex-shrink:0;width:56px}.agenda-timeline-hour{color:#8a97a1;text-align:right;box-sizing:border-box;padding:2px 6px 0 0;font-size:.68rem}.agenda-timeline-body{flex:1;min-width:0;position:relative}.agenda-timeline-row{cursor:pointer;box-sizing:border-box;border-bottom:1px solid #f0f2f4}.agenda-timeline-row:hover{background:#fafbfc}.agenda-timeline-event{z-index:2;position:absolute}.agenda-week-layout{flex-direction:column;flex:1;gap:.5rem;min-height:0;display:flex}.agenda-week-headers{border:1px solid #e5e8eb;border-radius:12px;display:flex;overflow:hidden}.agenda-timeline-hours-spacer{background:#fafbfc;flex-shrink:0;width:56px}.agenda-week-col-header{text-align:center;color:#667685;text-transform:uppercase;background:#f7f8fa;flex:1;padding:.5rem;font-size:.72rem;font-weight:700}.agenda-week-col-header.today{color:var(--brand)}.agenda-week-grid{flex:1;min-width:0;display:flex}.agenda-week-col{cursor:pointer;background-image:repeating-linear-gradient(#f0f2f4 0 1px,#0000 1px 100%);background-repeat:repeat-y;border-right:1px solid #f0f2f4;flex:1;width:0;min-width:0;position:relative}.agenda-week-col:last-child{border-right:none}.agenda-week-col:hover{background-color:#fafbfc}.agenda-side-panel{background:#fff;border:1px solid #e5e8eb;border-radius:12px;flex-direction:column;flex:1;gap:.6rem;min-width:240px;max-width:320px;min-height:300px;max-height:calc(100vh - 260px);padding:1rem;display:flex}.agenda-side-panel-header{color:#1a2b3c;border-bottom:1px solid #f0f2f4;padding-bottom:.5rem;font-size:.85rem;font-weight:700}.agenda-side-panel-list{flex-direction:column;gap:.5rem;display:flex;overflow-y:auto}.agenda-side-item{cursor:pointer;text-align:left;background:#fafbfc;border:1px solid #f0f2f4;border-radius:9px;flex-direction:column;align-items:flex-start;gap:.25rem;width:100%;padding:.5rem .6rem;display:flex}.agenda-side-item:hover{background:#f0f4fa}.agenda-side-item-title{color:#1a2b3c;font-size:.82rem;font-weight:600}.agenda-side-item-time{color:#8a97a1;font-size:.72rem}.agenda-side-item.agenda-status-concluido{opacity:.55;text-decoration:line-through}.agenda-side-item.agenda-status-cancelado{opacity:.4;text-decoration:line-through}.agenda-list-view{flex-direction:column;gap:1.2rem;display:flex}.agenda-list-group{flex-direction:column;gap:.5rem;display:flex}.agenda-list-group-header{color:#667685;text-transform:capitalize;border-bottom:1px solid #e5e8eb;margin-bottom:.2rem;padding-bottom:.3rem;font-size:.8rem;font-weight:700}.calendar-grid{background:#e5e8eb;border:1px solid #e5e8eb;border-radius:12px;flex:1;grid-template-columns:repeat(7,1fr);gap:1px;display:grid;overflow:hidden}.calendar-weekday{text-align:center;color:#667685;background:#f7f8fa;padding:.5rem;font-size:.75rem;font-weight:600}.calendar-day{cursor:pointer;background:#fff;flex-direction:column;gap:.25rem;min-width:0;min-height:100px;padding:.4rem;display:flex}.calendar-day:hover,.calendar-day.outside{background:#fafbfc}.calendar-day.outside .calendar-day-number{color:#c5cbd1}.calendar-day.today .calendar-day-number{background:var(--brand);color:#fff}.calendar-day-number{color:#1a2b3c;border-radius:50%;justify-content:center;align-items:center;width:1.6rem;height:1.6rem;font-size:.8rem;font-weight:600;display:flex}.calendar-day-events{flex-direction:column;gap:.2rem;min-width:0;display:flex}.calendar-event{text-align:left;cursor:pointer;background:#eef4ff;border:none;border-left:3px solid #2f6fed;border-radius:4px;align-items:baseline;gap:.3rem;width:100%;min-width:0;padding:.15rem .35rem;font-size:.65rem;display:flex;overflow:hidden}.calendar-event-visita{background:#efeaff;border-left-color:#1b3a5e}.calendar-event-lembrete{border-left-color:var(--brand);background:#fff3e0}.calendar-event-prazo{background:#fdecea;border-left-color:#b3261e}.calendar-event-time{color:#1a2b3c;flex-shrink:0;font-weight:600}.calendar-event-title{color:#333;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.calendar-event.agenda-status-concluido{opacity:.55;text-decoration:line-through}.calendar-event.agenda-status-cancelado{opacity:.4;text-decoration:line-through}.modal-backdrop{z-index:500;background:#00000080;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal-card{box-shadow:var(--shadow-lg);background:#fff;border-radius:16px;width:100%;max-width:420px;max-height:85vh;padding:1.4rem 1.6rem;overflow-y:auto}.modal-card h3{color:var(--text-primary);margin:.4rem 0 .6rem;font-size:1.05rem;font-weight:700}.modal-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.modal-actions button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.5rem 1rem}.modal-actions button.secondary{color:#1a2b3c;background:#fff;border:1px solid #ccc}.modal-actions button.danger{color:#fff;background:#c62828;border:none}.modal-actions button:disabled{opacity:.6;cursor:default}.agenda-form{flex-wrap:wrap;align-items:flex-start;gap:.6rem;display:flex}.agenda-form input,.agenda-form select,.agenda-form textarea{border:1px solid #ccc;border-radius:9px;padding:.5rem .6rem;font-family:inherit;font-size:.85rem}.agenda-form textarea{resize:vertical;flex:100%}.agenda-type-badge{border-radius:999px;align-items:center;gap:.35rem;margin-bottom:.5rem;padding:.22rem .6rem .22rem .55rem;font-size:.7rem;font-weight:700;display:inline-flex}.agenda-type-badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px;display:inline-block}.agenda-type-visita{color:#1b3a5e;background:#e7eef5}.agenda-type-lembrete{background:var(--brand-tint);color:var(--brand-dark)}.agenda-type-prazo{color:#b3261e;background:#fdecea}.agenda-item-desc{color:#52514e;margin-top:.2rem;font-size:.8rem}.agenda-item-meta{color:#8a97a1;margin-top:.4rem;font-size:.75rem}.agenda-detail-card{max-width:480px;padding:1.7rem 1.9rem}.agenda-detail-card h3{margin-top:.6rem;font-size:1.3rem}.agenda-detail-card .agenda-item-desc{font-size:.95rem}.agenda-detail-card .agenda-item-meta{margin-top:.6rem;font-size:.88rem}.agenda-detail-card .agenda-type-badge{padding:.3rem .75rem .3rem .65rem;font-size:.75rem}.agenda-detail-top{justify-content:space-between;align-items:center;display:flex}.client-detail-grid{grid-template-columns:repeat(2,1fr);gap:1rem 1.6rem;margin-top:1rem;display:grid}.client-detail-field{font-size:1rem}.client-detail-field label{text-transform:uppercase;letter-spacing:.03em;color:#8a97a1;margin-bottom:.25rem;font-size:.72rem;font-weight:700;display:block}@media (width<=640px){.client-detail-grid{grid-template-columns:1fr}}.users-table{background:var(--card-bg);box-shadow:var(--shadow-sm);border:1px solid var(--border-color-soft);border-collapse:separate;border-spacing:0;border-radius:14px;width:100%;overflow:hidden}.users-table th,.users-table td{text-align:left;border-bottom:1px solid var(--border-color-soft);padding:.8rem 1.1rem;font-size:.85rem}.users-table th{color:var(--text-secondary);letter-spacing:.04em;text-transform:uppercase;background:#fafafb;font-size:.7rem;font-weight:700}.users-table tbody tr{transition:background .1s}.users-table tbody tr:hover{background:#fafafb}.users-table tbody tr:last-child td{border-bottom:none}.table-name-cell{color:var(--text-primary);align-items:center;gap:.6rem;font-weight:600;display:flex}.installment-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.installment-actions .link-button{white-space:nowrap}.role-badge{border-radius:999px;align-items:center;gap:.35rem;padding:.22rem .6rem .22rem .55rem;font-size:.72rem;font-weight:700;display:inline-flex}.role-badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px;display:inline-block}.role-badge.role-admin{background:var(--brand-tint);color:var(--brand-dark)}.role-badge.role-atendente{color:#52514e;background:#eceef0}.role-badge.role-advogado{color:#1b3a5e;background:#e7eef5}.reports{flex-direction:column;gap:1.75rem;padding:1.5rem;display:flex;overflow-y:auto}.reports-empty{color:#8a97a1;font-size:.85rem}.stat-tiles{flex-wrap:wrap;gap:1rem;display:flex}.stat-tile{background:var(--card-bg);border:1px solid var(--border-color-soft);min-width:168px;box-shadow:var(--shadow-xs);border-top:3px solid var(--brand);border-radius:14px;flex:1;padding:1.1rem 1.3rem;transition:box-shadow .15s,transform .15s}.stat-tile:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px)}.stat-tile-value{color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:1.75rem;font-weight:700}.stat-tile-label{color:var(--text-secondary);margin-top:.3rem;font-size:.78rem;font-weight:500}.reports-section{background:var(--card-bg);border:1px solid var(--border-color-soft);box-shadow:var(--shadow-xs);border-radius:14px;padding:1.4rem}.reports-section h3{color:var(--text-primary);margin:0 0 1rem;font-size:.95rem;font-weight:700}.dashboard-recent-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.dashboard-recent-list .empty{color:#8a97a1;padding:.5rem 0;font-size:.85rem}.dashboard-recent-list li{border-bottom:1px solid var(--border-color-soft);cursor:pointer;border-radius:8px;align-items:center;gap:.75rem;padding:.65rem .5rem;font-size:.85rem;display:flex}.dashboard-recent-list li:hover{background:var(--content-bg)}.dashboard-recent-name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.bar-list{flex-direction:column;gap:.55rem;display:flex}.bar-row{grid-template-columns:70px 1fr 90px;align-items:center;gap:.6rem;display:grid}.bar-row-label{color:#52514e;text-align:right;font-size:.78rem}.bar-row-track{background:#e1e0d9;border-radius:0 4px 4px 0;height:20px;overflow:hidden}.bar-row-fill{background:var(--brand);border-radius:0 4px 4px 0;min-width:2px;height:100%}.bar-row-value{color:#0b0b0b;font-variant-numeric:tabular-nums;font-size:.78rem}.goal-progress{margin-bottom:1.25rem}.goal-progress:last-child{margin-bottom:0}.goal-progress-header{color:var(--text-primary);justify-content:space-between;align-items:baseline;margin-bottom:.4rem;font-size:.85rem;font-weight:600;display:flex}.goal-progress-value{font-variant-numeric:tabular-nums}.goal-progress-target{color:var(--text-muted);font-weight:400}.goal-progress-track{background:var(--content-bg);border:1px solid var(--border-color-soft);border-radius:999px;height:12px;overflow:hidden}.goal-progress-fill{background:var(--brand);border-radius:999px;height:100%;transition:width .3s}.goal-progress-fill.over{background:#1e8a3c}.goal-progress-pct{color:var(--text-muted);text-align:right;margin-top:.25rem;font-size:.7rem}.chat-kanban{overflow-x:auto}.kanban{background:var(--content-bg);gap:1rem;height:100%;padding:1.5rem;display:flex;overflow-x:auto}.kanban-column{border:1px solid var(--border-color-soft);background:#eaecef;border-radius:14px;flex-direction:column;width:268px;min-width:268px;padding:.85rem;display:flex}.kanban-column.drag-over{background:var(--brand-tint);outline:2px dashed var(--brand);outline-offset:-2px}.kanban-column h3{text-transform:uppercase;letter-spacing:.03em;color:var(--text-secondary);justify-content:space-between;align-items:center;margin:.3rem .25rem .85rem;font-size:.8rem;font-weight:700;display:flex}.kanban-count{color:var(--text-primary);background:#14213d14;border-radius:12px;padding:.1rem .55rem;font-size:.72rem;font-weight:700}.kanban-cards{flex-direction:column;gap:.6rem;display:flex;overflow-y:auto}.kanban-card{background:var(--card-bg);border-top:3px solid var(--border-color);cursor:grab;box-shadow:var(--shadow-xs);border-radius:12px;padding:.75rem .85rem;transition:box-shadow .15s,transform .15s}.kanban-card:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px)}.kanban-card:active{cursor:grabbing}.kanban-card-novo{border-top-color:#2f6fed}.kanban-card-negociacao{border-top-color:var(--brand)}.kanban-card-fechado{border-top-color:#1e8a3c}.kanban-card-perdido{border-top-color:#c62828}.kanban-card-name{color:var(--text-primary);margin-bottom:.5rem;font-size:.85rem;font-weight:700}.kanban-card-meta{justify-content:space-between;align-items:center;gap:.4rem;font-size:.65rem;display:flex}.toast{background:#fdecea;border-radius:9px;padding:.5rem 1rem;position:absolute;bottom:5rem;left:50%;transform:translate(-50%)}.settings-card{background:#fff;border-radius:12px;flex-direction:column;gap:.85rem;max-width:560px;padding:1.25rem 1.5rem;display:flex;box-shadow:0 1px 2px #1018280a,0 2px 6px #10182812}.settings-card h3{color:#1a2b3c;margin:0;font-size:1rem}.connection-status{align-items:center;gap:.75rem;display:flex}.connection-badge{border-radius:999px;align-items:center;gap:.4rem;padding:.3rem .8rem .3rem .7rem;font-size:.8rem;font-weight:600;display:inline-flex}.connection-badge:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px;display:inline-block}.connection-badge.connected{color:#1e8a3c;background:#e3f6e8}.connection-badge.disconnected{color:#c62828;background:#fdecea}.connection-details{color:#556;font-size:.85rem}.qr-box{background:#f7f8fa;border-radius:10px;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;display:flex}.qr-box img{width:220px;height:220px}.qr-box p{color:#556;text-align:center;margin:0;font-size:.85rem}.settings-actions{flex-direction:column;align-items:flex-start;gap:.4rem;display:flex}.settings-actions button.danger{color:#fff;cursor:pointer;background:#c62828;border:none;border-radius:9px;padding:.5rem 1rem}.settings-actions button.danger:disabled{opacity:.6;cursor:default}.settings-hint{color:#8a97a1;margin:0;font-size:.75rem}.settings-quick-reply-form{box-shadow:none;background:0 0;padding:0;position:static}.settings-quick-replies-list{box-shadow:none;max-height:none;position:static}.editable-name{align-items:center;gap:.4rem;display:inline-flex}.edit-name-btn{cursor:pointer;color:#8a97a1;background:0 0;border:none;padding:.1rem .2rem;font-size:.8rem;line-height:1}.edit-name-btn:hover{color:var(--brand)}.editable-name.editing input{font-size:inherit;border:1px solid #ccc;border-radius:9px;padding:.3rem .5rem;font-family:inherit;font-weight:400}.editable-name.editing button{cursor:pointer;background:0 0;border:none;padding:.1rem .3rem;font-size:.95rem;line-height:1}.message-image{cursor:zoom-in}.lightbox-backdrop{z-index:1000;background:#000000d9;justify-content:center;align-items:center;padding:2rem;display:flex;position:fixed;inset:0}.lightbox-toolbar{gap:.5rem;display:flex;position:absolute;top:1.25rem;right:1.5rem}.lightbox-toolbar button{color:#1a2b3c;cursor:pointer;background:#fff;border:none;border-radius:9px;padding:.5rem 1rem;font-size:.85rem}.lightbox-toolbar button:disabled{opacity:.5;cursor:default}.lightbox-zoom-level{color:#fff;text-align:center;align-self:center;min-width:3ch;font-size:.8rem}.lightbox-image-wrap{width:92vw;height:88vh;overflow:auto}.lightbox-image{object-fit:contain;max-width:100%;max-height:100%;margin:auto;display:block}.lightbox-image.draggable{cursor:grab}.lightbox-image.draggable:active{cursor:grabbing}.label-chips{flex-wrap:wrap;gap:.3rem;display:inline-flex}.label-chip{color:#fff;white-space:nowrap;text-shadow:0 1px 1px #0003;border-radius:999px;padding:.15rem .55rem;font-size:.65rem;font-weight:600;display:inline-block}.chat-labels,.chat-phone{align-items:center;gap:.5rem;margin-top:.4rem;display:flex}.call-button{color:#fff;background:#1e8a3c;border-radius:20px;align-items:center;gap:.3rem;padding:.2rem .7rem;font-size:.75rem;font-weight:600;text-decoration:none;display:inline-flex}.contact-phone-cell{align-items:center;gap:.5rem;display:flex}.label-picker{position:relative}.label-picker-popover{z-index:20;color:#1a2b3c;background:#fff;border-radius:12px;flex-direction:column;gap:.5rem;width:260px;max-height:340px;padding:.75rem;display:flex;position:absolute;top:calc(100% + .5rem);left:0;box-shadow:0 4px 24px #00000026}.label-picker-list{flex-direction:column;gap:.3rem;max-height:200px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.label-picker-list .empty{color:#8a97a1;padding:.3rem;font-size:.8rem}.label-picker-list li{cursor:pointer;border-radius:9px;justify-content:space-between;align-items:center;padding:.4rem .5rem;display:flex}.label-picker-list li:hover{background:#f2f4f5}.label-picker-list li.active{background:#eef4ff}.label-check{color:#2f6fed;font-weight:700}.label-form{border-top:1px solid #e0e3e6;flex-direction:column;align-items:stretch;gap:.5rem;padding-top:.5rem;display:flex}.label-form input{border:1px solid #ccc;border-radius:9px;padding:.4rem .5rem;font-size:.8rem}.label-form button{background:var(--brand);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:9px;align-self:flex-end;padding:.35rem .8rem}.label-form button:disabled,.label-manager-form button:disabled{opacity:.6;cursor:default}.label-manager-form{max-width:320px}.settings-labels-list li{align-items:center}.color-swatches{flex-wrap:wrap;gap:.4rem;display:flex}.color-swatch{cursor:pointer;border:2px solid #0000;border-radius:50%;width:22px;height:22px;padding:0}.color-swatch.selected{border-color:#1a2b3c;box-shadow:inset 0 0 0 2px #fff}.status-post-form{background:#fff;border-radius:12px;flex-wrap:wrap;align-items:center;gap:.6rem;padding:1rem 1.25rem;display:flex;box-shadow:0 1px 2px #1018280a,0 2px 6px #10182812}.status-post-form input:not([type=file]){border:1px solid #ccc;border-radius:9px;flex:1;min-width:200px;padding:.5rem .6rem;font-size:.85rem}.status-post-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;padding:.5rem 1rem}.status-post-form button:disabled{opacity:.6;cursor:default}.status-posts-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;display:grid}.status-posts-grid .empty{color:#8a97a1;font-size:.85rem}.status-post-card{background:#fff;border-radius:12px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 1px 2px #1018280a,0 2px 6px #10182812}.status-post-card.inactive{opacity:.6}.status-post-media{aspect-ratio:9/12;background:#1a2b3c}.status-post-media img,.status-post-media video{object-fit:cover;width:100%;height:100%;display:block}.status-post-info{flex:1;padding:.75rem 1rem}.status-post-caption{color:#1a2b3c;margin-bottom:.35rem;font-size:.85rem}.status-post-meta{color:#8a97a1;font-size:.7rem}.status-post-error{color:#c62828;margin-top:.3rem;font-size:.7rem}.status-post-actions{border-top:1px solid #eef0f2;justify-content:space-between;align-items:center;padding:.6rem 1rem;display:flex}.change-password-form{flex-direction:column;gap:.5rem;max-width:320px;display:flex}.change-password-form input{border:1px solid #ccc;border-radius:9px;padding:.5rem .6rem;font-size:.85rem}.change-password-form button{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:9px;align-self:flex-start;padding:.5rem 1rem}.change-password-form button:disabled{opacity:.6;cursor:default}.status-post-actions button.secondary{color:#1a2b3c;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:9px;padding:.35rem .8rem;font-size:.8rem}@media (width<=768px){.mobile-topbar{background:var(--sidebar-bg);color:#fff;flex-shrink:0;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.mobile-menu-button{color:#fff;cursor:pointer;background:0 0;border:none;padding:.2rem .4rem;font-size:1.3rem;line-height:1}.mobile-topbar-title{font-size:.95rem;font-weight:600}.app-shell{flex-direction:column;overflow:hidden}.nav-sidebar{z-index:300;height:100vh;transition:transform .2s;position:fixed;top:0;left:0;transform:translate(-100%);box-shadow:2px 0 12px #00000040}.nav-sidebar.open{transform:translate(0)}.mobile-nav-backdrop{z-index:250;background:#0006;display:block;position:fixed;inset:0}.app-main{flex:1;height:auto;min-height:0}.panel{flex-direction:column}.sidebar{width:100%;min-width:0}.panel.chat-active .sidebar,.panel:not(.chat-active) .chat{display:none}.back-button{cursor:pointer;color:#1a2b3c;background:0 0;border:none;padding:0;font-size:1.3rem;line-height:1;display:inline-flex}.users-header,.agenda-toolbar,.agenda-nav,.agenda-toolbar-actions,.contacts-header-actions{flex-wrap:wrap}.contacts-header-actions,.contacts-search{width:100%}.users-table{white-space:nowrap;display:block;overflow-x:auto}.calendar-grid{font-size:.7rem}.calendar-day{min-height:70px;padding:.25rem}.agenda-day-layout{flex-direction:column}.agenda-side-panel{width:100%;max-width:100%}.agenda-week-layout{overflow-x:auto}.agenda-week-headers,.agenda-week-layout .agenda-timeline{min-width:600px}.modal-card{max-width:92vw}.status-posts-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
