/* Lugarcito inbox: Burbuxa's working hierarchy, with a calmer, denser visual rhythm. */
.crm-page{--crm-line:#e4ebe5;--crm-ink:#20372b;--crm-muted:#6d8072;--crm-green:#176f4e}
.crm-main-toolbar{min-height:54px;display:flex;align-items:stretch;justify-content:space-between;gap:18px;border-bottom:1px solid var(--crm-line);background:#fbfcfa;padding:0 18px;flex:none}
.crm-queue-tabs,.crm-toolbar-actions{display:flex;align-items:center;gap:4px;min-width:0}
.crm-queue-tabs{overflow:auto;scrollbar-width:none}
.crm-queue-tabs button{height:100%;flex:none;border:0;border-bottom:2px solid transparent;background:transparent;color:#688073;font:700 12px 'DM Sans',sans-serif;padding:0 12px;white-space:nowrap}
.crm-queue-tabs button:hover{color:#265640}
.crm-queue-tabs button.active{border-bottom-color:#20815d;color:#1c6043}
.crm-queue-tabs button span{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:99px;margin-left:6px;padding:0 4px;background:#edf3ed;color:#607868;font-size:10px}
.crm-queue-tabs button.active span{background:#e0f0e5;color:#1c6d4c}
.crm-toolbar-actions{flex:none;gap:5px}
.crm-toolbar-actions button{height:32px;border:0;border-radius:6px;padding:0 9px;background:transparent;color:#486c56;font:700 11px 'DM Sans',sans-serif;white-space:nowrap}
.crm-toolbar-actions button:hover{background:#e9f2ea}
.crm-toolbar-actions .crm-toolbar-new{display:flex;align-items:center;gap:5px;background:#1b7655;color:#fff;margin-left:7px;padding:0 12px}
.crm-toolbar-actions .crm-toolbar-new:hover{background:#125c41}
.crm-toolbar-new .icon{width:14px;height:14px}
.crm-page .wa-inbox-layout{grid-template-columns:minmax(300px,340px) minmax(380px,1fr) 0px}
.crm-page .wa-inbox-layout.context-open{grid-template-columns:minmax(300px,340px) minmax(380px,1fr) minmax(294px,326px)}
.crm-list-header{padding:17px 16px 12px}
.crm-list-title{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.crm-list-title h1{font:750 18px/1.2 'Plus Jakarta Sans',sans-serif;letter-spacing:-.55px;margin:0;color:#213a2c}
.crm-list-title>span{font:700 10px 'DM Sans',sans-serif;background:#e7f2e8;color:#286647;border-radius:99px;padding:3px 7px}
.crm-list-header .wa-search{height:38px}
.crm-list-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}
.crm-filter-anchor{position:relative;min-width:0}
.crm-filter-trigger{display:flex;align-items:center;gap:5px;height:32px;padding:0 9px;background:#fff;border:1px solid #dce7dd;border-radius:6px;color:#3d6249;font:700 11px 'DM Sans',sans-serif}
.crm-filter-trigger:hover,.crm-filter-trigger.active{background:#e9f4eb;border-color:#bcd8c2}
.crm-filter-trigger .icon{width:15px;height:15px}
.crm-filter-trigger span{background:#1b7655;color:#fff;border-radius:99px;min-width:17px;height:17px;display:grid;place-items:center;font-size:9px}
.crm-sort{display:flex;align-items:center;gap:4px;color:#829587;font-size:11px;white-space:nowrap}
.crm-sort select{border:0;background:transparent;font:700 11px 'DM Sans',sans-serif;color:#456b50;max-width:95px;padding:4px 0}
.crm-quick-filters{display:flex;gap:7px;margin-top:11px}
.crm-quick-filters button{border:1px solid transparent;border-radius:99px;background:#f0f4f0;color:#607566;font:700 10px 'DM Sans',sans-serif;padding:6px 9px}
.crm-quick-filters button:hover,.crm-quick-filters button.active{background:#e1f1e6;color:#1a6748;border-color:#cce5d2}
.crm-filter-popover{position:absolute;z-index:60;top:39px;left:0;width:min(340px,calc(100vw - 22px));height:min(590px,calc(100vh - 190px));display:flex;flex-direction:column;background:#fff;border:1px solid #dce6dd;border-radius:10px;box-shadow:0 15px 45px #183b292b;color:var(--crm-ink)}
.crm-pop-head,.crm-pop-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 15px;flex:none}
.crm-pop-head{border-bottom:1px solid var(--crm-line)}
.crm-pop-head strong{font-size:13px}
.crm-pop-head button{width:27px;height:27px;border:0;background:transparent;color:#6a806e;display:grid;place-items:center}
.crm-pop-head .icon{width:15px;height:15px}
.crm-pop-scroll{overflow:auto;padding:4px 15px;min-height:0}
.crm-filter-group{border:0;border-bottom:1px solid #edf1ed;padding:12px 0;margin:0;display:flex;gap:7px;flex-wrap:wrap}
.crm-filter-group legend{font-size:11px;font-weight:800;color:#3e604a;margin-bottom:9px}
.crm-filter-group label{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #e1e8e1;border-radius:6px;background:#fff;color:#4c6353;font-size:11px;cursor:pointer}
.crm-filter-group label:has(input:checked){border-color:#94c5a4;background:#edf7ef;color:#1c6846}
.crm-filter-group input{margin:0;width:13px;height:13px}
.crm-pop-foot{border-top:1px solid var(--crm-line)}
.crm-pop-foot button{border:0;background:transparent;color:#3e6d4f;font-size:11px;font-weight:700;padding:8px}
.crm-pop-foot .crm-primary{color:#fff;background:#1b7655;padding:9px 12px;border-radius:6px}
.crm-chat-row{position:relative;display:flex;width:100%;min-height:91px;padding:14px 15px;gap:12px;border:0;border-bottom:1px solid #eef1ed;background:#fff;text-align:left;color:var(--crm-ink)}
.crm-chat-row:hover{background:#f7faf7}
.crm-chat-row.active{background:#edf6ef}
.crm-chat-row.active:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#18835b}
.crm-channel-avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;color:#fff;background:#23a86b;box-shadow:inset 0 0 0 1px #fff6}
.crm-channel-avatar svg{width:24px;height:24px}
.crm-channel-avatar.is-instagram{background:linear-gradient(145deg,#5964d8,#a94fb0 50%,#e48b52)}
.crm-channel-avatar .icon{width:21px;height:21px}
.crm-row-copy{min-width:0;display:block;flex:1}
.crm-row-title{display:flex;align-items:center;gap:7px;min-width:0}
.crm-row-title strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750;color:#263d2f}
.crm-row-title time{font-size:10px;color:#829487;white-space:nowrap;font-variant-numeric:tabular-nums}
.crm-row-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;color:#687d6f;font-size:11.5px}
.crm-row-tags{display:flex;align-items:center;gap:5px;min-height:18px;margin-top:6px;overflow:hidden}
.crm-tag{display:inline-flex;align-items:center;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;background:var(--tag-bg,#e6f0e7);color:#355b41;padding:3px 6px;font-size:9px;font-weight:700;line-height:1.1}
.crm-tag button{border:0;background:transparent;color:inherit;font-size:13px;margin-left:4px;padding:0 1px;line-height:1}
.crm-important{color:#d39b2d;font-size:13px}
.crm-muted .icon{width:12px;height:12px;color:#7e8b82}
.crm-unread{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#1c8c60;color:#fff;font:800 10px 'DM Sans',sans-serif}
.crm-list .wa-list-empty button{border:0;background:none;color:#1b7655;font-weight:700;cursor:pointer}
.crm-thread-head{background:#fbfcfa}
.crm-thread-head .crm-channel-avatar{width:36px;height:36px}
.crm-thread-head .crm-channel-avatar svg{width:21px;height:21px}
.crm-thread-head .wa-thread-identity small{color:#6f8474}
.crm-head-text,.crm-icon-action{height:32px;border:1px solid #dbe6dc;border-radius:6px;background:#fff;color:#466f53;font:700 11px 'DM Sans',sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;white-space:nowrap}
.crm-head-text:hover,.crm-icon-action:hover{background:#ecf5ed}
.crm-head-text .icon,.crm-icon-action .icon{width:15px;height:15px}
.crm-icon-action{width:32px;padding:0;font-size:18px}
.crm-icon-action.is-on{color:#d19a2d}
.crm-actions-anchor{position:relative;flex:none}
.crm-action-menu{position:absolute;right:0;top:39px;z-index:50;min-width:222px;max-height:min(430px,70vh);overflow:auto;padding:5px;background:#fff;border:1px solid #dce6dd;border-radius:8px;box-shadow:0 13px 34px #183b292a}
.crm-action-menu button{display:block;width:100%;border:0;border-radius:5px;background:transparent;color:#2e4937;font:600 11px 'DM Sans',sans-serif;text-align:left;padding:9px 10px}
.crm-action-menu button:hover{background:#ecf5ed}
.crm-action-menu .crm-menu-back{color:#176d4d;font-weight:800;border-bottom:1px solid #e6ece6;border-radius:0}
.crm-action-menu .crm-danger-action{color:#9b554f}
.crm-action-menu .crm-danger-action:hover{background:#fbefeb}
.crm-thread-subbar{height:32px;min-height:32px;display:flex;align-items:center;gap:7px;padding:0 17px;background:#fbfcfa;border-bottom:1px solid #e4ebe5;color:#667b6c;font-size:10px}
.crm-ticket-dot{width:7px;height:7px;border-radius:50%;background:#e6a743}
.crm-ticket-dot.resolved{background:#47a977}
.crm-subbar-sep{width:1px;height:12px;background:#dce5dc;margin:0 3px}
.crm-thread-subbar button{display:flex;align-items:center;gap:3px;margin-left:auto;border:0;background:transparent;color:#23704e;font-size:10px;font-weight:700}
.crm-thread-subbar button .icon{width:11px;height:11px}
.crm-thread-tabs{height:34px;min-height:34px;display:flex;align-items:stretch;gap:14px;padding:0 18px;background:#fbfcfa;border-bottom:1px solid #e2eae3}
.crm-thread-tabs button{height:100%;border:0;border-bottom:2px solid transparent;background:transparent;color:#748879;font:700 10px 'DM Sans',sans-serif;padding:0 2px}
.crm-thread-tabs button.active{border-color:#26845d;color:#1d704e}
.crm-thread-tabs button span{margin-left:3px;color:#879b8a}
.crm-notes-list{flex:1;min-height:0;overflow:auto;background:#f4f3ed;padding:24px clamp(20px,4vw,60px)}
.crm-notes-list article{max-width:620px;background:#fffdf8;border:1px solid #ece8db;border-left:3px solid #e1b56d;border-radius:7px;padding:14px 17px;margin-bottom:11px;box-shadow:0 1px 3px #3a332512}
.crm-notes-list article strong{display:flex;justify-content:space-between;gap:10px;color:#31513a;font-size:11px}
.crm-notes-list article time{font-weight:500;color:#8a9687}
.crm-notes-list article p{margin:9px 0 0;color:#4d5e4f;font-size:12px;line-height:1.5;white-space:pre-wrap}
.crm-notes-empty{max-width:450px;margin:45px auto;text-align:center;color:#4e6654}
.crm-notes-empty strong{font-size:14px}.crm-notes-empty p{font-size:12px;color:#819084}
.crm-note-composer{padding:13px 17px 11px;background:#fbfcfa;border-top:1px solid #e1e8e0}
.crm-note-composer textarea{display:block;width:100%;min-height:66px;max-height:120px;resize:vertical;border:1px solid #d9e5db;border-radius:7px;padding:10px 12px;color:#344d39;font:500 12px/1.4 'DM Sans',sans-serif}
.crm-note-composer>div{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.crm-note-composer small{color:#849486;font-size:10px}.crm-note-composer button{border:0;border-radius:6px;background:#1b7655;color:#fff;font:700 11px 'DM Sans',sans-serif;padding:8px 11px}
.crm-drawer{background:#fff}
.crm-drawer .wa-context-header{background:#fbfcfa}
.crm-drawer-tabs{display:flex;border-bottom:1px solid #e2eae3;background:#fbfcfa}
.crm-drawer-tabs button{width:50%;height:39px;border:0;border-bottom:2px solid transparent;background:transparent;color:#6c806f;font-size:11px;font-weight:700}
.crm-drawer-tabs button.active{border-bottom-color:#25855d;color:#176c4a}
.crm-drawer-scroll{overflow:auto;min-height:0;flex:1}
.crm-detail-identity{display:flex;align-items:center;gap:11px;padding:18px;border-bottom:1px solid #e9eee9}
.crm-detail-identity .crm-channel-avatar{width:38px;height:38px}
.crm-detail-identity strong,.crm-detail-identity small{display:block}
.crm-detail-identity strong{font-size:13px;color:#253e2e}
.crm-detail-identity small{font-size:10px;color:#708475;margin-top:3px}
.crm-detail-section{padding:16px 18px;border-bottom:1px solid #e9eee9}
.crm-detail-section>strong,.crm-section-title strong{font-size:11px;color:#3e6148}
.crm-detail-section>label{display:block;margin-bottom:12px;color:#637967;font-size:10px;font-weight:700}
.crm-detail-section select,.crm-detail-section input:not([type=checkbox]){display:block;width:100%;min-height:33px;margin-top:6px;padding:6px 8px;border:1px solid #dce7dd;border-radius:6px;background:#fff;color:#294936;font:600 11px 'DM Sans',sans-serif}
.crm-detail-section textarea{width:100%;min-height:72px;margin-top:9px;border:1px solid #dce7dd;border-radius:6px;padding:9px;color:#294936;font:500 11px/1.5 'DM Sans',sans-serif;resize:vertical}
.crm-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.crm-section-title button{border:0;background:transparent;color:#197450;font-size:10px;font-weight:750}
.crm-detail-tags{display:flex;flex-wrap:wrap;gap:5px}
.crm-detail-tags .crm-tag{font-size:10px}
.crm-automation-row,.crm-history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#385b43;font-size:11px;padding:7px 0}
.crm-automation-row span{display:flex;align-items:center;gap:5px}
.crm-automation-row .icon{width:13px;height:13px}
.crm-automation-row button{border:0;background:#f4f6f3;color:#8b6b64;border-radius:4px;min-width:22px;height:22px}
.crm-empty-small{font-size:11px;line-height:1.5;color:#849488;margin:4px 0}
.crm-key-values>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:11px}
.crm-key-values span{color:#758778}.crm-key-values strong{color:#2b4937;font-weight:700}
.crm-subtle-danger{border:0;background:transparent;color:#9e5d51;font-size:11px;font-weight:700;padding:3px 0}
.crm-custom-value{margin-top:10px}
.crm-custom-value small{display:block;margin-top:3px;font-size:9px;color:#8a9a8c;font-weight:500}
.crm-custom-value input[type=checkbox]{margin:8px 0 0}
.crm-history-row b{font-size:11px}
.crm-modal-backdrop{z-index:100}
.crm-modal{width:min(540px,calc(100vw - 30px));max-height:min(700px,calc(100vh - 30px));display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 24px 70px #122b2452;overflow:hidden}
.crm-modal>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e5ece5}
.crm-modal h2{font:750 17px 'Plus Jakarta Sans',sans-serif;color:#253d2e;margin:0}
.crm-modal>header button{border:0;background:transparent;color:#67816c;width:26px;height:26px}
.crm-modal>header .icon{width:16px;height:16px}
.crm-modal-body,.crm-modal form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.crm-modal-content{overflow:auto;padding:20px 22px;color:#455c4b}
.crm-modal-content>p{font-size:12px;line-height:1.5;margin:0 0 17px;color:#6b7f70}
.crm-modal-content>label{display:block;margin:0 0 16px;font-size:11px;font-weight:750;color:#3a6044}
.crm-modal-content>label input:not([type=checkbox]),.crm-modal-content>label select{display:block;width:100%;min-height:39px;border:1px solid #d8e4da;border-radius:6px;padding:8px 10px;margin-top:6px;background:#fff;color:#294331;font:500 12px 'DM Sans',sans-serif}
.crm-modal-content>label input[type=color]{padding:4px 6px;max-width:95px}
.crm-modal-content>label.crm-check-line{display:flex;align-items:center;gap:7px;font-weight:600;color:#4d6653}
.crm-form-help{margin-top:0!important}
.crm-admin-list{border:1px solid #e2eae3;border-radius:7px;overflow:auto;max-height:380px}
.crm-admin-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;padding:9px 12px;border-bottom:1px solid #eef2ed}
.crm-admin-list>div:last-child{border-bottom:0}
.crm-admin-list .crm-note-summary{align-items:flex-start}.crm-note-summary p{margin:6px 0 1px;color:#4c624f;font-size:11px;line-height:1.45;white-space:pre-wrap}
.crm-admin-list strong,.crm-admin-list small{display:block}
.crm-admin-list strong{font-size:12px;color:#2c4936}
.crm-admin-list small{font-size:10px;color:#829083;margin-top:3px}
.crm-admin-acts{display:flex;gap:4px}
.crm-admin-acts button{border:0;background:transparent;color:#2c7450;font-size:10px;font-weight:700;padding:6px}
.crm-admin-acts button:last-child{color:#9a6358}
.crm-modal footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 22px;border-top:1px solid #e5ece5}
.crm-modal footer button{min-height:34px;border:1px solid #dce6dd;border-radius:6px;background:#fff;color:#41664d;padding:0 12px;font:700 11px 'DM Sans',sans-serif}
.crm-modal footer .crm-primary{background:#1b7655;border-color:#1b7655;color:#fff}
.crm-page :is(button,input,select,textarea):focus-visible,.crm-modal :is(button,input,select):focus-visible{outline:2px solid #2d9466;outline-offset:2px}
@media(max-width:1220px){.crm-toolbar-actions button:not(.crm-toolbar-new){font-size:0;width:auto;padding:0 7px}.crm-toolbar-actions button:not(.crm-toolbar-new):first-child:after{content:'Notas';font-size:10px}.crm-toolbar-actions button:not(.crm-toolbar-new):nth-child(2):after{content:'Etiquetas';font-size:10px}.crm-toolbar-actions button:not(.crm-toolbar-new):nth-child(3):after{content:'Campos';font-size:10px}.crm-page .wa-inbox-layout.context-open{grid-template-columns:minmax(270px,310px) minmax(340px,1fr) minmax(280px,300px)}}
@media(max-width:1180px){.crm-page .wa-inbox-layout.context-open{grid-template-columns:minmax(270px,310px) minmax(340px,1fr)}}
@media(max-width:1000px){.crm-main-toolbar{overflow:auto;min-height:48px;padding:0 10px}.crm-page .wa-inbox-layout,.crm-page .wa-inbox-layout.context-open{grid-template-columns:minmax(270px,310px) minmax(300px,1fr)}.crm-thread-head .crm-head-text span{display:none}.crm-thread-head .crm-head-text{width:33px;padding:0}.crm-drawer{position:fixed;right:0;top:0;bottom:0;width:min(330px,80vw);z-index:60;box-shadow:-12px 0 30px #173a2626}}
@media(max-width:650px){.crm-main-toolbar{display:block;min-height:0;padding:0 10px}.crm-queue-tabs{height:40px}.crm-toolbar-actions{height:38px;overflow:auto;scrollbar-width:none}.crm-toolbar-actions .crm-toolbar-new{margin-left:2px}.crm-queue-tabs button{font-size:10px;padding:0 8px}.crm-page .wa-inbox-layout,.crm-page .wa-inbox-layout.context-open{display:block}.crm-list-header{padding:14px}.crm-thread-subbar{padding:0 10px}.crm-thread-head .crm-icon-action{width:30px}.crm-filter-popover{position:fixed;top:155px;left:10px;height:min(540px,calc(100vh - 170px))}.crm-drawer{position:fixed;top:0;bottom:0;right:0;height:100dvh;width:min(340px,92vw)}}
