/* Colmena CRM: shared desktop table and mobile contact cards. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-page="crm"] .page-heading{align-items:center}[data-page="crm"] .page-heading>.primary{font-size:11px;text-transform:uppercase;letter-spacing:.045em;min-height:43px;padding:12px 18px}
.crm-stats{gap:15px}.crm-stats .card{min-height:137px;background:linear-gradient(140deg,#f0b42905,transparent 65%),#11110f}.crm-stats .card:nth-child(2) .stat-value{color:#b7c5e6}.crm-stats .card:nth-child(3) .stat-value{color:#e9bd60}.crm-stats .card:nth-child(4) .stat-value{color:#8dcca3}
.crm-workspace{min-width:0;background:#11110f;border:1px solid #ffffff12;border-radius:17px;overflow:hidden}
.crm-section-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:26px 26px 24px}.crm-section-header h2{font-size:18px;margin:8px 0 0;letter-spacing:-.02em}.crm-section-header h2>span{vertical-align:middle;font-family:'JetBrains Mono',monospace;font-size:10px;color:#c1a76e;border:1px solid #f0b42925;background:#f0b42908;border-radius:6px;padding:4px 7px;margin-left:7px}.crm-section-header .mono{font-size:9px;color:#8a7c62;letter-spacing:.08em}
.crm-export{font-size:10px;border-color:#ffffff1a;background:#ffffff03;color:#c0b7a6;min-height:36px;padding:8px 12px}.crm-export .icon{width:14px;height:14px}
.crm-filters{display:flex;gap:4px;padding:0 22px;border-bottom:1px solid #ffffff0d;overflow:auto;scrollbar-width:none}.crm-filters button{position:relative;display:flex;gap:7px;border:0;flex:none;min-height:47px;padding:12px 10px;border-radius:0;background:none;color:#938a7a;font-size:11px;font-weight:500;white-space:nowrap}.crm-filters button:hover{color:#efe9dc;background:#ffffff02}.crm-filters button.active{color:#f0b429}.crm-filters button.active:after{content:'';position:absolute;inset:auto 9px 0;height:2px;background:#f0b429;border-radius:2px}.crm-filters button>span{font-family:'JetBrains Mono',monospace;color:#82745b;font-size:9px;background:#ffffff04;border-radius:4px;min-width:19px;padding:2px 4px}.crm-filters button.active>span{background:#f0b42912;color:#edc15c}
.crm-status-dot{width:5px;height:5px;background:#829cc7;border-radius:50%;flex:none}.crm-status-dot.contacted{background:#d7b16d}.crm-status-dot.interested{background:#ac95d2}.crm-status-dot.paid{background:#83bd95}.crm-status-dot.lost{background:#c28078}.crm-filters button:first-child .crm-status-dot{display:none}
.crm-toolbar{padding:20px 25px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#ffffff01}.crm-search-wrap{position:relative;flex:1;min-width:190px}.crm-search-wrap>.icon{position:absolute;left:12px;top:12px;width:15px;height:15px;color:#877b66;pointer-events:none}.crm-search-wrap .search{width:100%;min-width:0;height:40px;padding:10px 12px 10px 36px;background:#191813;font-size:11px;border-color:#ffffff10}.crm-search-wrap .search:focus{border-color:#f0b42970}
.crm-select{display:flex;align-items:center;gap:8px;border:1px solid #ffffff13;border-radius:8px;padding:0 10px;background:#151410;min-height:40px}.crm-select>span{font-family:'JetBrains Mono',monospace;font-size:9px;color:#7c715c}.crm-select select{width:auto;max-width:150px;border:0;padding:7px 0;background:none;font-size:10px;cursor:pointer;color:#c9bfa9}.crm-select select:focus{outline-offset:0}
.crm-table-wrap{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#453a27 transparent}.crm-table{width:100%;border-collapse:collapse;white-space:normal}.crm-table th{background:#171610;font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.06em;color:#8a7c62;padding:14px 18px;white-space:nowrap;font-weight:400}.crm-table td{padding:21px 18px;border-bottom:1px solid #ffffff08;font-size:11px;color:#c9bea7}.crm-table tbody tr:last-child td{border-bottom:0}.crm-table tbody tr:hover{background:#f0b42903}
.crm-cell-person{min-width:190px}.crm-cell-person .avatar{width:35px;height:35px;border-radius:10px;background:#282318;border-color:#c7a15c20;color:#dac399;font-size:10px}.crm-cell-person strong{display:block;font-size:11px;font-weight:600;color:#e8e0d0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-cell-person small{font-size:9px;color:#7e7563;margin-top:5px}.crm-cell-phone{white-space:nowrap}.crm-cell-phone .wa-link{font-size:10px;font-family:'JetBrains Mono',monospace;color:#94b69a;font-weight:400;gap:6px}.crm-cell-phone .icon{width:13px;height:13px}
.crm-channel{display:inline-flex;align-items:center;gap:6px;color:#ada18c;font-size:10px;white-space:nowrap}.crm-channel svg{width:14px;height:14px}.crm-channel.telegram svg{color:#52a6cf}.crm-channel.whatsapp svg{color:#77bc8c}.crm-channel.instagram svg{color:#cc819b}.crm-channel.messenger svg{color:#719dd4}
.crm-status-select{display:inline-flex;align-items:center;gap:5px;border:1px solid #829cc730;background:#829cc70b;border-radius:6px;padding:0 8px;color:#9eb3d7;min-width:111px;min-height:30px}.crm-status-select.contacted{color:#d7b16d;border-color:#d7b16d30;background:#d7b16d0b}.crm-status-select.interested{color:#b7a0db;border-color:#ac95d230;background:#ac95d20b}.crm-status-select.paid{color:#8bc79f;border-color:#83bd9530;background:#83bd950b}.crm-status-select.lost{color:#cc9188;border-color:#c2807830;background:#c280780b}.crm-status-select>i{width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}.crm-status-select select{font-size:10px;min-width:0;background:transparent;color:inherit;border:0;border-radius:4px;padding:6px 0;cursor:pointer;max-width:105px}.crm-status-select option{background:#171610;color:#efe9dc}
.crm-cell-note{max-width:220px;min-width:150px}.crm-cell-note p{font-size:10px;color:#a49984;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}.crm-no-note{color:#6e6555;font-style:italic}.crm-cell-actions>div{display:flex;gap:4px;justify-content:flex-end}.crm-cell-actions button{min-height:30px;width:30px;padding:6px;border:1px solid transparent;background:none;color:#b8aa8c}.crm-cell-actions button .icon{width:14px;height:14px}.crm-cell-actions .danger{color:#98746b}.crm-cell-actions button:hover{border-color:#f0b42935;background:#f0b42907;color:#efbe55}.crm-cell-actions .danger:hover{color:#e49589;background:#c280780c;border-color:#c2807830}
.crm-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 25px;border-top:1px solid #ffffff0b;color:#8c816b;font-family:'JetBrains Mono',monospace;font-size:9px}.crm-pagination>div{display:flex;align-items:center;gap:15px}.crm-pagination i{font-style:normal;padding:0 3px;color:#5f5542}.crm-pagination button{width:30px;min-height:28px;padding:3px;border-radius:6px;background:#ffffff02;color:#d4bd8c}.crm-pagination button:disabled{opacity:.25}
.crm-bottom-note{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:20px;color:#736750;font-size:9px}.crm-bottom-note .icon{height:12px;width:12px}.crm-empty{text-align:center;padding:45px 20px 50px}.crm-empty-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;border:1px solid #f0b42920;border-radius:15px;background:#f0b42906;color:#bd9d58}.crm-empty-icon .icon{height:23px;width:23px}.crm-empty h3{font-size:16px;margin-bottom:10px}.crm-empty p{font-size:12px;max-width:350px;margin:0 auto 20px;line-height:1.8}
.modal:has(#contact-form){max-width:600px;background:radial-gradient(ellipse at 0 0,#f0b42906,transparent 60%),#11110f}.contact-form-intro{display:flex;align-items:center;gap:14px;padding:0 0 23px;margin-bottom:23px;border-bottom:1px solid #ffffff0b}.contact-form-intro>span{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;color:#d9b262;background:#f0b4290a;border:1px solid #f0b42920;flex:none}.contact-form-intro h3{font-size:13px;margin-bottom:4px}.contact-form-intro p{font-size:11px;color:#8f826a}#contact-form .field label{font-size:10px;color:#aa9c82}#contact-form .field input,#contact-form .field select,#contact-form .field textarea{background:#191710;border-color:#ffffff13;font-size:12px}#contact-form .field textarea{min-height:110px}#contact-form .form-footer{border-top:1px solid #ffffff0b;margin-top:0}#contact-form .form-footer .primary{min-width:150px}
@media(min-width:1500px){.crm-table td{padding-block:23px}.crm-cell-person{min-width:230px}.crm-cell-note{max-width:290px}}
@media(max-width:1200px){.crm-table th,.crm-table td{padding-inline:12px}.crm-cell-person{min-width:170px}.crm-cell-person strong{max-width:145px}.crm-cell-note{min-width:120px}.crm-toolbar{gap:9px}.crm-select{padding:0 8px}.crm-select>span{display:none}}
@media(max-width:1050px){.crm-table-wrap{overflow:visible;padding:0 20px 18px}.crm-table,.crm-table tbody{display:block}.crm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.crm-table tbody{display:grid;gap:12px}.crm-table tr{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'person actions' 'phone channel' 'status status' 'note note';border:1px solid #ffffff10;border-radius:12px;background:#14130f;padding:18px 16px;gap:16px}.crm-table td{display:block;border:0!important;padding:0;min-width:0;max-width:none}.crm-cell-person{grid-area:person}.crm-cell-actions{grid-area:actions;align-self:start}.crm-cell-phone{grid-area:phone}.crm-cell-channel{grid-area:channel;justify-self:end}.crm-cell-status{grid-area:status}.crm-cell-note{grid-area:note;border-top:1px solid #ffffff0a!important;padding-top:12px!important}.crm-cell-person .person{gap:10px}.crm-cell-person strong{max-width:none;white-space:normal;font-size:12px}.crm-cell-person small{font-size:9px}.crm-cell-status{display:flex!important;justify-content:space-between;align-items:center}.crm-cell-status:before{content:attr(data-label);font-family:'JetBrains Mono',monospace;font-size:9px;color:#80735b}.crm-cell-note:before{content:attr(data-label);display:block;font-family:'JetBrains Mono',monospace;font-size:8px;color:#80735b;margin-bottom:6px}.crm-cell-note p{font-size:11px}.crm-pagination{border-top:1px solid #ffffff0b}.crm-table-wrap:has(.crm-empty){padding:0}}
@media(max-width:760px){[data-page="crm"] .page-heading{align-items:flex-start;gap:15px}[data-page="crm"] .page-heading p{font-size:12px;max-width:330px}[data-page="crm"] .page-heading>.primary{min-height:39px;font-size:10px;padding:10px 14px}.crm-stats{gap:10px}.crm-stats .card{min-height:125px;padding:17px}.crm-stats .stat-value{font-size:32px;margin-top:12px}.crm-stats .stat-foot{font-size:9px}.crm-section-header{padding:21px 18px;gap:12px;align-items:flex-start}.crm-section-header h2{font-size:16px;max-width:200px;line-height:1.5}.crm-section-header .mono{font-size:8px}.crm-export{font-size:9px;padding:6px 9px;min-height:33px;gap:6px;white-space:nowrap}.crm-export .icon{width:12px;height:12px}.crm-filters{padding:0 10px;gap:0}.crm-filters button{font-size:10px;padding:10px 9px;min-height:45px}.crm-toolbar{padding:17px;gap:10px}.crm-search-wrap{flex-basis:100%}.crm-select{flex:1;min-width:0;padding:0 10px}.crm-select>span{display:inline;font-size:8px}.crm-select select{flex:1;max-width:none;min-width:0;font-size:10px}.crm-table-wrap{padding:0 16px 16px}.crm-workspace{border-radius:14px}.crm-pagination{padding:15px 17px;font-size:8px}.crm-pagination>div{gap:10px}.crm-bottom-note{font-size:8px;text-align:center;line-height:1.7;padding-inline:15px}#contact-form .form-grid{grid-template-columns:1fr}.modal:has(#contact-form){padding:22px;max-height:90dvh;overflow:auto}.contact-form-intro{gap:12px}.contact-form-intro h3{font-size:12px}.contact-form-intro p{font-size:10px}#contact-form .form-footer{display:flex;gap:10px}#contact-form .form-footer button{flex:1;min-width:0}}
@media(max-width:380px){.crm-section-header{flex-wrap:wrap}.crm-section-header h2{max-width:none}.crm-cell-person .avatar{display:none}.crm-table tr{padding:16px 12px;gap:14px}.crm-cell-phone .wa-link{font-size:9px}}
