        /* Estilos de pestañas simulando ResucitoV2 */
        .resucito-tabs-main {
            display: flex;
            border-bottom: 2px solid #ddd;
            margin-bottom: 15px;
            background: #f1f5f9;
            border-radius: 5px 5px 0 0;
        }
        .resucito-tab-main-btn {
            flex: 1;
            padding: 12px;
            border: none;
            background: none;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            text-align: center;
            border-bottom: 3px solid transparent;
            font-size: 0.95rem;
        }
        .resucito-tab-main-btn.active {
            color: #000;
            border-bottom: 3px solid #dc3545;
            background: #fff;
        }

        .resucito-tabs-sub {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 8px;
            flex-wrap: wrap;
        }
        .resucito-tab-sub-btn {
            border: 1px solid transparent;
            background: none;
            padding: 6px 12px;
            border-radius: 4px;
            color: #475569;
            font-size: 0.85rem;
            cursor: pointer;
        }
        .resucito-tab-sub-btn.active {
            border-color: #dc3545;
            color: #dc3545;
            font-weight: 600;
            background: #fdf2f2;
        }

        .permiso-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 12px 16px;
            margin-bottom: 8px;
        }
        .permiso-label {
            font-weight: 600;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .permiso-checkboxes {
            display: flex;
            gap: 16px;
        }
        .permiso-chk-label {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.8rem;
            color: #475569;
            cursor: pointer;
        }
        .permiso-chk-label input {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        /* Tree Layout Styles */
        .tree-container {
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background: #f8fafc;
            padding: 8px;
            max-width: 100%;
            box-sizing: border-box;
        }
        .tree-node {
            display: flex;
            flex-direction: column;
            margin-bottom: 2px;
        }
        .tree-node-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            border-radius: 0px;
            background: #fff;
            border: 1px solid #e2e8f0;
            margin-top: 2px;
            transition: background 0.2s;
        }
        .tree-node-header:hover {
            background: #f1f5f9;
        }
        .tree-node-left {
            display: flex;
            align-items: center;
            gap: 8px;
            user-select: none;
            font-size: 0.9rem;
            color: #334155;
            font-weight: 500;
            flex-grow: 1;
        }
        .tree-toggle {
            cursor: pointer;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #64748b;
            font-size: 1.1rem;
        }
        .tree-node-children {
            margin-left: 24px;
            border-left: 1px dashed #cbd5e1;
            padding-left: 8px;
        }
        .tree-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        /* Panel de Cuenta */
        .profile-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 30px 20px;
        }
        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #dc3545;
            margin-bottom: 15px;
        }
        .profile-role-badge {
            background: #fdf2f2;
            color: #dc3545;
            border: 1px solid #fecaca;
            padding: 6px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 15px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }