.admin-container{padding:1.5rem;max-width:1400px;width:100%;margin-left:auto;margin-right:auto;display:flex;flex-direction:column;gap:.75rem;box-sizing:border-box}.card-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.5rem 1rem;border-bottom:1px solid #e5e7eb;margin-bottom:1.5rem}.admin-container .card .card-header{border-bottom:1px solid #e5e7eb!important}.card-title{display:flex;align-items:center;gap:.75rem}.card-title h3{font-size:1.25rem;font-weight:600;color:#111827;margin:0}.card-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-right:.5rem}.card-header .card-actions{margin-right:1.5rem;padding-right:0}.card-header .card-actions button{margin-left:.75rem}.card-header .card-actions button:first-child{margin-left:0}.btn-sm.btn-danger,.whatsapp-delete-btn.btn-danger{background-color:#ef4444;color:white;border-color:#ef4444}.btn-sm.btn-danger:hover,.whatsapp-delete-btn.btn-danger:hover{background-color:#f53737!important;border-color:#f53737!important;color:white}.tab-navigation{display:flex;gap:.5rem;margin-left:auto;flex-wrap:wrap;align-items:center}.admin-container .tab-button,.tab-navigation .tab-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1px solid #e5e7eb;background:white;color:#6b7280;border-radius:.375rem;cursor:pointer;transition:all .2s;font-size:.875rem;font-weight:500;white-space:nowrap}.admin-container .tab-button:hover,.tab-navigation .tab-button:hover{background:#f9fafb;border-color:#d1d5db;color:#374151}.admin-container .tab-button.active,.tab-navigation .tab-button.active{background:#3b82f6!important;color:white!important;border-color:#3b82f6!important}.admin-container .card .card-header .tab-navigation .tab-button.active,.admin-container .card-header .tab-navigation .tab-button.active{background:#3b82f6!important;background-color:#3b82f6!important;color:#ffffff!important;border-color:#3b82f6!important;opacity:1!important;visibility:visible!important}[data-theme=dark] .admin-container .tab-button,[data-theme=dark] .tab-navigation .tab-button{background:#374151;border-color:#4b5563;color:#d1d5db}[data-theme=dark] .admin-container .tab-button:hover,[data-theme=dark] .tab-navigation .tab-button:hover{background:#4b5563;border-color:#6b7280;color:#f9fafb}[data-theme=dark] .admin-container .tab-button.active,[data-theme=dark] .tab-navigation .tab-button.active{background:#3b82f6!important;color:white!important;border-color:#3b82f6!important}[data-theme=dark] .admin-container .card-header .tab-navigation .tab-button.active{background:#3b82f6!important;background-color:#3b82f6!important;color:#ffffff!important;border-color:#3b82f6!important;opacity:1!important}.card{background:white;border-radius:.75rem;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,.1);margin-bottom:1.5rem}[data-theme=dark] .card{background:var(--bg-secondary)!important;border:1px solid var(--border-subtle)!important}[data-theme=dark] .card-header{border-bottom-color:var(--border-subtle)!important}[data-theme=dark] .card-content,[data-theme=dark] .card-title h3{color:var(--text-primary)!important}.card-content{padding:1.5rem}.admin-container .stats-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:1rem!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;position:relative!important}.admin-container .stats-grid .stat-card{width:100%!important;min-width:0!important}.stats-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:#6b7280}.stats-loading p{margin-top:1rem;font-size:.875rem}.stat-card{display:flex;align-items:center;gap:1rem;padding:1.5rem;border-radius:.75rem;background:#ffffff;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,.1);transition:transform .2s,box-shadow .2s}[data-theme=dark] .stat-card{background:var(--bg-secondary)!important;border-color:var(--border-subtle)!important}[data-theme=dark] .stat-value{color:var(--text-primary)!important}[data-theme=dark] .stat-label{color:var(--text-secondary)!important}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}.stat-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:.75rem;flex-shrink:0;background:#dbeafe;color:#3b82f6}.stat-content{flex:1}.stat-value{font-size:2rem;font-weight:700;color:#111827;line-height:1;margin:0 0 .25rem}[data-theme=dark] .stat-value{color:#f9fafb}.stat-label{font-size:.875rem;color:#6b7280;font-weight:500;margin:0}[data-theme=dark] .stat-label{color:#d1d5db}.search-section{margin-bottom:1.5rem}.search-container{display:flex;flex-direction:column;gap:.5rem}.search-label{font-size:.875rem;font-weight:500;color:#374151}.search-input-group{display:flex;gap:.75rem}.search-input{flex:1;padding:.75rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;transition:border-color .2s,box-shadow .2s}.search-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.search-btn{white-space:nowrap}.table-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:#6b7280}.table-loading p{margin-top:1rem;font-size:.875rem}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border:1px solid transparent;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;text-decoration:none}.btn-primary{background-color:#3b82f6;color:white;border-color:#3b82f6}.btn-primary:hover{background-color:#2563eb;border-color:#2563eb}.btn-secondary{background-color:white;color:#374151;border-color:#d1d5db}.btn-secondary:hover{background-color:#f9fafb;border-color:#9ca3af}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}@media (max-width:1200px){.stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:768px){.stats-grid{grid-template-columns:1fr}.tab-navigation{gap:.25rem}.tab-button{padding:.5rem .75rem;font-size:.8125rem}}.table-container{border-radius:.5rem;border:1px solid #e5e7eb;width:100%;overflow:hidden;box-shadow:0 1px 3px 0 rgba(0,0,0,.1);background:white}.users-table{width:100%;border-collapse:collapse;background:white;table-layout:auto}.table-header{background:#f9fafb;padding:.75rem 1rem;text-align:left;font-weight:600;color:#374151;font-size:.875rem;white-space:nowrap}.table-header,.table-row{border-bottom:1px solid #e5e7eb}.table-row{transition:background-color .2s}[data-theme=dark] .table-row{border-color:#4b5563}.table-row:hover{background:#f9fafb}.table-row:last-child{border-bottom:none}.table-cell{padding:.75rem 1rem;font-size:.875rem;color:#374151;vertical-align:middle;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis}.user-info{gap:1rem}.user-avatar,.user-info{display:flex;align-items:center}.user-avatar{width:2.5rem;height:2.5rem;border-radius:.5rem;color:white;justify-content:center;font-weight:600;font-size:.875rem;flex-shrink:0}.user-avatar,[data-theme=dark] .user-avatar{background-color:#3b82f6}.user-name{font-size:.875rem;font-weight:600;color:#111827;margin:0}.user-email{font-size:.875rem;color:#6b7280}.status-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;border-radius:9999px;font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.status-active{background:#dcfce7;color:#166534}.status-inactive{background:#fef2f2;color:#dc2626}.status-connected{background:#dcfce7;color:#166534}.status-connecting{background:#fef3c7;color:#92400e}.action-buttons{display:flex;align-items:center;gap:.5rem}.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:1px solid #d1d5db;border-radius:.375rem;background-color:white;color:#374151;cursor:pointer;transition:all .2s}.btn-icon:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-icon.text-red-500{color:#ef4444}.btn-icon.text-red-500:hover{background:#fef2f2;color:#dc2626}.action-buttons .btn-icon:first-child,.btn-icon.btn-reset-password{color:#f59e0b}.action-buttons .btn-icon:first-child:hover,.btn-icon.btn-reset-password:hover{background:#fef3c7;color:#d97706;border-color:#fbbf24}[data-theme=dark] .action-buttons .btn-icon:first-child,[data-theme=dark] .btn-icon.btn-reset-password{color:#fbbf24}[data-theme=dark] .action-buttons .btn-icon:first-child:hover,[data-theme=dark] .btn-icon.btn-reset-password:hover{background:#78350f;color:#fde68a;border-color:#f59e0b}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center}.empty-state p{margin:.5rem 0 0}.empty-state-title{font-size:1rem;font-weight:600;color:#374151;margin:0}.empty-state-description{font-size:.875rem;color:#6b7280;margin:.25rem 0 0}.modal-overlay{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,.5)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:9999!important;padding:1rem!important;width:100vw!important;height:100vh!important;overflow-y:auto!important}.modal{background:white;border-radius:.75rem;width:100%;max-width:600px;max-height:85vh;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);display:flex;flex-direction:column;position:relative;z-index:10000;overflow:hidden}.modal .modal-content:not(.crm-modal),.modal:not(.crm-modal .modal) .modal-content{background:transparent;border-radius:0;width:100%;max-width:none;max-height:none;box-shadow:none;display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;padding:1.5rem 1.5rem 1.75rem}.modal .modal-content:not(.crm-modal) form,.modal:not(.crm-modal .modal) .modal-content form{display:flex;flex-direction:column;gap:1.25rem;min-height:0}.modal .modal-content:not(.crm-modal) form .modal-actions,.modal:not(.crm-modal .modal) .modal-content form .modal-actions{margin-top:.5rem;padding:1rem 1.5rem 0}.modal-content:not(.modal .modal-content):not(.crm-modal){background:white;border-radius:.75rem;width:100%;max-width:600px;max-height:85vh;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);display:flex;flex-direction:column;position:relative;z-index:10000;overflow:hidden}.modal-content:not(.modal .modal-content):not(.crm-modal) .modal-body{padding-bottom:1.75rem}.modal-content:not(.modal .modal-content):not(.crm-modal) .modal-actions{padding:1rem 1.5rem 1.5rem;margin-bottom:0}.modal-body:not(.crm-modal .modal-body):last-child,.modal-content:not(.modal .modal-content):not(.crm-modal)>:last-child,.modal:not(.crm-modal .modal) .modal-content:last-child{padding-bottom:1.5rem}.modal-body:not(.crm-modal .modal-body) .modal-actions,.modal-content:not(.modal .modal-content):not(.crm-modal) .modal-actions,.modal:not(.crm-modal .modal) .modal-content .modal-actions{padding:1rem 1.5rem 1.5rem!important}[data-theme=dark] .modal-content:not(.modal .modal-content){background:#1f2937}[data-theme=dark] .modal .modal-content{background:transparent}.modal-content:not(.crm-modal) .modal-header,.modal-header:not(.crm-modal .modal-header){display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;flex-shrink:0}.modal-content:not(.crm-modal) .modal-header h3,.modal-header:not(.crm-modal .modal-header) h3{font-size:1.25rem;font-weight:600;color:#111827;margin:0}[data-theme=dark] .modal-header:not(.crm-modal .modal-header){border-color:#4b5563}.modal-close{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;background:transparent;color:#6b7280;cursor:pointer;border-radius:.375rem;font-size:1.5rem;line-height:1;transition:all .2s}.modal-close:hover{background:#f3f4f6;color:#111827}.admin-container~.modal-body,.modal-body:not(.crm-modal .modal-body){padding:1.5rem 1.5rem 1.75rem;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid #e5e7eb}[data-theme=dark] .modal-footer{border-color:#4b5563}.space-y-4{display:flex;flex-direction:column;gap:1.25rem}.space-y-4>div{margin-bottom:0}.form-label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.5rem;margin-top:0}.form-input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;color:#111827;background:white;transition:border-color .2s,box-shadow .2s}.form-input:focus{outline:none;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.form-input:focus,[data-theme=dark] .form-input:focus{border-color:#3b82f6}.form-input:disabled{background:#f3f4f6;color:#6b7280;cursor:not-allowed}textarea.form-input{resize:vertical;min-height:80px}.form-checkbox-container{margin:1rem 0}.form-checkbox-wrapper{display:flex;align-items:flex-start;gap:.875rem;cursor:pointer;user-select:none;padding:.5rem 0}.form-checkbox-wrapper input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}.form-checkbox-custom{width:1.25rem;height:1.25rem;border:2px solid #d1d5db;border-radius:.25rem;background:white;flex-shrink:0;margin-top:.125rem;position:relative;transition:all .2s}.form-checkbox-wrapper input[type=checkbox]:checked+.form-checkbox-custom{background:#3b82f6;border-color:#3b82f6}.form-checkbox-wrapper input[type=checkbox]:checked+.form-checkbox-custom:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(45deg);width:.375rem;height:.625rem;border:solid white;border-width:0 2px 2px 0}.form-checkbox-wrapper input[type=checkbox]:disabled+.form-checkbox-custom{background:#f3f4f6;border-color:#d1d5db;cursor:not-allowed}[data-theme=dark] .form-checkbox-wrapper input[type=checkbox]:checked+.form-checkbox-custom{background:#3b82f6;border-color:#3b82f6}.form-checkbox-label{display:flex;flex-direction:column;gap:.25rem;flex:1}.form-checkbox-label-text{font-size:.875rem;font-weight:500;color:#111827}.form-checkbox-description{font-size:.8125rem;color:#6b7280;line-height:1.4;margin-top:.125rem}.form-select{width:100%;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;color:#111827;background:white;cursor:pointer;transition:border-color .2s,box-shadow .2s;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding:.75rem 2.5rem .75rem .75rem}.form-select:focus{outline:none;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.form-select:focus,[data-theme=dark] .form-select:focus{border-color:#3b82f6}.form-select:disabled{background:#f3f4f6;color:#6b7280;cursor:not-allowed}.form-group{display:flex;flex-direction:column;margin-bottom:0}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,1fr)}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.lg\:grid-cols-4{grid-template-columns:repeat(4,1fr)}}.gap-4{gap:1rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.items-center{align-items:center}.gap-2{gap:.5rem}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem 1.5rem;border-top:1px solid #e5e7eb;flex-shrink:0;margin-top:.5rem;background:transparent}.modal .modal-content form .modal-actions{margin-top:.75rem;padding:1rem 1.5rem 1.5rem;margin-bottom:0;border-top:1px solid #e5e7eb}[data-theme=dark] .modal-actions{background:transparent;border-color:#4b5563}[data-theme=dark] .modal .modal-content form .modal-actions{border-color:#4b5563}.grid-cols-2{grid-template-columns:repeat(2,1fr)}.text-xs{font-size:.75rem;line-height:1.4}.text-gray-500{color:#6b7280;margin-top:.375rem;display:block}[data-theme=dark] .text-gray-500{color:#9ca3af}.mt-1{margin-top:.375rem;display:block}.form-input+.text-xs,.form-input+.text-xs.text-gray-500,.form-input+p.text-xs{margin-top:.375rem;margin-bottom:0}[data-theme=dark] .card-header{border-bottom-color:#374151}[data-theme=dark] .card-title h3{color:#f9fafb}[data-theme=dark] .stat-icon{background:#1e3a5f;color:#60a5fa}[data-theme=dark] .search-label{color:#d1d5db}[data-theme=dark] .search-input{background:#374151;border-color:#4b5563;color:#f9fafb}[data-theme=dark] .search-input::placeholder{color:#9ca3af}[data-theme=dark] .btn-secondary{background:#374151;border-color:#4b5563;color:#f9fafb}[data-theme=dark] .btn-secondary:hover{background:#4b5563;border-color:#6b7280}[data-theme=dark] .table-container{border-color:#374151;background:#1f2937}[data-theme=dark] .users-table{background:#1f2937}[data-theme=dark] .table-header{background:#374151;color:#d1d5db;border-color:#4b5563}[data-theme=dark] .table-row{border-color:#374151}[data-theme=dark] .table-row:hover{background:#374151}[data-theme=dark] .table-cell{color:#d1d5db}[data-theme=dark] .user-name{color:#f9fafb}[data-theme=dark] .user-email{color:#9ca3af}[data-theme=dark] .status-active{background:#14532d;color:#bbf7d0}[data-theme=dark] .status-inactive{background:#7f1d1d;color:#fecaca}[data-theme=dark] .btn-icon{background:#374151;border-color:#4b5563;color:#d1d5db}[data-theme=dark] .btn-icon:hover{background:#4b5563;border-color:#6b7280;color:#f9fafb}[data-theme=dark] .btn-icon.text-red-500{color:#f87171}[data-theme=dark] .btn-icon.text-red-500:hover{background:#7f1d1d;color:#fecaca}[data-theme=dark] .empty-state-title{color:#d1d5db}[data-theme=dark] .empty-state-description{color:#9ca3af}[data-theme=dark] .modal,[data-theme=dark] .modal-content:not(.modal .modal-content):not(.crm-modal){background:#1f2937}[data-theme=dark] .modal-header:not(.crm-modal .modal-header){border-color:#374151}[data-theme=dark] .modal-header:not(.crm-modal .modal-header) h3{color:#f9fafb}[data-theme=dark] .modal-close{color:#9ca3af}[data-theme=dark] .modal-close:hover{background:#374151;color:#f9fafb}[data-theme=dark] .modal-body{color:#f9fafb}[data-theme=dark] .modal-actions,[data-theme=dark] .modal-footer{border-color:#374151}[data-theme=dark] .form-label{color:#d1d5db}[data-theme=dark] .form-input{background:#374151;border-color:#4b5563;color:#f9fafb}[data-theme=dark] .form-input::placeholder{color:#9ca3af}[data-theme=dark] .form-input:disabled{background:#4b5563;color:#9ca3af}[data-theme=dark] .form-select{background:#374151;border-color:#4b5563;color:#f9fafb;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 9L1 4h10z'/%3E%3C/svg%3E")}[data-theme=dark] .form-select:disabled{background:#4b5563;color:#9ca3af}[data-theme=dark] .form-checkbox-custom{background:#374151;border-color:#4b5563}[data-theme=dark] .form-checkbox-wrapper input[type=checkbox]:disabled+.form-checkbox-custom{background:#4b5563;border-color:#4b5563}[data-theme=dark] .form-checkbox-label-text{color:#f9fafb}[data-theme=dark] .form-checkbox-description,[data-theme=dark] .stats-loading,[data-theme=dark] .table-loading{color:#9ca3af}