.sxcrm-wrap{max-width:1280px}.sxcrm-muted{color:#667085}.sxcrm-actions-top{display:flex;gap:10px;align-items:center;margin:18px 0}.sxcrm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:22px 0}.sxcrm-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.sxcrm-card span{display:block;color:#667085;font-size:13px;margin-bottom:8px}.sxcrm-card strong{font-size:28px;color:#111827}.sxcrm-box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin:18px 0;box-shadow:0 8px 24px rgba(15,23,42,.05)}.sxcrm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sxcrm-form label,.sxcrm-box label,.sxcrm-front-form label{display:block;font-weight:600;margin:0 0 14px;color:#111827}.sxcrm-form input[type=text],.sxcrm-form input[type=email],.sxcrm-form input[type=url],.sxcrm-form input[type=date],.sxcrm-form input[type=number],.sxcrm-form select,.sxcrm-form textarea,.sxcrm-box input[type=text],.sxcrm-box input[type=email],.sxcrm-box input[type=url],.sxcrm-box input[type=date],.sxcrm-box input[type=number],.sxcrm-box select,.sxcrm-box textarea,.sxcrm-front-form input,.sxcrm-front-form select,.sxcrm-front-form textarea{width:100%;max-width:100%;margin-top:6px;border:1px solid #d0d5dd;border-radius:10px;padding:9px 11px;box-sizing:border-box}.sxcrm-table th{font-weight:700}.sxcrm-actions{white-space:nowrap}.sxcrm-actions .button{margin:2px}.sxcrm-badge{display:inline-block;border-radius:999px;padding:4px 9px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700}.sxcrm-status-cerrado_ganado,.sxcrm-status-cliente_activo{background:#dcfce7;color:#166534}.sxcrm-status-cerrado_perdido{background:#fee2e2;color:#991b1b}.sxcrm-status-presupuesto_enviado{background:#fef3c7;color:#92400e}.sxcrm-status-no_contesta{background:#f3f4f6;color:#374151}.sxcrm-pipeline-mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:16px 0}.sxcrm-pipeline-mini div{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:13px}.sxcrm-pipeline-mini span{display:block;font-size:12px;color:#667085;margin-bottom:5px}.sxcrm-pipeline-mini strong{font-size:24px}.sxcrm-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:18px 0}.sxcrm-inline-check{display:inline-flex!important;align-items:center;gap:8px;margin-left:15px;font-weight:500!important}.sxcrm-front{max-width:1180px;margin:0 auto}.sxcrm-front .button,.sxcrm-front button{border-radius:8px;text-decoration:none}.sxcrm-lead-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.sxcrm-lead-head h3{margin:0 0 6px}.sxcrm-lead-buttons{display:flex;gap:8px;flex-wrap:wrap}.sxcrm-login{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:26px;max-width:430px;margin:40px auto;box-shadow:0 18px 45px rgba(15,23,42,.08)}.sxcrm-login input[type=text],.sxcrm-login input[type=password]{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:10px;box-sizing:border-box}@media(max-width:782px){.sxcrm-grid-2{grid-template-columns:1fr}.sxcrm-lead-head{display:block}.sxcrm-actions{white-space:normal}.sxcrm-table{font-size:13px}.sxcrm-filters select{width:100%}}
.sxcrm-create-own-lead summary{cursor:pointer;font-size:18px}.sxcrm-front-notice{border-left:4px solid #2271b1}.sxcrm-status-lead_propio_pendiente{background:#e0f2fe;color:#075985}
.sxcrm-doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:14px}.sxcrm-doc-card{border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;padding:14px}.sxcrm-doc-card strong{display:block;margin-bottom:5px;color:#111827}.sxcrm-doc-card small{display:block;color:#667085;margin-bottom:8px}.sxcrm-doc-card p{margin:8px 0;color:#344054}.sxcrm-doc-card-small{background:#fff}.sxcrm-lead-documents{margin-top:16px;border-top:1px solid #e5e7eb;padding-top:12px}.sxcrm-lead-documents summary,.sxcrm-documents-library summary{cursor:pointer}.sxcrm-check-list{margin-left:18px;list-style:disc}.sxcrm-upload-row{padding:12px;border:1px dashed #d0d5dd;border-radius:12px;background:#f9fafb;margin-bottom:14px}.sxcrm-upload-row .button{margin-top:6px}
.sxcrm-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:6px 0 14px}.sxcrm-check-option{display:flex!important;align-items:flex-start;gap:8px;border:1px solid #e5e7eb;border-radius:10px;padding:9px 10px;background:#f9fafb;font-weight:600!important;margin:0!important}.sxcrm-check-option input{width:auto!important;margin:2px 0 0!important}.sxcrm-check-option small{display:block;color:#667085;font-weight:500;margin-left:auto}.sxcrm-archive-lead-form{margin-top:12px;text-align:right}.sxcrm-archive-lead-form .button-link-delete{color:#b42318;border-color:#fda29b;background:#fff}

/* v1.9 - mejoras móviles para panel comercial y panel admin */
.sxcrm-mobile-admin-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 0 18px}.sxcrm-mobile-item{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:14px;margin:12px 0}.sxcrm-mobile-item h3{margin:0 0 8px;color:#111827}.sxcrm-mobile-item p{margin:7px 0}.sxcrm-mobile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sxcrm-mobile-actions form{margin:0}.sxcrm-mobile-mini-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.sxcrm-mobile-mini-stats span{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;padding:8px;font-size:12px;color:#667085}.sxcrm-mobile-mini-stats strong{display:block;font-size:18px;color:#111827}.sxcrm-mobile-commercial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.sxcrm-mobile-admin .sxcrm-box h2{margin-top:0}.sxcrm-mobile-login .button{width:100%;margin-top:10px}

@media(max-width:782px){.sxcrm-front{width:100%;padding:0 12px;box-sizing:border-box}.sxcrm-front h1{font-size:34px;line-height:1.1;margin:18px 0}.sxcrm-front h2{font-size:24px}.sxcrm-box{padding:16px;border-radius:16px}.sxcrm-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sxcrm-card{padding:14px;border-radius:14px}.sxcrm-card span{font-size:12px}.sxcrm-card strong{font-size:26px}.sxcrm-lead-card{padding:16px}.sxcrm-lead-head{display:block}.sxcrm-lead-head h3{font-size:22px;line-height:1.15}.sxcrm-lead-buttons{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.sxcrm-lead-buttons .button,.sxcrm-lead-buttons a.button,.sxcrm-front-form button,.sxcrm-front .button{width:100%;text-align:center;justify-content:center;box-sizing:border-box;padding:12px 14px;min-height:44px;display:inline-flex;align-items:center}.sxcrm-front-form label{font-size:15px}.sxcrm-front-form input,.sxcrm-front-form select,.sxcrm-front-form textarea{font-size:16px;min-height:44px}.sxcrm-doc-grid{grid-template-columns:1fr}.sxcrm-doc-card{padding:14px}.sxcrm-checklist{grid-template-columns:1fr}.sxcrm-archive-lead-form{text-align:left}.sxcrm-archive-lead-form .button-link-delete{width:100%;min-height:44px}.sxcrm-mobile-admin-top{display:block}.sxcrm-mobile-admin-top .button{width:100%;margin-top:8px}.sxcrm-mobile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sxcrm-mobile-section{padding:14px}.sxcrm-mobile-actions{display:grid;grid-template-columns:1fr;gap:8px}.sxcrm-mobile-actions form,.sxcrm-mobile-actions button{width:100%}.sxcrm-mobile-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sxcrm-table{display:block;overflow-x:auto;white-space:nowrap}.sxcrm-inline-check{display:flex!important;margin-left:0;margin-top:10px}.sxcrm-create-own-lead summary,.sxcrm-documents-library summary{font-size:18px;min-height:44px;display:flex;align-items:center}.sxcrm-login{margin:20px auto;padding:20px}}
@media(max-width:420px){.sxcrm-cards,.sxcrm-mobile-kpis{grid-template-columns:1fr}.sxcrm-front h1{font-size:30px}.sxcrm-card strong{font-size:24px}.sxcrm-mobile-mini-stats{grid-template-columns:1fr}}

/* v2.2 - leads plegados, buscador y email revisable */
.sxcrm-leads-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-top:18px}.sxcrm-leads-header h2{margin:0}.sxcrm-lead-search-wrap{min-width:320px;max-width:560px;width:45%}.sxcrm-lead-search{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:12px 14px;font-size:15px;box-sizing:border-box;background:#fff}.sxcrm-lead-search-wrap small{display:block;margin-top:6px}.sxcrm-leads-list{margin-top:14px}.sxcrm-lead-details{padding:0!important;overflow:hidden}.sxcrm-lead-summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 20px}.sxcrm-lead-summary::-webkit-details-marker{display:none}.sxcrm-lead-summary:before{content:'▸';font-size:18px;color:#667085;margin-right:4px}.sxcrm-lead-details[open] .sxcrm-lead-summary{border-bottom:1px solid #e5e7eb;background:#f9fafb}.sxcrm-lead-details[open] .sxcrm-lead-summary:before{content:'▾'}.sxcrm-lead-summary-main{flex:1;min-width:0}.sxcrm-lead-summary h3{margin:0 0 6px;font-size:22px;line-height:1.2}.sxcrm-lead-summary p{margin:0}.sxcrm-lead-summary-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.sxcrm-followup-chip,.sxcrm-open-hint{display:inline-block;border-radius:999px;padding:4px 9px;background:#f3f4f6;color:#374151;font-size:12px;font-weight:700}.sxcrm-open-hint{background:#ecfdf3;color:#027a48}.sxcrm-lead-expanded{padding:18px 20px 20px}.sxcrm-lead-head-expanded{margin-bottom:12px}.sxcrm-email-review .sxcrm-box{max-width:900px}.sxcrm-email-review-form textarea{font-family:inherit;line-height:1.55}.sxcrm-email-review-actions{margin-top:12px}.sxcrm-no-results{border-style:dashed!important;background:#f9fafb!important}
@media(max-width:782px){.sxcrm-leads-header{display:block}.sxcrm-lead-search-wrap{width:100%;min-width:0;max-width:none;margin-top:10px}.sxcrm-lead-search{font-size:16px;min-height:48px}.sxcrm-lead-summary{display:block;padding:16px}.sxcrm-lead-summary:before{float:left;margin-right:8px;margin-top:2px}.sxcrm-lead-summary h3{font-size:20px}.sxcrm-lead-summary-meta{justify-content:flex-start;margin-top:10px}.sxcrm-lead-expanded{padding:16px}.sxcrm-open-hint{display:none}.sxcrm-email-review h1{font-size:30px}}
